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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56bb24
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x5c1c00]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x5c1c00]
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.00425eec
push 0x38
lea ecx, [esp + 0xd4]
push 0
push ecx
mov dword [esp + 0x28], eax
call fcn.00526590
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 0x40ccb4
test al, 2
je 0x40ccaa
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0042dd8e
cmp eax, esi
je 0x40ccb4
mov ecx, esi
call fcn.00432aad
test al, 8
jne 0x40ccb4
mov dword [esp + 0x38], 0
jmp 0x40ccbc
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.0042561d
cmp dword [esp + 0x38], 0
je 0x40ccf6
mov dword [esi + 0x88], 0xffffff
mov dword [esi + 0x8c], 0xa25a
jmp 0x40cd0a
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.004263de
test eax, eax
je 0x40cd33
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.00403260
test byte [edi + 0xc], 1
je 0x40cdf3
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40cd7f
push 0x80004005
call fcn.00403150
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.004373af
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.004373af
mov edx, dword [eax + 0x20]
push edi
push edi
push 0x1200
push edx
call ebx
test eax, eax
jg 0x40ce2d
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 0x40cdf3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00437a0a
call fcn.00437a0a
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.00523519
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 0x40cea8
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.004286d0
test eax, eax
je 0x40de2f
xor eax, eax
cmp dword [esi + 0xc8], eax
jle 0x40cf2c
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x4c]
xor edx, edx
test eax, eax
js 0x40de5f
cmp eax, dword [esi + 0xc8]
jge 0x40de5f
mov ecx, dword [esi + 0xc4]
cmp dword [ecx + edx], edi
jne 0x40cf20
cmp dword [ecx + edx + 4], ebx
je 0x40cf49
inc eax
add edx, 0x10
cmp eax, dword [esi + 0xc8]
jl 0x40cefb
cmp dword [esp + 0x38], 0
je 0x40cfb2
mov dword [esi + 0x88], 0xffffff
mov dword [esi + 0x8c], 0xa25a
jmp 0x40cfc6
cmp dword [esp + 0x38], 0
je 0x40cf74
cmp eax, dword [esi + 0xc8]
jge 0x40de5f
add eax, eax
mov edx, dword [ecx + eax*8 + 8]
mov dword [esi + 0x88], edx
mov dword [esi + 0x8c], 0xa25a
jmp 0x40cfc6
cmp eax, dword [esi + 0xc8]
jge 0x40de5f
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 0x40de5f
mov eax, dword [esi + 0xc4]
mov eax, dword [eax + ecx*8 + 0xc]
mov dword [esi + 0x8c], eax
jmp 0x40cfc6
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.004263de
test eax, eax
je 0x40cff4
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.00403260
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.00428d65
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 0x40d09f
cmp dword [edi + 0xc], 0
jl 0x40d091
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40d091
push eax
call fcn.00402c90
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 0x40d084
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 0x40d09f
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402d60
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 0x40d0c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x34], 0
jne 0x40d32d
mov ecx, dword [esi + 0x20]
push 0
push 1
push 0x1002
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.00428bb6
mov edx, dword [esp + 0xe8]
mov eax, dword [eax + 4]
push 0
push edx
push eax
call fcn.0042a861
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00402610
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 0x40d321
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.004299c6
push 0x996633
lea ecx, [esp + 0x44]
call fcn.004263de
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.00437355
test eax, eax
je 0x40d308
push 0x808080
push 1
push 0
lea ecx, [esp + 0x7c]
call fcn.00426395
push 0x339933
push 1
push 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x174], 3
call fcn.00426395
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x16c], 4
call fcn.004262c1
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.00425c19
mov ecx, dword [esp + 0x1c]
lea edx, [ebx + 3]
push edx
push edi
call fcn.004257bb
dec edi
inc ebx
dec dword [esp + 0x24]
jne 0x40d257
mov dword [esp + 0x24], 3
mov ecx, dword [esp + 0x1c]
push ebx
push edi
lea eax, [esp + 0x118]
push eax
call fcn.00425c19
lea ecx, [ebx + 3]
push ecx
mov ecx, dword [esp + 0x20]
push edi
call fcn.004257bb
dec edi
dec ebx
dec dword [esp + 0x24]
jne 0x40d288
lea ecx, [esp + 0x70]
call fcn.0042622e
lea ecx, [esp + 0x50]
call fcn.0042622e
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40d2d5
mov ecx, dword [esp + 0x1c]
push eax
call fcn.004262c1
mov byte [esp + 0x168], 3
mov edi, vtable.CPen.0
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], edi
call fcn.00403260
mov byte [esp + 0x168], 2
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], edi
call fcn.00403260
mov ebx, dword [esp + 0x1c]
mov byte [esp + 0x168], 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], vtable.CBrush.0
call fcn.00403260
mov edx, dword [esi + 0x7c]
add dword [esp + 0x118], edx
jmp 0x40d335
add dword [esp + 0x118], 9
mov ecx, dword [esp + 0x14]
dec dword [esp + 0x120]
cmp dword [ecx - 0xc], 0
jl 0x40d465
push 0x59bc78
push ecx
call fcn.00523e0f
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40d36b
sub eax, ecx
cmp eax, 0xffffffff
jne 0x40d709
cmp dword [ecx - 0xc], 0
jl 0x40d465
push 0x59bc7c
push ecx
call fcn.00523e0f
add esp, 8
test eax, eax
je 0x40d465
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x40d465
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.004261d4
push 0x59b320
push 0x59bc7c
lea ecx, [esp + 0x1c]
call fcn.0040e640
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 0x40d408
mov ecx, dword [esi + 0x88]
push ecx
jmp 0x40d40d
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.0042622e
jmp 0x40de2f
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40cd75
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 0x40d653
mov eax, ebx
sub eax, dword [esp + 0x90]
cdq
idiv dword [esp + 0x28]
mov edx, dword [ecx - 0xc]
cmp eax, edx
jge 0x40d5e3
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 0x40d5a3
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40d595
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40d595
push eax
call fcn.00402c90
mov dword [esp + 0x24], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40d588
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 0x40d5a3
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00402d60
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 0x40d641
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 3
push 0x59bc84
lea ecx, [esp + 0x20]
call fcn.00402020
jmp 0x40d6aa
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x40d641
cmp dword [edi + 0xc], 0
jl 0x40d636
mov ebx, dword [eax]
cmp ebx, dword [edi]
jne 0x40d636
push eax
call fcn.00402c90
mov ebx, eax
add esp, 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d61d
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
push 3
add ebx, 0x10
push 0x59bc84
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.00402020
jmp 0x40d6aa
push edx
push ecx
lea ecx, [esp + 0x20]
call fcn.00402d60
push 3
push 0x59bc84
lea ecx, [esp + 0x20]
call fcn.00402020
jmp 0x40d6aa
lea eax, [ecx - 0x10]
lea ebx, [edi - 0x10]
cmp eax, ebx
je 0x40d6ae
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x40d69c
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x40d69c
push eax
call fcn.00402c90
mov dword [esp + 0x24], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40d68f
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 0x40d6ae
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00402d60
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 0x40de2f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
jmp 0x40de2f
lea ecx, [esp + 0x58]
mov dword [esp + 0x30], 0
call fcn.004373d3
mov byte [esp + 0x168], 7
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x40d8d8
push 0x59bc78
push eax
call fcn.00523e0f
add esp, 8
test eax, eax
je 0x40d8d8
mov ecx, dword [esp + 0x14]
sub eax, ecx
cmp eax, 0xffffffff
je 0x40d8d8
cmp dword [ecx - 0xc], 0
jge 0x40d760
or eax, 0xffffffff
jmp 0x40d77b
push 0x59bc78
push ecx
call fcn.00523e0f
add esp, 8
test eax, eax
jne 0x40d777
or eax, 0xffffffff
jmp 0x40d77b
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.0043776a
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 0x40d87b
cmp dword [edx + 0xc], 0
jl 0x40d86d
mov ecx, dword [edi]
cmp ecx, dword [edx]
jne 0x40d86d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40d80f
cmp eax, dword [edi]
jne 0x40d80f
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40d843
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 0x40de64
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.005237e3
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 0x40d864
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 0x40d87b
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402d60
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 0x40d8a3
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 0x40d722
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40d722
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x60]
call fcn.0043776a
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 0x40de1e
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40cd75
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 0x40de5f
cmp edi, dword [esp + 0x60]
jge 0x40de5f
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 0x40dc31
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 0x40de5f
mov ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
cmp eax, dword [edx - 0xc]
jge 0x40db52
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 0x40db11
mov edx, ebx
cmp dword [edx + 0xc], 0
jl 0x40db03
mov ecx, dword [edi]
cmp ecx, dword [edx]
jne 0x40db03
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40daa5
cmp eax, dword [edi]
jne 0x40daa5
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40dad9
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 0x40de64
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.005237e3
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 0x40dafa
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 0x40db11
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00402d60
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 0x40dc1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 3
push 0x59bc84
lea ecx, [esp + 0x20]
call fcn.00402020
jmp 0x40dcf9
mov ecx, edx
add ebx, 0xfffffff0
lea edi, [ecx - 0x10]
mov dword [esp + 0x2c], ebx
cmp edi, ebx
je 0x40dc1c
cmp dword [ebx + 0xc], 0
jl 0x40dc0e
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x40dc0e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40db9d
cmp eax, dword [edi]
jne 0x40db9d
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40dbd1
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 0x40de64
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.005237e3
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 0x40dbf2
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 0x59bc84
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.00402020
jmp 0x40dcf9
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00402d60
push 3
push 0x59bc84
lea ecx, [esp + 0x20]
call fcn.00402020
jmp 0x40dcf9
cmp edi, dword [esp + 0x60]
jge 0x40de5f
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 0x40dcfd
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
mov dword [esp + 0x20], ecx
jl 0x40dceb
mov ecx, dword [edi]
cmp ecx, dword [edx]
jne 0x40dceb
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40dc90
cmp eax, dword [edi]
jne 0x40dc90
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40dcc4
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 0x40de64
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.005237e3
add esp, 0x10
mov edx, dword [esp + 0x20]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40dce2
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 0x40dcfd
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00402d60
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x34], 0
jne 0x40ddc2
cmp dword [esp + 0x24], 0
jne 0x40ddc2
cmp dword [esi + 0xbc], 0
je 0x40dd6c
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.004261d4
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 0x40dde7
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.0042622e
jmp 0x40dde7
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 0x40de0b
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 0x40d926
lea ecx, [esp + 0x58]
mov byte [esp + 0x168], 0
call fcn.00437611
mov edi, dword [esp + 0x34]
inc edi
mov ecx, esi
mov dword [esp + 0x34], edi
call fcn.004373af
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x1200
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp edi, eax
jl 0x40ce23
jmp 0x40cdc8
call fcn.00427c2a
call fcn.00403060
int3