Function at 0x41f720
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586d02
mov eax, dword fs:[0]
push eax
sub esp, 0x7d0
mov eax, dword [0x5e91b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ebx, edx
xor edi, edi
push 0x5b9d3c
lea ecx, [ebp - 0x798]
mov dword [ebp - 0x7b0], esi
mov dword [ebp - 0x7bc], ebx
mov dword [ebp - 0x7a4], eax
mov dword [ebp - 0x794], edi
mov dword [ebp - 0x7b8], edi
call fcn.0042af00
lea ecx, [ebp - 0x1f0]
push ecx
mov dword [ebp - 4], edi
call fcn.00402080
lea edx, [ebp - 0x3d0]
push edx
mov byte [ebp - 4], 1
call fcn.00402080
mov byte [ebp - 4], 2
call fcn.004655e9
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41f7c2
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x7a8], eax
mov byte [ebp - 4], 3
cmp ebx, edi
jl 0x41ffe1
cmp ebx, dword [esi + 0x5b8]
jge 0x41ffe1
mov edi, dword [esi + 0x5b4]
imul ebx, ebx, 0x1dc
lea ecx, [ebp - 0x5b0]
add edi, ebx
push ecx
lea eax, [ebp - 0x1f0]
mov dword [ebp - 0x7b4], ebx
call fcn.00402740
lea ecx, [ebp - 0x5b0]
call fcn.00402580
lea edx, [ebp - 0x5b0]
push edx
lea edi, [ebp - 0x1f0]
lea eax, [ebp - 0x3d0]
call fcn.00402740
lea ecx, [ebp - 0x5b0]
call fcn.00402580
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x7a8]
call fcn.0042d310
mov eax, dword [ebp - 0x7a8]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x100
or eax, ecx
jge 0x41f87c
push pe_nt_image_headers32
lea ecx, [ebp - 0x7a8]
call fcn.00401dd0
lea esi, [ebp - 0x7ac]
call fcn.00430570
push str.DebugBrStMonW.ini
mov ecx, esi
push ecx
lea edx, [ebp - 0x79c]
push edx
mov byte [ebp - 4], 4
call fcn.00404ad0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00401fb0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x79c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f8d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x7ac]
push ecx
push 0
push 0x5b96e8
push str.Debug
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x41f943
mov eax, dword [ebp - 0x7ac]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x79c], esp
mov esi, esp
push eax
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x15c]
add eax, 0xfffffff0
mov dword [ebp - 0x7a0], esp
mov esi, esp
push eax
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp - 0x7a4]
add esp, 4
push esi
mov byte [ebp - 4], 4
call fcn.0042a460
jmp 0x41f949
mov esi, dword [ebp - 0x7a4]
mov eax, dword [esi]
mov edi, 1
cmp eax, 0x13880
ja 0x420a4f
cmp dword [ebp + 0x10], edi
je 0x420a4f
lea edx, [esi + 8]
push edx
lea ecx, [ebp - 0x798]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0xe4], edi
call fcn.00404d00
lea ecx, [ebp - 0x13c]
call fcn.00404d70
lea eax, [ebp - 0x798]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00404d00
lea ecx, [esi + 0xc]
push ecx
lea ecx, [ebp - 0x798]
call fcn.00404d00
lea ecx, [ebp - 0x138]
call fcn.00404d70
lea edx, [ebp - 0x798]
push edx
lea ecx, [ebp - 0x138]
call fcn.00404d00
mov al, byte [esi + 4]
mov byte [ebp - 0x134], al
mov eax, dword [esi + 0xf0]
test eax, eax
jne 0x41f9e4
mov byte [ebp - 0x134], 5
jmp 0x41fa09
cmp eax, edi
jne 0x41f9f1
mov byte [ebp - 0x134], 1
jmp 0x41fa09
cmp eax, 2
jne 0x41f9fe
mov byte [ebp - 0x134], al
jmp 0x41fa09
cmp eax, 3
jne 0x41fa09
mov byte [ebp - 0x134], al
mov ecx, dword [ebp - 0x15c]
push ecx
push str._UpdateMessage___DeviceName___s__n
push 0x40000
push 0x5eb054
call fcn.0042e040
movzx edx, byte [ebp - 0x134]
push edx
push str._UpdateMessage___m_ucStatus___c__n
push 0x40000
push 0x5eb054
call fcn.0042e040
mov eax, dword [ebp - 0x130]
push eax
push str._UpdateMessage___m_dwStatus___d__n
push 0x40000
push 0x5eb054
call fcn.0042e040
mov ecx, dword [ebp - 0x13c]
push ecx
push str._UpdateMessage___m_strCurMessage___d__n
push 0x40000
push 0x5eb054
call fcn.0042e040
mov edx, dword [ebp - 0xf0]
add esp, 0x40
cmp edx, dword [esi + 0xe4]
jne 0x41fa93
mov eax, dword [esi + 0xe8]
cmp dword [eax - 0xc], 0
jne 0x41fac3
lea ecx, [esi + 0xe8]
push ecx
lea ecx, [ebp - 0x154]
call fcn.00401fb0
mov edx, dword [esi + 0xec]
mov eax, dword [esi + 0xe4]
mov dword [ebp - 0x148], edx
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x7b8], edi
mov eax, dword [esi + 0xe0]
xor edx, edx
mov dword [ebp - 0x7a0], eax
test eax, eax
jle 0x41fb70
mov ebx, dword [ebp - 0x3c0]
lea eax, [esi + 0x14]
cmp edx, 4
jg 0x41fb70
mov ecx, dword [eax - 4]
add ecx, 0xffffff5f
cmp ecx, 3
ja case.default.0x41faf9
jmp dword [ecx*4 + 0x420bf0]
mov ecx, dword [eax]
mov edi, 1
cmp dword [ebp - 0x3cc], ecx
je case.default.0x41faf9
mov dword [ebp - 0x1ec], ecx
jmp 0x41fb51
mov ecx, dword [eax]
mov edi, 1
cmp dword [ebp - 0x3c4], ecx
je case.default.0x41faf9
mov dword [ebp - 0x1e4], ecx
jmp 0x41fb51
mov ecx, dword [eax]
cmp ebx, ecx
je case.default.0x41faf9
mov dword [ebp - 0x1e0], ecx
jmp 0x41fb51
mov ecx, dword [eax]
mov edi, 1
cmp dword [ebp - 0x3c8], ecx
je case.default.0x41faf9
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [esi + 0xe0]
add edx, edi
add eax, 0xc
mov dword [ebp - 0x7a0], ecx
cmp edx, ecx
jl 0x41fae2
xor edx, edx
cmp dword [ebp - 0x7a0], edx
jle 0x41fe9b
lea eax, [esi + 0x48]
mov esi, dword [ebp - 0x340]
cmp edx, 4
jg 0x41fe9b
mov ecx, dword [eax - 8]
add ecx, 0xffffff5f
cmp ecx, 3
ja case.default.0x41fba2
jmp dword [ecx*4 + 0x420c00]
mov ecx, dword [eax]
cmp dword [ebp - 0x3bc], ecx
je 0x41fbbf
mov dword [ebp - 0x1dc], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 4]
cmp dword [ebp - 0x3b8], ecx
je 0x41fbd6
mov dword [ebp - 0x1d8], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 8]
cmp dword [ebp - 0x39c], ecx
je 0x41fbed
mov dword [ebp - 0x1bc], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0xc]
cmp dword [ebp - 0x398], ecx
je 0x41fc04
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x10]
cmp dword [ebp - 0x394], ecx
je 0x41fc1b
mov dword [ebp - 0x1b4], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x14]
cmp dword [ebp - 0x36c], ecx
je 0x41fc32
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x18]
cmp dword [ebp - 0x368], ecx
je 0x41fc49
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x1c]
cmp dword [ebp - 0x364], ecx
je case.default.0x41fba2
mov dword [ebp - 0x184], ecx
jmp 0x41fe84
mov ecx, dword [eax]
cmp dword [ebp - 0x3ac], ecx
je 0x41fc79
mov dword [ebp - 0x1cc], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 4]
cmp dword [ebp - 0x3a8], ecx
je 0x41fc90
mov dword [ebp - 0x1c8], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 8]
cmp dword [ebp - 0x384], ecx
je 0x41fca7
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0xc]
cmp dword [ebp - 0x380], ecx
je 0x41fcbe
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x10]
cmp dword [ebp - 0x37c], ecx
je 0x41fcd5
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x14]
cmp dword [ebp - 0x354], ecx
je 0x41fcec
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x18]
cmp dword [ebp - 0x350], ecx
je 0x41fd03
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x1c]
cmp dword [ebp - 0x34c], ecx
je case.default.0x41fba2
mov dword [ebp - 0x16c], ecx
jmp 0x41fe84
mov ecx, dword [eax]
cmp dword [ebp - 0x3a4], ecx
je 0x41fd33
mov dword [ebp - 0x1c4], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 4]
cmp dword [ebp - 0x3a0], ecx
je 0x41fd4a
mov dword [ebp - 0x1c0], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 8]
cmp dword [ebp - 0x378], ecx
je 0x41fd61
mov dword [ebp - 0x198], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0xc]
cmp dword [ebp - 0x374], ecx
je 0x41fd78
mov dword [ebp - 0x194], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x10]
cmp dword [ebp - 0x370], ecx
je 0x41fd8f
mov dword [ebp - 0x190], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x14]
cmp dword [ebp - 0x348], ecx
je 0x41fda6
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x18]
cmp dword [ebp - 0x344], ecx
je 0x41fdbd
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x1c]
cmp esi, ecx
je case.default.0x41fba2
mov dword [ebp - 0x160], ecx
jmp 0x41fe84
mov ecx, dword [eax]
cmp dword [ebp - 0x3b4], ecx
je 0x41fde9
mov dword [ebp - 0x1d4], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 4]
cmp dword [ebp - 0x3b0], ecx
je 0x41fe00
mov dword [ebp - 0x1d0], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 8]
cmp dword [ebp - 0x390], ecx
je 0x41fe17
mov dword [ebp - 0x1b0], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0xc]
cmp dword [ebp - 0x38c], ecx
je 0x41fe2e
mov dword [ebp - 0x1ac], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x10]
cmp dword [ebp - 0x388], ecx
je 0x41fe45
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x14]
cmp dword [ebp - 0x360], ecx
je 0x41fe5c
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x18]
cmp dword [ebp - 0x35c], ecx
je 0x41fe73
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x794], edi
mov ecx, dword [eax + 0x1c]
cmp dword [ebp - 0x358], ecx
je case.default.0x41fba2
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x794], edi
add edx, edi
add eax, 0x28
cmp edx, dword [ebp - 0x7a0]
jl 0x41fb87
xor bl, bl
cmp byte [ebp - 0x144], 1
jne 0x41feb8
cmp dword [ebp - 0x108], 0
jne 0x41feb8
mov bl, 1
mov eax, str.true
jmp 0x41febd
mov eax, str.false
push eax
push str.IsTankModel___s_n
push 0x100000
push 0x5eb054
call fcn.0042e040
mov ecx, dword [ebp - 0x7a4]
add esp, 0x10
test bl, bl
jne 0x41feeb
mov edx, dword [ecx + 0xe0]
mov dword [ebp - 0x108], edx
cmp dword [ecx + 0xe0], 0
je 0x41ff66
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x1c]
mov esi, dword [ecx + 0x30]
mov dword [ebp - 0x118], eax
mov eax, dword [ecx + 0x28]
mov dword [ebp - 0x114], edx
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x110], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10c], edx
mov edx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x100], edx
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0xf8], ecx
cmp dword [ebp - 0x2e4], eax
jne 0x41ff5c
cmp dword [ebp - 0x2e0], edx
jne 0x41ff5c
cmp dword [ebp - 0x2dc], esi
jne 0x41ff5c
cmp dword [ebp - 0x2d8], ecx
je 0x41ff66
mov dword [ebp - 0x794], 1
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 8]
xor edx, edx
test esi, esi
jle 0x41ffa3
xor ecx, ecx
cmp ecx, 0x3c
jge 0x41ffa3
test edx, edx
js 0x41ffe1
cmp edx, esi
jge 0x41ffe1
mov eax, dword [edi + 4]
mov ebx, dword [eax + ecx]
mov dword [ebp + ecx - 0x60], ebx
mov ebx, dword [eax + ecx + 4]
mov dword [ebp + ecx - 0x5c], ebx
mov eax, dword [eax + ecx + 8]
mov dword [ebp + ecx - 0x58], eax
inc edx
add ecx, 0xc
cmp edx, esi
jl 0x41ff74
xor eax, eax
jmp 0x41ffb0
mov ecx, dword [ebp + eax - 0x60]
cmp ecx, dword [ebp + eax - 0x240]
jne 0x41ffe6
mov edx, dword [ebp + eax - 0x58]
cmp edx, dword [ebp + eax - 0x238]
jne 0x41ffe6
mov cl, byte [ebp + eax - 0x5c]
cmp cl, byte [ebp + eax - 0x23c]
jne 0x41ffe6
add eax, 0xc
cmp eax, 0x3c
jb 0x41ffb0
jmp 0x41fff0
call fcn.004666be
mov dword [ebp - 0x794], 1
mov edi, dword [ebp - 0x7b0]
mov edx, dword [ebp - 0x130]
mov eax, dword [edi + 0x4bc]
mov ecx, dword [edi + 0x49c]
lea esi, [edi + 0x16f4]
mov dword [esi + 0x14], eax
cmp edx, dword [ebp - 0x310]
je 0x4200bd
cmp ecx, 1
jne 0x420066
cmp byte [ebp - 0x134], 3
je 0x42004f
cmp edx, 0x2716
je 0x42004f
sub eax, 0
je 0x4200aa
dec eax
je 0x4200aa
dec eax
jne 0x4200aa
lea ecx, [ebp - 0x1f0]
mov edx, esi
call fcn.00447f30
xor edi, edi
jmp 0x4200b1
sub eax, 0
je 0x4200aa
dec eax
je 0x42005f
dec eax
jne 0x4200aa
lea edi, [eax + 1]
jmp 0x4200b1
mov edi, 1
jmp 0x4200ac
cmp byte [ebp - 0x134], 3
je 0x420083
cmp edx, 0x2716
je 0x420083
xor edi, edi
sub eax, edi
je 0x4200ac
dec eax
je 0x4200ac
dec eax
jmp 0x4200ac
sub eax, 0
je 0x4200aa
dec eax
je 0x420092
xor edi, edi
dec eax
jne 0x4200ac
jmp 0x4200b1
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4200aa
push 0x40005
push eax
push str.WAVE_BEEP
call dword [sym.imp.WINMM.dll_PlaySoundA]
xor edi, edi
call fcn.00448210
mov dword [ebp - 0xcc], edi
mov edi, dword [ebp - 0x7b0]
mov esi, 1
cmp dword [ebp - 0xd4], esi
jne 0x420179
cmp byte [edi + 0x1720], 1
jne 0x420179
cmp byte [ebp - 0x134], 5
je 0x420179
cmp byte [ebp - 0x314], 5
jne 0x420179
push str.________________CheckFirmUpdate______________________n
push 0x40000
push 0x5eb054
call fcn.0042e040
mov edx, dword [edi + 0x20]
add esp, 0xc
push 9
push edx
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.00456dc0
cmp eax, esi
jne 0x420148
mov al, byte [edi + 0x1718]
cmp al, 1
je 0x420148
mov ecx, dword [edi + 0x16f0]
test ecx, ecx
je 0x420148
push esi
movzx eax, al
push 0
push eax
lea eax, [edi + 0x5b0]
push eax
call fcn.00459350
mov ecx, dword [edi + 0x20]
push 0
push 0xea60
push 9
push ecx
mov byte [edi + 0x1720], 1
call dword [sym.imp.USER32.dll_SetTimer]
push 0x5b910c
push 0x40000
push 0x5eb054
call fcn.0042e040
add esp, 0xc
cmp dword [ebp - 0x24], 0
je 0x42019e
cmp byte [ebp - 0x134], 5
je 0x420203
cmp byte [ebp - 0x314], 5
jne 0x42019e
mov edx, dword [ebp - 0xf0]
push edx
push edi
call fcn.004199a0
cmp byte [ebp - 0x134], 5
je 0x420203
cmp byte [ebp - 0x314], 5
jne 0x420203
lea eax, [edi + 0x172c]
push eax
lea ecx, [ebp - 0x1f0]
push ecx
call fcn.004359b0
test eax, eax
jne 0x4201e0
push str.Failed_to_get_function_information_from_device._r_n
push 0x20000
push 0x5eb054
call fcn.0042e040
add esp, 0xc
jmp 0x420203
cmp dword [ebp - 0x1c], esi
jne 0x420203
push str.Successful_to_get_information._SimpleCartridge_is_enable._r_n
push 0x100000
push 0x5eb054
call fcn.0042e040
add esp, 0xc
mov ecx, edi
call fcn.0040b590
lea edx, [ebp - 0x1f0]
push edx
lea eax, [ebp - 0x5b0]
push eax
call fcn.00402d00
mov ecx, dword [ebp - 0x7bc]
mov byte [ebp - 4], 8
cmp ecx, dword [edi + 0x5b8]
jge 0x41ffe1
mov ebx, dword [ebp - 0x7b0]
mov eax, dword [ebx + 0x5b4]
add eax, dword [ebp - 0x7b4]
lea edx, [ebp - 0x790]
push edx
lea edi, [ebp - 0x5b0]
call fcn.00402740
lea ecx, [ebp - 0x790]
call fcn.00402580
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00402580
mov eax, dword [ebp - 0x7a8]
mov ecx, pe_nt_image_headers32
cmp dword [eax - 8], ecx
jl 0x420683
mov dword [eax - 0xc], ecx
mov byte [eax + 0x100], 0
mov dword [ebp - method.CMessage.virtual_0], vtable.CMessage.0
call fcn.004655e9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4202a8
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x7c8], eax
call fcn.004655e9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4202d4
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x7c4], eax
xor eax, eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x7a0], eax
cmp dword [ebx + 0x5e4], eax
jle 0x4207f8
mov dword [ebp - 0x7a4], eax
jmp 0x420316
mov eax, dword [ebp - 0x7a0]
test eax, eax
js 0x41ffe1
cmp eax, dword [ebx + 0x5e4]
jge 0x41ffe1
mov edi, dword [ebx + 0x5e0]
add edi, dword [ebp - 0x7a4]
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x7d0], edx
mov edx, dword [ebp - 0x7c8]
mov dword [ebp - 0x7cc], eax
mov eax, dword [edi + 0x10]
add edx, 0xfffffff0
lea esi, [eax - 0x10]
mov dword [ebp - 0x7d4], ecx
mov dword [ebp - 0x79c], edx
cmp esi, edx
je 0x42041d
cmp dword [edx + 0xc], 0
jl 0x42040d
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x42040d
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4203a3
cmp eax, dword [esi]
jne 0x4203a3
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4203d7
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x42059d
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.0055793f
add esp, 0x10
mov eax, dword [ebp - 0x79c]
add eax, 0xc
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x4203fc
mov eax, dword [ebp - 0x79c]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x10
mov dword [ebp - 0x7c8], ebx
mov ebx, dword [ebp - 0x7b0]
jmp 0x42041d
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x7c8]
call fcn.00401ea0
mov eax, dword [edi + 0x14]
mov edx, dword [ebp - 0x7c4]
add edx, 0xfffffff0
lea esi, [eax - 0x10]
mov dword [ebp - 0x79c], edx
cmp esi, edx
je 0x4204e9
cmp dword [edx + 0xc], 0
jl 0x4204d9
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x4204d9
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x42046f
cmp eax, dword [esi]
jne 0x42046f
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4204a3
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x42059d
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.0055793f
add esp, 0x10
mov eax, dword [ebp - 0x79c]
add eax, 0xc
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x4204c8
mov eax, dword [ebp - 0x79c]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x10
mov dword [ebp - 0x7c4], ebx
mov ebx, dword [ebp - 0x7b0]
jmp 0x4204e9
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x7c4]
call fcn.00401ea0
mov ecx, dword [ebp - 0x7d4]
mov edi, dword [edi + 0x18]
mov dword [ebp - 0x7c0], edi
cmp ecx, dword [ebp - 0x7bc]
je 0x420525
mov eax, dword [ebp - 0x7a0]
add dword [ebp - 0x7a4], 0x1c
inc eax
mov dword [ebp - 0x7a0], eax
cmp eax, dword [ebx + 0x5e4]
jl 0x420310
jmp 0x4207f8
mov eax, dword [edi + 8]
test eax, eax
jle 0x420662
mov edx, dword [ebp - 0x7cc]
mov edi, dword [ebp - 0x7c8]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x7d0]
mov dword [esi + 0xc], edx
mov dword [esi], vtable.CMessage.0
mov dword [esi + 8], ecx
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x7b4], esp
mov dword [ebp - 0x79c], esi
call edx
cmp dword [edi - 4], 0
lea edx, [edi - 4]
jl 0x420589
cmp eax, dword [edi - 0x10]
jne 0x420589
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4205bb
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x4205a2
call fcn.00404ff0
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.0055793f
add esp, 0x10
add ebx, 0x10
mov dword [esi + 0x10], ebx
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x7c4]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi - 4], 0
lea ecx, [edi - 4]
jl 0x4205f1
cmp eax, dword [edi - 0x10]
jne 0x4205f1
lea ebx, [edi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x420623
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x42060a
call fcn.00404ff0
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.0055793f
add esp, 0x10
mov edx, dword [ebp - 0x7c0]
add ebx, 0x10
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], edx
sub esp, 0x1dc
mov byte [ebp - 4], 0xb
mov eax, esp
mov dword [ebp - 0x79c], esp
lea ecx, [ebp - 0x1f0]
push ecx
push eax
call fcn.00402d00
mov byte [ebp - 4], 9
call fcn.0041bc70
test eax, eax
jne 0x4207f8
mov edx, dword [ebp - 0x798]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x4206c9
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x4206a1
cmp dword [edx - 8], 0
jge 0x42068d
push 0x80070057
call fcn.00402040
mov dword [edx - 0xc], 0
mov eax, dword [ebp - 0x798]
xor edx, edx
mov word [eax], dx
jmp 0x4206c9
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4206b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [ebp - 0x798], eax
sub esp, 0x1dc
mov ecx, esp
mov dword [ebp - 0x7b4], esp
lea edx, [ebp - 0x1f0]
push edx
push ecx
call fcn.00402d00
lea ecx, [ebp - 0x7b4]
call fcn.0041b0f0
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
mov ebx, dword [ebp - 0x798]
lea esi, [eax - 0x10]
add ebx, 0xfffffff0
cmp esi, ebx
je 0x4207ae
cmp dword [ebx + 0xc], 0
jl 0x42079e
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x42079e
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x42073e
cmp eax, dword [esi]
jne 0x42073e
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x42077a
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x420757
call fcn.00404ff0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0055793f
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x420793
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add edi, 0x10
mov dword [ebp - 0x798], edi
jmp 0x4207ae
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x798]
call fcn.00404e60
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x7b4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4207d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x7c0]
mov ecx, dword [ecx + 8]
xor eax, eax
test ecx, ecx
jle 0x4207f8
test eax, eax
js 0x41ffe1
cmp eax, ecx
jge 0x41ffe1
inc eax
cmp eax, ecx
jl 0x4207e3
mov edx, dword [ebp - 0x310]
cmp edx, dword [ebp - 0x130]
jne 0x420972
mov al, byte [ebp - 0x314]
cmp al, byte [ebp - 0x134]
jne 0x420972
mov ecx, dword [ebp - 0x13c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x420837
push 0x80004005
call fcn.00402040
mov eax, dword [ebp - 0x31c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420866
test dx, dx
je 0x420862
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420866
add eax, 4
add ecx, 4
test dx, dx
jne 0x420840
xor eax, eax
jmp 0x42086b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x420972
mov ecx, dword [ebp - 0x138]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x420893
push 0x80004005
call fcn.00402040
mov eax, dword [ebp - 0x318]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4208c6
test dx, dx
je 0x4208c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4208c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4208a0
xor eax, eax
jmp 0x4208cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x420972
cmp dword [ebp - 0x794], 0
jne 0x420972
cmp dword [ebp - 0x7b8], 0
jne 0x420972
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x7c4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420918
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x7c8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42093a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x7ac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420960
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x7a8]
add eax, 0xfffffff0
jmp 0x420b78
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x7c4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420998
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x7c8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4209ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x7ac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4209e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x7a8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420a06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x3d0]
call fcn.00402580
lea ecx, [ebp - 0x1f0]
call fcn.00402580
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x798]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420a45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x420bd2
xor eax, eax
mov dword [ebp - 0x7b8], eax
mov byte [ebp - 0x134], 5
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x1ec], eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0xe4], edi
jne 0x420a90
mov dword [ebp - 0x7b8], edi
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0x15c]
push ecx
push str._dwStsCode___80000_Delete_Thread_DeviceName___s__n
push 0x40000
push 0x5eb054
call fcn.0042e040
add esp, 0x10
lea edx, [ebp - 0x1f0]
push edx
lea eax, [ebp - 0x5b0]
push eax
call fcn.00402d00
mov ecx, dword [ebp - 0x7bc]
mov edx, dword [ebp - 0x7b0]
mov byte [ebp - 4], 7
cmp ecx, dword [edx + 0x5b8]
jge 0x41ffe1
lea eax, [ebp - 0x790]
push eax
mov esi, edx
mov eax, dword [esi + 0x5b4]
add eax, ebx
lea edi, [ebp - 0x5b0]
call fcn.00402740
lea ecx, [ebp - 0x790]
call fcn.00402580
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00402580
mov edi, dword [ebp - 0x7a8]
mov eax, pe_nt_image_headers32
cmp dword [edi - 8], eax
jl 0x420683
mov ecx, dword [ebp - 0x7bc]
mov dword [edi - 0xc], eax
mov byte [edi + 0x100], 0
cmp dword [esi + 0x58c], ecx
jne 0x420b4b
cmp dword [ebp - 0x7b8], 1
jne 0x420b4b
mov ecx, esi
call fcn.00416190
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x7ac]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420b71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420b91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x3d0]
call fcn.00402580
lea ecx, [ebp - 0x1f0]
call fcn.00402580
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x798]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420bd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005578df
mov esp, ebp
pop ebp
ret 0xc