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

Disassembly:
sub esp, 0x184
mov eax, dword [0x423050]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], eax
mov byte [esi + 0xe80], 0
mov dword [esp + 0x10], 0
mov eax, dword [esi + 0xe7c]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
jne 0x4081f8
mov ebp, dword [esi + 0xee4]
mov dword [esi + 0x80d94], 3
mov byte [esi + 0x80d92], 0
mov edi, dword [esi + 0xee4]
test edi, edi
je 0x40816b
lea ecx, [esp + 0x9c]
push ecx
push edi
call ebx
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x9c]
sub edx, eax
mov eax, dword [esp + 0xa4]
dec edx
push edx
sub eax, ecx
dec eax
push eax
push 1
push 1
lea ecx, [esp + 0xdc]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push 1
lea edx, [esp + 0xd0]
push edx
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
test ebp, ebp
je 0x4081c1
lea eax, [esp + 0xac]
push eax
push ebp
call ebx
mov edi, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
sub ecx, edi
mov edi, dword [esp + 0xac]
dec ecx
push ecx
sub edx, edi
dec edx
push edx
push 1
push 1
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 1
lea ecx, [esp + 0xf0]
push ecx
push ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + 0xe7c]
mov eax, dword [esi + 0xef0]
inc edx
test eax, eax
mov dword [esi + 0xe7c], edx
je 0x4081f8
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esi + 0xe74], 0xffffffff
mov byte [esi + 0xe80], 0
mov dword [esp + 0x10], 1
cmp dword [esi + 0xe7c], 1
jne 0x40834d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40834d
mov ebp, dword [esi + 0xef0]
mov dword [esi + 0x80dac], 3
mov byte [esi + 0x80daa], 0
mov edi, dword [esi + 0xeec]
test edi, edi
je 0x408273
lea edx, [esp + 0x4c]
push edx
push edi
call ebx
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
sub eax, ecx
mov ecx, dword [esp + 0x54]
dec eax
push eax
sub ecx, dword [esp + 0x50]
dec ecx
push ecx
push 1
push 1
lea edx, [esp + 0x17c]
push edx
call dword [sym.imp.USER32.dll_SetRect]
push 1
lea eax, [esp + 0x170]
push eax
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edi, dword [esi + 0xef0]
test edi, edi
je 0x4082cf
lea ecx, [esp + 0x8c]
push ecx
push edi
call ebx
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x8c]
sub edx, eax
mov eax, dword [esp + 0x94]
dec edx
push edx
sub eax, ecx
dec eax
push eax
push 1
push 1
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push 1
lea edx, [esp + 0x110]
push edx
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
test ebp, ebp
je 0x408316
lea eax, [esp + 0x6c]
push eax
push ebp
call ebx
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
sub ecx, ebx
dec ecx
push ecx
sub edx, eax
dec edx
push edx
push 1
push 1
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 1
lea ecx, [esp + 0x150]
push ecx
push ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + 0xe7c]
mov eax, dword [esi + 0xeb8]
inc edx
test eax, eax
mov dword [esi + 0xe7c], edx
je 0x40834d
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esi + 0xe74], 0xffffffff
mov byte [esi + 0xe80], 0
mov dword [esp + 0x10], 1
cmp dword [esi + 0xe7c], 2
jne 0x4083cd
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4083cd
push 1
push 0
mov dword [0x4260f8], 0
mov edx, dword [esi + 0xeb8]
push 0
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
inc dword [esi + 0xe7c]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x408391
mov eax, dword [esi + 0xf04]
jmp 0x408397
mov eax, dword [esi + 0xf18]
test eax, eax
je 0x4083cd
test ecx, ecx
mov byte [esi + 0xe80], 1
jne 0x4083ae
mov eax, dword [esi + 0xf04]
jmp 0x4083b4
mov eax, dword [esi + 0xf18]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esi + 0xe74], 0xffffffff
mov dword [esp + 0x10], 1
cmp dword [esi + 0xe7c], 3
jne 0x40864d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40864d
mov edi, dword [esp + 0x14]
mov ecx, edi
xor eax, eax
imul ecx, ecx, 0xff18
mov dword [esp + 0x18], 0xffffffff
lea ecx, [ecx + esi + 0x1ad0]
mov dx, word [ecx]
cmp dx, 0x30
je 0x408411
test dx, dx
jne 0x40841f
inc eax
add ecx, 0x1c58
cmp eax, 9
jl 0x408403
jmp 0x408423
mov dword [esp + 0x18], eax
test edi, edi
jne 0x40842f
mov ebx, dword [esi + 0xf04]
jmp 0x408435
mov ebx, dword [esi + 0xf18]
mov edi, dword [esp + 0x14]
xor edx, edx
test edi, edi
setne dl
add edx, 2
mov edi, edx
cmp edi, 1
lea eax, [edi + edi*2]
lea eax, [esi + eax*8]
mov dword [eax + 0x80d94], 3
mov byte [eax + 0x80d92], 0
jne 0x408469
mov ebp, dword [esi + 0xeec]
jmp 0x40849b
cmp edi, 2
jne 0x408476
mov ebp, dword [esi + 0xf00]
jmp 0x40849b
cmp edi, 3
jne 0x408483
mov ebp, dword [esi + 0xf14]
jmp 0x40849b
cmp edi, 4
jne 0x408490
mov ebp, dword [esi + 0xec0]
jmp 0x40849b
cmp edi, 5
jne 0x4084e6
mov ebp, dword [esi + 0xebc]
test ebp, ebp
je 0x4084e6
lea ecx, [esp + 0x2c]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
sub edx, eax
mov eax, dword [esp + 0x34]
dec edx
push edx
sub eax, ecx
dec eax
push eax
push 1
push 1
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push 1
lea edx, [esp + 0x130]
push edx
push ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp edi, 1
jne 0x4084f3
mov ebp, dword [esi + 0xef0]
jmp 0x408517
cmp edi, 2
jne 0x408500
mov ebp, dword [esi + 0xf04]
jmp 0x408517
cmp edi, 3
jne 0x40850d
mov ebp, dword [esi + 0xf18]
jmp 0x408517
test edi, edi
jne 0x408560
mov ebp, dword [esi + 0xee4]
test ebp, ebp
je 0x408560
lea eax, [esp + 0x3c]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
sub ecx, edx
mov edx, dword [esp + 0x44]
dec ecx
push ecx
sub edx, dword [esp + 0x40]
dec edx
push edx
push 1
push 1
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 1
lea ecx, [esp + 0xe0]
push ecx
push ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
test ebx, ebx
je 0x4085a9
lea edx, [esp + 0x5c]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
sub eax, ebp
dec eax
push eax
sub ecx, dword [esp + 0x60]
dec ecx
push ecx
push 1
push 1
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.USER32.dll_SetRect]
push 1
lea eax, [esp + 0x100]
push eax
push ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [esi + 0x9b8]
test al, al
je 0x4085e2
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4085c3
mov eax, dword [esi + 0xf04]
jmp 0x4085c9
mov eax, dword [esi + 0xf18]
lea ecx, [edi + edi*2]
mov edx, dword [esi + ecx*8 + 0x80d98]
push edx
push 0
push 0xf7
push eax
call dword [0x425cd0]
mov ecx, dword [esp + 0x18]
or eax, 0xffffffff
cmp ecx, eax
mov dword [esi + 0xe7c], eax
mov byte [esi + 0xe80], 0
jne 0x408625
mov eax, dword [esi + 0xee4]
test eax, eax
mov dword [esi + 0xe7c], 0
je 0x4080e4
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esi + 0xe74], 0xffffffff
jmp 0x408645
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xe74], ecx
add eax, 0x6c
lea ecx, [ecx + eax*8]
add ecx, eax
mov edx, dword [esi + ecx*4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esp + 0x10], 1
cmp dword [esi + 0xe7c], 0xffffffff
mov eax, dword [esp + 0x10]
jne 0x408908
test eax, eax
jne 0x408934
mov ecx, dword [esp + 0x14]
mov edi, dword [esi + 0xe74]
lea eax, [ecx + ecx*8]
mov dword [esp + 0x18], eax
add eax, edi
imul eax, eax, 0x1c58
add eax, esi
mov dword [eax + 0x2db4], 3
mov byte [eax + 0x2db0], 0
lea eax, [ecx + 0x74]
lea ecx, [edi + eax*8]
add ecx, eax
mov ebp, dword [esi + ecx*4]
test ebp, ebp
je 0x4086f2
lea edx, [esp + 0x7c]
push edx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
sub eax, ebx
dec eax
push eax
sub ecx, dword [esp + 0x80]
dec ecx
push ecx
push 1
push 1
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.USER32.dll_SetRect]
push 1
lea eax, [esp + 0x120]
push eax
push ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ebp, dword [esp + 0x14]
lea ebx, [ebp + ebp*8 + 0x3cc]
lea ecx, [ebx + edi]
mov edi, dword [esi + ecx*4]
test edi, edi
je 0x40874c
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
sub eax, ecx
mov ecx, dword [esp + 0x24]
dec eax
push eax
sub ecx, dword [esp + 0x20]
dec ecx
push ecx
push 1
push 1
lea edx, [esp + 0x14c]
push edx
call dword [sym.imp.USER32.dll_SetRect]
push 1
lea eax, [esp + 0x140]
push eax
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov cl, byte [esi + 0x9b8]
test cl, cl
mov eax, dword [esi + 0xe74]
mov dword [esi + 0xe78], eax
je 0x40883d
mov ecx, dword [esp + 0x18]
add ecx, eax
imul ecx, ecx, 0x1c58
mov dl, byte [ecx + esi + 0x2db1]
add ecx, esi
add eax, ebx
test dl, dl
je 0x408795
mov edx, dword [ecx + 0x2dc0]
mov eax, dword [esi + eax*4]
push edx
push 0
push 0xf7
push eax
jmp 0x4087a7
mov ecx, dword [ecx + 0x2db8]
mov edx, dword [esi + eax*4]
push ecx
push 0
push 0xf7
push edx
call dword [0x425cd0]
mov eax, dword [esi + 0xe94]
mov edi, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
mov eax, edi
cmp eax, 0xffffffff
jne 0x4087c9
xor edi, edi
mov edx, dword [esi + edi*4 + 0xe98]
lea ecx, [esp + 0x17c]
push ecx
push 0x18
push edx
call dword [0x425c28]
mov eax, dword [esi + edi*4 + 0xe98]
mov ecx, dword [esi + 0xe6c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0xe6c]
mov eax, dword [esp + 0x184]
mov ecx, dword [esp + 0x180]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
mov ecx, esi
call fcn.00403c50
mov edx, dword [esi + 0xe94]
push ebp
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ebp, dword [esp + 0x14]
jmp 0x40889a
add eax, ebx
mov edi, dword [esi + eax*4]
test edi, edi
je 0x40889a
lea eax, [esp + 0xbc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc8]
sub ecx, edx
mov edx, dword [esp + 0xc4]
dec ecx
push ecx
sub edx, dword [esp + 0xc0]
dec edx
push edx
push 1
push 1
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 1
lea ecx, [esp + 0x160]
push ecx
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0xe74]
mov ecx, 9
cmp eax, ecx
jge 0x4088d0
lea esp, [esp]
mov eax, dword [esi + 0xe74]
inc eax
lea edx, [eax + ebx]
mov dword [esi + 0xe74], eax
cmp dword [esi + edx*4], 0
jne 0x4088ca
cmp eax, ecx
jl 0x4088b0
cmp dword [esi + 0xe74], ecx
jne 0x408911
mov eax, dword [esi + 0xee4]
test eax, eax
mov dword [esi + 0xe7c], 0
je 0x4080e4
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
mov dword [esi + 0xe74], 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 0x184
ret 4
test eax, eax
jne 0x408934
jmp 0x4080e4
mov edx, dword [esi + 0xe74]
lea ecx, [ebp + ebp*8 + 0x3cc]
add ecx, edx
mov edx, dword [esi + ecx*4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esi + 0xe7c], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x184
ret 4