Function at 0x40cc60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x569fb4
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x5bfc00]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x5bfc00]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
push eax
mov esi, ecx
mov dword [esp + 0x4c], edi
call fcn.00424392
push 0x38
lea ecx, [esp + 0xd4]
push 0
push ecx
mov dword [esp + 0x28], eax
call fcn.00524a80
mov ecx, dword [esi + 0x20]
mov edx, dword [edi + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0xc
lea eax, [esp + 0xcc]
push eax
push 0
push 0x1005
push ecx
mov dword [esp + 0xdc], 0x1f
mov dword [esp + 0xec], 3
mov dword [esp + 0xe0], edx
call ebx
mov al, byte [esp + 0xd8]
mov edx, dword [esp + 0xd0]
mov dword [esp + 0x4c], edx
test al, 8
jne 0x40cd44
test al, 2
je 0x40cd3a
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0042c20a
cmp eax, esi
je 0x40cd44
mov ecx, esi
call fcn.00430ed4
test al, 8
jne 0x40cd44
mov dword [esp + 0x38], 0
jmp 0x40cd4c
mov dword [esp + 0x38], 1
lea eax, [edi + 0x1c]
push eax
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x1c]
push 1
call fcn.00423a8e
cmp dword [esp + 0x38], 0
je 0x40cd86
mov dword [esi + 0x88], 0xffffff
mov dword [esi + 0x8c], 0xa25a
jmp 0x40cd9a
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0xffffff
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [esi + 0x88]
mov edx, dword [edx + 0x30]
push eax
call edx
mov eax, dword [esi + 0x8c]
push eax
lea ecx, [esp + 0x44]
call fcn.00424884
test eax, eax
je 0x40cdc3
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x14c]
push ecx
push eax
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], vtable.CBrush.0
call fcn.00403340
test byte [edi + 0xc], 1
je 0x40ce83
call fcn.004261e2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ce0f
push 0x80004005
call fcn.00403230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, esi
mov dword [esp + 0x168], edi
call fcn.00435870
mov ecx, dword [eax + 0x20]
push edi
push edi
push 0x1200
push ecx
call ebx
mov ecx, esi
mov dword [esp + 0x34], edi
call fcn.00435870
mov edx, dword [eax + 0x20]
push edi
push edi
push 0x1200
push edx
call ebx
test eax, eax
jg 0x40cebd
mov dword [esp + 0x168], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ce83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00435ecb
call fcn.00435ecb
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esp + 0x34]
mov ecx, dword [esi + 0x20]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xa0]
push eax
push edi
push 0x1019
push ecx
call ebx
mov edx, dword [esp + 0xa4]
xor edx, 1
je 0x40cf38
mov dword [esp + 0x30], 1
mov edx, dword [esp + 0x48]
xor eax, eax
lea ecx, [esp + 0x118]
push ecx
push eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov eax, dword [edx + 8]
push edi
push eax
mov ecx, esi
call fcn.00426b4a
test eax, eax
je 0x40debf
xor eax, eax
cmp dword [esi + 0xc8], eax
jle 0x40cfbc
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x4c]
xor edx, edx
test eax, eax
js 0x40deef
cmp eax, dword [esi + 0xc8]
jge 0x40deef
mov ecx, dword [esi + 0xc4]
cmp dword [ecx + edx], edi
jne 0x40cfb0
cmp dword [ecx + edx + 4], ebx
je 0x40cfd9
inc eax
add edx, 0x10
cmp eax, dword [esi + 0xc8]
jl 0x40cf8b
cmp dword [esp + 0x38], 0
je 0x40d042
mov dword [esi + 0x88], 0xffffff
mov dword [esi + 0x8c], 0xa25a
jmp 0x40d056
cmp dword [esp + 0x38], 0
je 0x40d004
cmp eax, dword [esi + 0xc8]
jge 0x40deef
add eax, eax
mov edx, dword [ecx + eax*8 + 8]
mov dword [esi + 0x88], edx
mov dword [esi + 0x8c], 0xa25a
jmp 0x40d056
cmp eax, dword [esi + 0xc8]
jge 0x40deef
mov edx, dword [esi + 0xc4]
mov ecx, eax
add ecx, ecx
mov edx, dword [edx + ecx*8 + 8]
mov dword [esi + 0x88], edx
cmp eax, dword [esi + 0xc8]
jge 0x40deef
mov eax, dword [esi + 0xc4]
mov eax, dword [eax + ecx*8 + 0xc]
mov dword [esi + 0x8c], eax
jmp 0x40d056
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0xffffff
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx]
mov eax, dword [esi + 0x88]
mov edx, dword [edx + 0x30]
push eax
mov ecx, ebx
call edx
mov eax, dword [esi + 0x8c]
push eax
lea ecx, [esp + 0x8c]
call fcn.00424884
test eax, eax
je 0x40d084
mov eax, dword [eax + 4]
mov edx, dword [ebx + 4]
push eax
lea ecx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], vtable.CBrush.0
call fcn.00403340
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 8]
push eax
push edx
lea eax, [esp + 0x84]
push eax
mov ecx, esi
call fcn.004271df
mov byte [esp + 0x168], 1
mov ecx, dword [eax]
mov edi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x40d12f
cmp dword [edi + 0xc], 0
jl 0x40d121
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40d121
push eax
call fcn.00402d80
mov dword [esp + 0x24], eax
add esp, 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d114
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [esp + 0x14], ecx
jmp 0x40d12f
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402e50
mov byte [esp + 0x168], 0
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d157
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x34], 0
jne 0x40d3bd
mov ecx, dword [esi + 0x20]
push 0
push 1
push 0x1002
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.00427030
mov edx, dword [esp + 0xe8]
mov eax, dword [eax + 4]
push 0
push edx
push eax
call fcn.00428cc8
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00402700
mov ecx, dword [esi + 0x78]
add ecx, dword [esp + 0x118]
push eax
mov eax, dword [esi + 0x74]
sub eax, 0x20
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x120]
push eax
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.USER32.dll_DrawIcon]
cmp dword [esi + 0x98], 0
je 0x40d3b1
mov eax, dword [esp + 0x124]
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x118]
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x134], eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x130], edx
cdq
add ecx, 0xf
sub eax, edx
mov dword [esp + 0x128], ecx
add ecx, 0xd
sar eax, 1
lea eax, [eax + edi - 6]
mov dword [esp + 0x130], ecx
mov dword [esp + 0x12c], edi
push 0xffffff
lea ecx, [esp + 0x12c]
mov dword [esp + 0x130], eax
add eax, 0xd
push ecx
mov ecx, ebx
mov dword [esp + 0x13c], eax
call fcn.00427e2d
push 0x996633
lea ecx, [esp + 0x44]
call fcn.00424884
mov byte [esp + 0x168], 2
mov edx, dword [esp + 0x44]
mov ecx, dword [ebx + 4]
push edx
lea eax, [esp + 0x12c]
push eax
push ecx
call dword [sym.imp.USER32.dll_FrameRect]
mov edx, dword [esp + 0x4c]
push edx
mov ecx, esi
call fcn.00435816
test eax, eax
je 0x40d398
push 0x808080
push 1
push 0
lea ecx, [esp + 0x7c]
call fcn.0042483b
push 0x339933
push 1
push 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x174], 3
call fcn.0042483b
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x16c], 4
call fcn.00424767
mov edi, dword [esp + 0x128]
mov ebx, dword [esp + 0x12c]
add edi, 9
mov dword [esp + 0x20], eax
add ebx, 3
mov dword [esp + 0x24], 4
push ebx
push edi
lea ecx, [esp + 0x110]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0042409d
mov ecx, dword [esp + 0x1c]
lea edx, [ebx + 3]
push edx
push edi
call fcn.00423c2c
dec edi
inc ebx
dec dword [esp + 0x24]
jne 0x40d2e7
mov dword [esp + 0x24], 3
mov ecx, dword [esp + 0x1c]
push ebx
push edi
lea eax, [esp + 0x118]
push eax
call fcn.0042409d
lea ecx, [ebx + 3]
push ecx
mov ecx, dword [esp + 0x20]
push edi
call fcn.00423c2c
dec edi
dec ebx
dec dword [esp + 0x24]
jne 0x40d318
lea ecx, [esp + 0x70]
call fcn.004246d4
lea ecx, [esp + 0x50]
call fcn.004246d4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40d365
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00424767
mov byte [esp + 0x168], 3
mov edi, vtable.CPen.0
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], edi
call fcn.00403340
mov byte [esp + 0x168], 2
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], edi
call fcn.00403340
mov ebx, dword [esp + 0x1c]
mov byte [esp + 0x168], 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], vtable.CBrush.0
call fcn.00403340
mov edx, dword [esi + 0x7c]
add dword [esp + 0x118], edx
jmp 0x40d3c5
add dword [esp + 0x118], 9
mov ecx, dword [esp + 0x14]
dec dword [esp + 0x120]
cmp dword [ecx - 0xc], 0
jl 0x40d4f5
push 0x599c88
push ecx
call fcn.00522301
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40d3fb
sub eax, ecx
cmp eax, 0xffffffff
jne 0x40d799
cmp dword [ecx - 0xc], 0
jl 0x40d4f5
push 0x599c8c
push ecx
call fcn.00522301
add esp, 8
test eax, eax
je 0x40d4f5
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x40d4f5
mov eax, dword [esi + 0xb8]
push eax
push 0x20
mov ecx, dword [esi + 0xb0]
push 0
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0
push 0
push ecx
lea edi, [esi + 0x90]
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
mov ecx, edi
call fcn.0042467a
push 0x599330
push 0x599c8c
lea ecx, [esp + 0x1c]
call fcn.0040e6d0
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
push edi
mov ecx, ebx
call edx
cmp dword [esp + 0x38], 0
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
je 0x40d498
mov ecx, dword [esi + 0x88]
push ecx
jmp 0x40d49d
push 0x3c3c3c
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov ecx, dword [esp + 0x14]
add eax, 0x68
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
or eax, 0x824
push eax
lea eax, [esp + 0x11c]
push eax
push ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [edx]
push ecx
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x24]
mov edx, dword [edx + 0x28]
push eax
mov ecx, ebx
call edx
mov ecx, edi
call fcn.004246d4
jmp 0x40debf
call fcn.004261e2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40ce05
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x168], 5
mov eax, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
mov ecx, dword [esp + 0x118]
mov dword [esp + 0x98], eax
lea ebx, [eax - 0xf]
mov dword [esp + 0x94], edx
mov eax, 0x55555556
imul ebx
mov eax, edx
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x124]
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esi + 0xb0]
add eax, eax
push edx
mov dword [esi + 0xb4], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
imul eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xb4]
add eax, dword [esp + 0x90]
add ecx, ebx
cmp eax, ecx
mov ecx, dword [esp + 0x14]
jle 0x40d6e3
mov eax, ebx
sub eax, dword [esp + 0x90]
cdq
idiv dword [esp + 0x28]
mov edx, dword [ecx - 0xc]
cmp eax, edx
jge 0x40d673
push eax
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x1c]
call fcn.004013d0
mov byte [esp + 0x168], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x40d633
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40d625
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40d625
push eax
call fcn.00402d80
mov dword [esp + 0x24], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40d618
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [esp + 0x18], ecx
jmp 0x40d633
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00402e50
mov byte [esp + 0x168], 5
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d6d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 3
push 0x599c94
lea ecx, [esp + 0x20]
call fcn.00402060
jmp 0x40d73a
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x40d6d1
cmp dword [edi + 0xc], 0
jl 0x40d6c6
mov ebx, dword [eax]
cmp ebx, dword [edi]
jne 0x40d6c6
push eax
call fcn.00402d80
mov ebx, eax
add esp, 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d6ad
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
push 3
add ebx, 0x10
push 0x599c94
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.00402060
jmp 0x40d73a
push edx
push ecx
lea ecx, [esp + 0x20]
call fcn.00402e50
push 3
push 0x599c94
lea ecx, [esp + 0x20]
call fcn.00402060
jmp 0x40d73a
lea eax, [ecx - 0x10]
lea ebx, [edi - 0x10]
cmp eax, ebx
je 0x40d73e
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x40d72c
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x40d72c
push eax
call fcn.00402d80
mov dword [esp + 0x24], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40d71f
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov edi, dword [esp + 0x20]
add edi, 0x10
mov dword [esp + 0x18], edi
jmp 0x40d73e
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00402e50
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx]
or eax, 0x824
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x11c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x68]
push eax
push edi
call edx
add edi, 0xfffffff0
mov byte [esp + 0x168], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40debf
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
jmp 0x40debf
lea ecx, [esp + 0x58]
mov dword [esp + 0x30], 0
call fcn.00435894
mov byte [esp + 0x168], 7
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x40d968
push 0x599c88
push eax
call fcn.00522301
add esp, 8
test eax, eax
je 0x40d968
mov ecx, dword [esp + 0x14]
sub eax, ecx
cmp eax, 0xffffffff
je 0x40d968
cmp dword [ecx - 0xc], 0
jge 0x40d7f0
or eax, 0xffffffff
jmp 0x40d80b
push 0x599c88
push ecx
call fcn.00522301
add esp, 8
test eax, eax
jne 0x40d807
or eax, 0xffffffff
jmp 0x40d80b
sub eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004013d0
lea edx, [esp + 0x3c]
mov byte [esp + 0x168], 8
mov eax, dword [esp + 0x60]
push edx
push eax
lea ecx, [esp + 0x60]
call fcn.00435c2b
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx - 0xc]
add eax, 2
push eax
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
call fcn.004013a0
mov byte [esp + 0x168], 9
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea edi, [eax - 0x10]
mov dword [esp + 0x24], edx
cmp edi, edx
je 0x40d90b
cmp dword [edx + 0xc], 0
jl 0x40d8fd
mov ecx, dword [edi]
cmp ecx, dword [edx]
jne 0x40d8fd
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40d89f
cmp eax, dword [edi]
jne 0x40d89f
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40d8d3
mov ecx, dword [edi + 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 0x40def4
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
inc eax
push eax
add edi, 0x10
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00521cd5
add esp, 0x10
mov eax, dword [esp + 0x24]
add eax, 0xc
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40d8f4
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x40d90b
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402e50
mov byte [esp + 0x168], 8
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d933
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x30]
mov byte [esp + 0x168], 7
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d7b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40d7b2
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x60]
call fcn.00435c2b
mov edi, dword [esp + 0x30]
mov edx, dword [esi + 0x84]
mov ecx, dword [esi + 0x74]
imul edx, edi
mov eax, ecx
sub eax, edx
cdq
sub eax, edx
mov ebx, eax
mov eax, ecx
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
sub ebx, eax
add dword [esp + 0x11c], ebx
mov dword [esp + 0x24], 0
test edi, edi
js 0x40deae
call fcn.004261e2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40ce05
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x24]
mov byte [esp + 0x168], 0xa
mov edx, dword [esp + 0x124]
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x144], edx
mov edx, dword [esi + 0x84]
imul edx, edi
add edx, eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x138], ecx
mov ecx, dword [esp + 0x120]
sub ecx, 0xf
mov eax, 0x55555556
mov dword [esp + 0x13c], edx
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, eax
mov dword [esp + 0x140], ecx
mov dword [esi + 0xb4], eax
test edi, edi
js 0x40deef
cmp edi, dword [esp + 0x60]
jge 0x40deef
mov ecx, dword [esp + 0x5c]
mov edx, dword [esi + 0xb0]
lea eax, [edi*4]
mov dword [esp + 0x20], eax
mov eax, dword [eax + ecx]
mov ecx, dword [esi + 0xb4]
push eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
imul eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, dword [esp + 0x138]
add edx, dword [esp + 0x140]
cmp eax, edx
jle 0x40dcc1
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x138]
add eax, dword [esp + 0x140]
cdq
idiv dword [esp + 0x28]
cmp edi, dword [esp + 0x60]
jge 0x40deef
mov ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
cmp eax, dword [edx - 0xc]
jge 0x40dbe2
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.004013d0
mov byte [esp + 0x168], 0xb
mov eax, dword [eax]
add ebx, 0xfffffff0
lea edi, [eax - 0x10]
mov dword [esp + 0x28], ebx
cmp edi, ebx
je 0x40dba1
mov edx, ebx
cmp dword [edx + 0xc], 0
jl 0x40db93
mov ecx, dword [edi]
cmp ecx, dword [edx]
jne 0x40db93
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40db35
cmp eax, dword [edi]
jne 0x40db35
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40db69
mov ecx, dword [edi + 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 0x40def4
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
inc eax
push eax
add edi, 0x10
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00521cd5
add esp, 0x10
mov eax, dword [esp + 0x28]
add eax, 0xc
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40db8a
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x40dba1
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00402e50
mov byte [esp + 0x168], 0xa
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dcac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 3
push 0x599c94
lea ecx, [esp + 0x20]
call fcn.00402060
jmp 0x40dd89
mov ecx, edx
add ebx, 0xfffffff0
lea edi, [ecx - 0x10]
mov dword [esp + 0x2c], ebx
cmp edi, ebx
je 0x40dcac
cmp dword [ebx + 0xc], 0
jl 0x40dc9e
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x40dc9e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40dc2d
cmp eax, dword [edi]
jne 0x40dc2d
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40dc61
mov ecx, dword [edi + 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 0x40def4
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
inc eax
push eax
add edi, 0x10
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00521cd5
add esp, 0x10
mov eax, dword [esp + 0x2c]
add eax, 0xc
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40dc82
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 3
add ebx, 0x10
push 0x599c94
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.00402060
jmp 0x40dd89
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00402e50
push 3
push 0x599c94
lea ecx, [esp + 0x20]
call fcn.00402060
jmp 0x40dd89
cmp edi, dword [esp + 0x60]
jge 0x40deef
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
mov eax, dword [edx + ecx]
lea edx, [ebx - 0x10]
lea edi, [eax - 0x10]
mov dword [esp + 0x2c], edx
cmp edi, edx
je 0x40dd8d
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
mov dword [esp + 0x20], ecx
jl 0x40dd7b
mov ecx, dword [edi]
cmp ecx, dword [edx]
jne 0x40dd7b
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40dd20
cmp eax, dword [edi]
jne 0x40dd20
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40dd54
mov ecx, dword [edi + 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 0x40def4
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
inc eax
push eax
add edi, 0x10
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00521cd5
add esp, 0x10
mov edx, dword [esp + 0x20]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40dd72
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x40dd8d
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00402e50
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x34], 0
jne 0x40de52
cmp dword [esp + 0x24], 0
jne 0x40de52
cmp dword [esi + 0xbc], 0
je 0x40ddfc
mov eax, dword [esi + 0xb8]
push eax
push 0x20
mov ecx, dword [esi + 0xb0]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push ecx
lea edi, [esi + 0x90]
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
mov ecx, edi
call fcn.0042467a
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push edi
call eax
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
push 0x824
lea edx, [esp + 0x13c]
push edx
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x68]
push ebx
mov ecx, edi
call eax
cmp dword [esi + 0xbc], 0
je 0x40de77
mov edx, dword [edi]
mov eax, dword [esp + 0x84]
mov edx, dword [edx + 0x28]
push eax
mov ecx, edi
call edx
lea ecx, [esi + 0x90]
call fcn.004246d4
jmp 0x40de77
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
push 0x824
lea ecx, [esp + 0x13c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x24]
mov edx, dword [edi + 0x68]
push eax
push ebx
call edx
lea eax, [ebx - 0x10]
mov byte [esp + 0x168], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x30]
jle 0x40d9b6
lea ecx, [esp + 0x58]
mov byte [esp + 0x168], 0
call fcn.00435ad2
mov edi, dword [esp + 0x34]
inc edi
mov ecx, esi
mov dword [esp + 0x34], edi
call fcn.00435870
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x1200
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp edi, eax
jl 0x40ceb3
jmp 0x40ce58
call fcn.004260c6
call fcn.00403140
int3