Function at 0x420480
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d322
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x5f01b4]
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 0x5c055c
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x830], esi
mov dword [ebp - 0x83c], ebx
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x814], edi
mov dword [ebp - 0x838], edi
call fcn.0042fc70
lea ecx, [ebp - 0x210]
push ecx
mov dword [ebp - 4], edi
call fcn.00402170
lea edx, [ebp - 0x410]
push edx
mov byte [ebp - 4], 1
call fcn.00402170
mov byte [ebp - 4], 2
call fcn.0046b8a8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x420522
push 0x80004005
call fcn.004020e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x828], eax
mov byte [ebp - 4], 3
cmp ebx, edi
jl 0x420d91
cmp ebx, dword [esi + 0x5b8]
jge 0x420d91
mov eax, dword [esi + 0x5b4]
imul ebx, ebx, 0x1fc
lea ecx, [ebp - 0x610]
add eax, ebx
push ecx
lea edi, [ebp - 0x210]
mov dword [ebp - 0x834], ebx
call fcn.004028c0
lea ecx, [ebp - 0x610]
call fcn.004026e0
lea edx, [ebp - 0x610]
mov eax, edi
push edx
lea edi, [ebp - 0x410]
call fcn.004028c0
lea ecx, [ebp - 0x610]
call fcn.004026e0
mov eax, dword [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x828]
call fcn.004320f0
mov eax, dword [ebp - 0x828]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x100
or eax, ecx
jge 0x4205d8
push 0x100
lea ecx, [ebp - 0x828]
call fcn.00401e80
lea esi, [ebp - 0x82c]
call fcn.00435540
push str.DebugBrStMonW.ini
mov ecx, esi
push ecx
lea edx, [ebp - 0x81c]
push edx
mov byte [ebp - 4], 4
call fcn.00404ea0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00402070
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x81c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420630
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x82c]
push ecx
push 0
push 0x5bf820
push str.Debug
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x42069f
mov eax, dword [ebp - 0x82c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x81c], esp
mov esi, esp
push eax
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x17c]
add eax, 0xfffffff0
mov dword [ebp - 0x820], esp
mov esi, esp
push eax
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp - 0x824]
add esp, 4
push esi
mov byte [ebp - 4], 4
call fcn.0042e800
jmp 0x4206a5
mov esi, dword [ebp - 0x824]
mov eax, dword [esi]
mov edi, 1
cmp eax, 0x13880
ja 0x4217ff
cmp dword [ebp + 0x10], edi
je 0x4217ff
lea edx, [esi + 8]
push edx
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0xf4], edi
call fcn.004050a0
lea ecx, [ebp - 0x15c]
call fcn.00405110
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x15c]
call fcn.004050a0
lea ecx, [esi + 0xc]
push ecx
lea ecx, [ebp - 0x818]
call fcn.004050a0
lea ecx, [ebp - 0x158]
call fcn.00405110
lea edx, [ebp - 0x818]
push edx
lea ecx, [ebp - 0x158]
call fcn.004050a0
mov al, byte [esi + 4]
mov byte [ebp - 0x154], al
mov eax, dword [esi + 0x100]
test eax, eax
jne 0x420740
mov byte [ebp - 0x154], 5
jmp 0x420765
cmp eax, edi
jne 0x42074d
mov byte [ebp - 0x154], 1
jmp 0x420765
cmp eax, 2
jne 0x42075a
mov byte [ebp - 0x154], al
jmp 0x420765
cmp eax, 3
jne 0x420765
mov byte [ebp - 0x154], al
mov ecx, dword [ebp - 0x17c]
push ecx
push str._UpdateMessage___DeviceName___s__n
push 0x40000
push 0x5f2054
call fcn.00433010
movzx edx, byte [ebp - 0x154]
push edx
push str._UpdateMessage___m_ucStatus___c__n
push 0x40000
push 0x5f2054
call fcn.00433010
mov eax, dword [ebp - 0x150]
push eax
push str._UpdateMessage___m_dwStatus___d__n
push 0x40000
push 0x5f2054
call fcn.00433010
mov ecx, dword [ebp - 0x15c]
push ecx
push str._UpdateMessage___m_strCurMessage___d__n
push 0x40000
push 0x5f2054
call fcn.00433010
mov edx, dword [ebp - 0x100]
add esp, 0x40
cmp edx, dword [esi + 0xf4]
jne 0x4207ef
mov eax, dword [esi + 0xf8]
cmp dword [eax - 0xc], 0
jne 0x42081f
lea ecx, [esi + 0xf8]
push ecx
lea ecx, [ebp - 0x174]
call fcn.00402070
mov edx, dword [esi + 0xfc]
mov eax, dword [esi + 0xf4]
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x838], edi
mov eax, dword [esi + 0xf0]
xor edx, edx
mov dword [ebp - 0x820], eax
test eax, eax
jle 0x4208ce
mov ebx, dword [ebp - 0x400]
lea eax, [esi + 0x14]
mov edi, edi
cmp edx, 4
jg 0x4208ce
mov ecx, dword [eax - 4]
add ecx, 0xffffff5f
cmp ecx, 3
ja case.default.0x420857
jmp dword [ecx*4 + 0x4219a4]
mov ecx, dword [eax]
mov edi, 1
cmp dword [ebp - 0x40c], ecx
je case.default.0x420857
mov dword [ebp - 0x20c], ecx
jmp 0x4208af
mov ecx, dword [eax]
mov edi, 1
cmp dword [ebp - 0x404], ecx
je case.default.0x420857
mov dword [ebp - 0x204], ecx
jmp 0x4208af
mov ecx, dword [eax]
cmp ebx, ecx
je case.default.0x420857
mov dword [ebp - 0x200], ecx
jmp 0x4208af
mov ecx, dword [eax]
mov edi, 1
cmp dword [ebp - 0x408], ecx
je case.default.0x420857
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [esi + 0xf0]
add edx, edi
add eax, 0x10
mov dword [ebp - 0x820], ecx
cmp edx, ecx
jl 0x420840
xor edx, edx
cmp dword [ebp - 0x820], edx
jle 0x420bf9
lea eax, [esi + 0x58]
mov esi, dword [ebp - 0x380]
cmp edx, 4
jg 0x420bf9
mov ecx, dword [eax - 8]
add ecx, 0xffffff5f
cmp ecx, 3
ja case.default.0x420900
jmp dword [ecx*4 + 0x4219b4]
mov ecx, dword [eax]
cmp dword [ebp - 0x3fc], ecx
je 0x42091d
mov dword [ebp - 0x1fc], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 4]
cmp dword [ebp - 0x3f8], ecx
je 0x420934
mov dword [ebp - 0x1f8], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 8]
cmp dword [ebp - 0x3dc], ecx
je 0x42094b
mov dword [ebp - 0x1dc], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0xc]
cmp dword [ebp - 0x3d8], ecx
je 0x420962
mov dword [ebp - 0x1d8], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x10]
cmp dword [ebp - 0x3d4], ecx
je 0x420979
mov dword [ebp - 0x1d4], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x14]
cmp dword [ebp - 0x3ac], ecx
je 0x420990
mov dword [ebp - 0x1ac], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x18]
cmp dword [ebp - 0x3a8], ecx
je 0x4209a7
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x1c]
cmp dword [ebp - 0x3a4], ecx
je case.default.0x420900
mov dword [ebp - 0x1a4], ecx
jmp 0x420be2
mov ecx, dword [eax]
cmp dword [ebp - 0x3ec], ecx
je 0x4209d7
mov dword [ebp - 0x1ec], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 4]
cmp dword [ebp - 0x3e8], ecx
je 0x4209ee
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 8]
cmp dword [ebp - 0x3c4], ecx
je 0x420a05
mov dword [ebp - 0x1c4], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0xc]
cmp dword [ebp - 0x3c0], ecx
je 0x420a1c
mov dword [ebp - 0x1c0], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x10]
cmp dword [ebp - 0x3bc], ecx
je 0x420a33
mov dword [ebp - 0x1bc], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x14]
cmp dword [ebp - 0x394], ecx
je 0x420a4a
mov dword [ebp - 0x194], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x18]
cmp dword [ebp - 0x390], ecx
je 0x420a61
mov dword [ebp - 0x190], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x1c]
cmp dword [ebp - 0x38c], ecx
je case.default.0x420900
mov dword [ebp - 0x18c], ecx
jmp 0x420be2
mov ecx, dword [eax]
cmp dword [ebp - 0x3e4], ecx
je 0x420a91
mov dword [ebp - 0x1e4], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 4]
cmp dword [ebp - 0x3e0], ecx
je 0x420aa8
mov dword [ebp - 0x1e0], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 8]
cmp dword [ebp - 0x3b8], ecx
je 0x420abf
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0xc]
cmp dword [ebp - 0x3b4], ecx
je 0x420ad6
mov dword [ebp - 0x1b4], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x10]
cmp dword [ebp - 0x3b0], ecx
je 0x420aed
mov dword [ebp - 0x1b0], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x14]
cmp dword [ebp - 0x388], ecx
je 0x420b04
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x18]
cmp dword [ebp - 0x384], ecx
je 0x420b1b
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x1c]
cmp esi, ecx
je case.default.0x420900
mov dword [ebp - 0x180], ecx
jmp 0x420be2
mov ecx, dword [eax]
cmp dword [ebp - 0x3f4], ecx
je 0x420b47
mov dword [ebp - 0x1f4], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 4]
cmp dword [ebp - 0x3f0], ecx
je 0x420b5e
mov dword [ebp - 0x1f0], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 8]
cmp dword [ebp - 0x3d0], ecx
je 0x420b75
mov dword [ebp - 0x1d0], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0xc]
cmp dword [ebp - 0x3cc], ecx
je 0x420b8c
mov dword [ebp - 0x1cc], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x10]
cmp dword [ebp - 0x3c8], ecx
je 0x420ba3
mov dword [ebp - 0x1c8], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x14]
cmp dword [ebp - 0x3a0], ecx
je 0x420bba
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x18]
cmp dword [ebp - 0x39c], ecx
je 0x420bd1
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x814], edi
mov ecx, dword [eax + 0x1c]
cmp dword [ebp - 0x398], ecx
je case.default.0x420900
mov dword [ebp - 0x198], ecx
mov dword [ebp - 0x814], edi
add edx, edi
add eax, 0x28
cmp edx, dword [ebp - 0x820]
jl 0x4208e5
xor bl, bl
cmp byte [ebp - 0x164], 1
jne 0x420c16
cmp dword [ebp - 0x128], 0
jne 0x420c16
mov bl, 1
mov eax, str.true
jmp 0x420c1b
mov eax, str.false
push eax
push str.IsTankModel___s_n
push 0x100000
push 0x5f2054
call fcn.00433010
mov edx, dword [ebp - 0x824]
add esp, 0x10
test bl, bl
jne 0x420c49
mov ecx, dword [edx + 0xf0]
mov dword [ebp - 0x128], ecx
cmp dword [edx + 0xf0], 0
je 0x420d18
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x20]
mov ebx, dword [edx + 0x1c]
mov esi, dword [edx + 0x38]
mov edi, dword [edx + 0x48]
mov dword [ebp - 0x138], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x134], ecx
mov ecx, dword [edx + 0x40]
mov dword [ebp - 0x114], ebx
mov ebx, dword [edx + 0x2c]
mov dword [ebp - 0x130], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x12c], ecx
mov ecx, dword [edx + 0x28]
mov dword [ebp - 0x110], ebx
mov ebx, dword [edx + 0x3c]
mov edx, dword [edx + 0x4c]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], edx
cmp dword [ebp - 0x324], eax
jne 0x420d0e
cmp dword [ebp - 0x320], ecx
jne 0x420d0e
cmp dword [ebp - 0x31c], esi
jne 0x420d0e
cmp dword [ebp - 0x318], edi
jne 0x420d0e
mov eax, dword [ebp - 0x114]
cmp dword [ebp - 0x314], eax
jne 0x420d0e
mov ecx, dword [ebp - 0x110]
cmp dword [ebp - 0x310], ecx
jne 0x420d0e
cmp dword [ebp - 0x30c], ebx
jne 0x420d0e
cmp dword [ebp - 0x308], edx
je 0x420d18
mov dword [ebp - 0x814], 1
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 8]
xor edx, edx
test esi, esi
jle 0x420d55
xor ecx, ecx
cmp ecx, 0x3c
jge 0x420d55
test edx, edx
js 0x420d91
cmp edx, esi
jge 0x420d91
mov eax, dword [edi + 4]
mov ebx, dword [eax + ecx]
mov dword [ebp + ecx - 0x70], ebx
mov ebx, dword [eax + ecx + 4]
mov dword [ebp + ecx - 0x6c], ebx
mov eax, dword [eax + ecx + 8]
mov dword [ebp + ecx - 0x68], eax
inc edx
add ecx, 0xc
cmp edx, esi
jl 0x420d26
xor eax, eax
jmp 0x420d60
mov ecx, dword [ebp + eax - 0x70]
cmp ecx, dword [ebp + eax - 0x270]
jne 0x420d96
mov edx, dword [ebp + eax - 0x68]
cmp edx, dword [ebp + eax - 0x268]
jne 0x420d96
mov cl, byte [ebp + eax - 0x6c]
cmp cl, byte [ebp + eax - 0x26c]
jne 0x420d96
add eax, 0xc
cmp eax, 0x3c
jb 0x420d60
jmp 0x420da0
call fcn.0046c980
mov dword [ebp - 0x814], 1
mov edi, dword [ebp - 0x830]
mov edx, dword [ebp - 0x150]
mov eax, dword [edi + 0x4bc]
mov ecx, dword [edi + 0x49c]
lea esi, [edi + 0x18c8]
mov dword [esi + 0x14], eax
cmp edx, dword [ebp - 0x350]
je 0x420e6d
cmp ecx, 1
jne 0x420e16
cmp byte [ebp - 0x154], 3
je 0x420dff
cmp edx, 0x2716
je 0x420dff
sub eax, 0
je 0x420e5a
dec eax
je 0x420e5a
dec eax
jne 0x420e5a
lea ecx, [ebp - 0x210]
mov edx, esi
call fcn.0044d960
xor edi, edi
jmp 0x420e61
sub eax, 0
je 0x420e5a
dec eax
je 0x420e0f
dec eax
jne 0x420e5a
lea edi, [eax + 1]
jmp 0x420e61
mov edi, 1
jmp 0x420e5c
cmp byte [ebp - 0x154], 3
je 0x420e33
cmp edx, 0x2716
je 0x420e33
xor edi, edi
sub eax, edi
je 0x420e5c
dec eax
je 0x420e5c
dec eax
jmp 0x420e5c
sub eax, 0
je 0x420e5a
dec eax
je 0x420e42
xor edi, edi
dec eax
jne 0x420e5c
jmp 0x420e61
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x420e5a
push 0x40005
push eax
push str.WAVE_BEEP
call dword [sym.imp.WINMM.dll_PlaySoundA]
xor edi, edi
call fcn.0044dc40
mov dword [ebp - 0xdc], edi
mov edi, dword [ebp - 0x830]
mov esi, 1
cmp dword [ebp - 0xe4], esi
jne 0x420f29
cmp byte [edi + 0x18f4], 1
jne 0x420f29
cmp byte [ebp - 0x154], 5
je 0x420f29
cmp byte [ebp - 0x354], 5
jne 0x420f29
push str.________________CheckFirmUpdate______________________n
push 0x40000
push 0x5f2054
call fcn.00433010
mov edx, dword [edi + 0x20]
add esp, 0xc
push 9
push edx
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0045cee0
cmp eax, esi
jne 0x420ef8
mov al, byte [edi + 0x18ec]
cmp al, 1
je 0x420ef8
mov ecx, dword [edi + 0x18c4]
test ecx, ecx
je 0x420ef8
push esi
movzx eax, al
push 0
push eax
lea eax, [edi + 0x5b0]
push eax
call fcn.0045f470
mov ecx, dword [edi + 0x20]
push 0
push 0xea60
push 9
push ecx
mov byte [edi + 0x18f4], 1
call dword [sym.imp.USER32.dll_SetTimer]
push 0x5bf248
push 0x40000
push 0x5f2054
call fcn.00433010
add esp, 0xc
cmp dword [ebp - 0x34], 0
je 0x420f52
cmp byte [ebp - 0x154], 5
je 0x420fb7
cmp byte [ebp - 0x354], 5
jne 0x420f52
mov edx, dword [ebp - 0x100]
push edx
push edi
call fcn.0041a690
cmp byte [ebp - 0x154], 5
je 0x420fb7
cmp byte [ebp - 0x354], 5
jne 0x420fb7
lea eax, [edi + 0x1900]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0043aa70
test eax, eax
jne 0x420f94
push str.Failed_to_get_function_information_from_device._r_n
push 0x20000
push 0x5f2054
call fcn.00433010
add esp, 0xc
jmp 0x420fb7
cmp dword [ebp - 0x2c], esi
jne 0x420fb7
push str.Successful_to_get_information._SimpleCartridge_is_enable._r_n
push 0x100000
push 0x5f2054
call fcn.00433010
add esp, 0xc
mov ecx, edi
call fcn.0040ba70
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x610]
push eax
call fcn.00402fc0
mov ecx, dword [ebp - 0x83c]
mov byte [ebp - 4], 8
cmp ecx, dword [edi + 0x5b8]
jge 0x420d91
mov ebx, dword [ebp - 0x830]
mov edi, dword [ebx + 0x5b4]
add edi, dword [ebp - 0x834]
lea edx, [ebp - 0x810]
push edx
lea eax, [ebp - 0x610]
call fcn.004028c0
lea ecx, [ebp - 0x810]
call fcn.004026e0
lea ecx, [ebp - 0x610]
mov byte [ebp - 4], 4
call fcn.004026e0
mov eax, dword [ebp - 0x828]
mov ecx, 0x100
cmp dword [eax - 8], ecx
jl 0x421433
mov dword [eax - 0xc], ecx
mov byte [eax + 0x100], 0
mov dword [ebp - method.CMessage.virtual_0], vtable.CMessage.0
call fcn.0046b8a8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x421060
push 0x80004005
call fcn.004020e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x848], eax
call fcn.0046b8a8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42108c
push 0x80004005
call fcn.004020e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x844], eax
xor eax, eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x820], eax
cmp dword [ebx + 0x5e4], eax
jle 0x4215a8
mov dword [ebp - 0x824], eax
jmp 0x4210c6
mov eax, dword [ebp - 0x820]
test eax, eax
js 0x420d91
cmp eax, dword [ebx + 0x5e4]
jge 0x420d91
mov edi, dword [ebx + 0x5e0]
add edi, dword [ebp - 0x824]
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x850], edx
mov edx, dword [ebp - 0x848]
mov dword [ebp - 0x84c], eax
mov eax, dword [edi + 0x10]
add edx, 0xfffffff0
lea esi, [eax - 0x10]
mov dword [ebp - 0x854], ecx
mov dword [ebp - 0x81c], edx
cmp esi, edx
je 0x4211cd
cmp dword [edx + 0xc], 0
jl 0x4211bd
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x4211bd
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x421153
cmp eax, dword [esi]
jne 0x421153
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x421187
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 0x42134d
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.0055dbf6
add esp, 0x10
mov eax, dword [ebp - 0x81c]
add eax, 0xc
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x4211ac
mov eax, dword [ebp - 0x81c]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x10
mov dword [ebp - 0x848], ebx
mov ebx, dword [ebp - 0x830]
jmp 0x4211cd
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x848]
call fcn.00401f50
mov eax, dword [edi + 0x14]
mov edx, dword [ebp - 0x844]
add edx, 0xfffffff0
lea esi, [eax - 0x10]
mov dword [ebp - 0x81c], edx
cmp esi, edx
je 0x421299
cmp dword [edx + 0xc], 0
jl 0x421289
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x421289
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x42121f
cmp eax, dword [esi]
jne 0x42121f
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x421253
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 0x42134d
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.0055dbf6
add esp, 0x10
mov eax, dword [ebp - 0x81c]
add eax, 0xc
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x421278
mov eax, dword [ebp - 0x81c]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x10
mov dword [ebp - 0x844], ebx
mov ebx, dword [ebp - 0x830]
jmp 0x421299
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x844]
call fcn.00401f50
mov ecx, dword [ebp - 0x854]
mov edi, dword [edi + 0x18]
mov dword [ebp - 0x840], edi
cmp ecx, dword [ebp - 0x83c]
je 0x4212d5
mov eax, dword [ebp - 0x820]
add dword [ebp - 0x824], 0x1c
inc eax
mov dword [ebp - 0x820], eax
cmp eax, dword [ebx + 0x5e4]
jl 0x4210c0
jmp 0x4215a8
mov eax, dword [edi + 8]
test eax, eax
jle 0x421412
mov edx, dword [ebp - 0x84c]
mov edi, dword [ebp - 0x848]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x850]
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 - 0x834], esp
mov dword [ebp - 0x81c], esi
call edx
cmp dword [edi - 4], 0
lea edx, [edi - 4]
jl 0x421339
cmp eax, dword [edi - 0x10]
jne 0x421339
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x42136b
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 0x421352
call fcn.00401ff0
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.0055dbf6
add esp, 0x10
add ebx, 0x10
mov dword [esi + 0x10], ebx
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x844]
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 0x4213a1
cmp eax, dword [edi - 0x10]
jne 0x4213a1
lea ebx, [edi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4213d3
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 0x4213ba
call fcn.00401ff0
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.0055dbf6
add esp, 0x10
mov edx, dword [ebp - 0x840]
add ebx, 0x10
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], edx
sub esp, 0x1fc
mov byte [ebp - 4], 0xb
mov eax, esp
mov dword [ebp - 0x81c], esp
lea ecx, [ebp - 0x210]
push ecx
push eax
call fcn.00402fc0
mov byte [ebp - 4], 9
call fcn.0041c9a0
test eax, eax
jne 0x4215a8
mov edx, dword [ebp - 0x818]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x421479
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x421451
cmp dword [edx - 8], 0
jge 0x42143d
push 0x80070057
call fcn.004020e0
mov dword [edx - 0xc], 0
mov eax, dword [ebp - 0x818]
xor edx, edx
mov word [eax], dx
jmp 0x421479
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421467
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 - 0x818], eax
sub esp, 0x1fc
mov ecx, esp
mov dword [ebp - 0x834], esp
lea edx, [ebp - 0x210]
push edx
push ecx
call fcn.00402fc0
lea ecx, [ebp - 0x834]
call fcn.0041be00
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
mov ebx, dword [ebp - 0x818]
lea esi, [eax - 0x10]
add ebx, 0xfffffff0
cmp esi, ebx
je 0x42155e
cmp dword [ebx + 0xc], 0
jl 0x42154e
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x42154e
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4214ee
cmp eax, dword [esi]
jne 0x4214ee
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x42152a
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 0x421507
call fcn.00401ff0
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.0055dbf6
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x421543
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add edi, 0x10
mov dword [ebp - 0x818], edi
jmp 0x42155e
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x818]
call fcn.00405200
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x834]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421584
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x840]
mov ecx, dword [ecx + 8]
xor eax, eax
test ecx, ecx
jle 0x4215a8
test eax, eax
js 0x420d91
cmp eax, ecx
jge 0x420d91
inc eax
cmp eax, ecx
jl 0x421593
mov edx, dword [ebp - 0x350]
cmp edx, dword [ebp - 0x150]
jne 0x421722
mov al, byte [ebp - 0x354]
cmp al, byte [ebp - 0x154]
jne 0x421722
mov ecx, dword [ebp - 0x15c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4215e7
push 0x80004005
call fcn.004020e0
mov eax, dword [ebp - 0x35c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421616
test dx, dx
je 0x421612
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421616
add eax, 4
add ecx, 4
test dx, dx
jne 0x4215f0
xor eax, eax
jmp 0x42161b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x421722
mov ecx, dword [ebp - 0x158]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x421643
push 0x80004005
call fcn.004020e0
mov eax, dword [ebp - 0x358]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421676
test dx, dx
je 0x421672
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421676
add eax, 4
add ecx, 4
test dx, dx
jne 0x421650
xor eax, eax
jmp 0x42167b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x421722
cmp dword [ebp - 0x814], 0
jne 0x421722
cmp dword [ebp - 0x838], 0
jne 0x421722
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x844]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4216c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x848]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4216ea
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 - 0x82c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421710
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 - 0x828]
add eax, 0xfffffff0
jmp 0x42192c
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x844]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421748
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x848]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42176a
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 - 0x82c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421790
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 - 0x828]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4217b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x410]
call fcn.004026e0
lea ecx, [ebp - 0x210]
call fcn.004026e0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4217f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x421986
xor eax, eax
mov dword [ebp - 0x838], eax
mov byte [ebp - 0x154], 5
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x204], eax
mov dword [ebp - 0x200], eax
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0xf4], edi
jne 0x421840
mov dword [ebp - 0x838], edi
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0x17c]
push ecx
push str._dwStsCode___80000_Delete_Thread_DeviceName___s__n
push 0x40000
push 0x5f2054
call fcn.00433010
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x610]
push eax
call fcn.00402fc0
mov ecx, dword [ebp - 0x83c]
mov edx, dword [ebp - 0x830]
mov byte [ebp - 4], 7
cmp ecx, dword [edx + 0x5b8]
jge 0x420d91
mov esi, edx
mov edi, dword [esi + 0x5b4]
lea eax, [ebp - 0x810]
push eax
add edi, ebx
lea eax, [ebp - 0x610]
call fcn.004028c0
lea ecx, [ebp - 0x810]
call fcn.004026e0
lea ecx, [ebp - 0x610]
mov byte [ebp - 4], 4
call fcn.004026e0
mov edi, dword [ebp - 0x828]
mov eax, 0x100
cmp dword [edi - 8], eax
jl 0x421433
mov ecx, dword [ebp - 0x83c]
mov dword [edi - 0xc], eax
mov byte [edi + 0x100], 0
cmp dword [esi + 0x58c], ecx
jne 0x4218ff
cmp dword [ebp - 0x838], 1
jne 0x4218ff
mov ecx, esi
call fcn.00416cb0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x82c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421925
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 0x421945
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x410]
call fcn.004026e0
lea ecx, [ebp - 0x210]
call fcn.004026e0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421984
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.0055db96
mov esp, ebp
pop ebp
ret 0xc