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

Disassembly:
sub esp, 0x38
cmp dword [esi + 0x5c], 0
push ebx
push ebp
push edi
je 0x405e26
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [esp + 0x30]
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x44]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x48]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x4c]
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0x2c]
call eax
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add edi, 0xc3
add edx, 0x1c
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
lea ecx, [edi + 0x14]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x68]
mov ebp, dword [ecx]
lea ebx, [edx + 0x50]
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x2c]
call eax
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
add edx, 0x8c
lea ecx, [edx + 0x14]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], edx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x70]
mov edx, dword [esp + 0x3c]
mov ebp, dword [ecx]
lea ebx, [edi + 0x1f4]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x2c]
call eax
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add edi, 0xc3
add edx, 0x5a
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
lea ecx, [edi + 0x14]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0xa8]
mov ebp, dword [ecx]
lea ebx, [edx + 0x78]
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x2c]
call eax
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
add edi, 0x14
add ebx, 0xd7
lea ecx, [ebx + 0x22]
lea edx, [edi + 0x17c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x28], edx
mov ebp, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebp
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
call edx
lea ecx, [esi + 0x130]
test ecx, ecx
je 0x405926
cmp dword [ecx + 0x20], 0
je 0x405926
mov eax, dword [esp + 0x28]
add ebx, 7
push 1
sub ebp, 7
add edi, 0xa
sub eax, 5
sub ebp, ebx
push ebp
sub eax, edi
push eax
push ebx
push edi
call fcn.004429d6
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x78]
mov ebp, dword [ecx]
add edi, 0xd7
lea eax, [edi + 0x22]
mov dword [esp + 0x2c], eax
add edx, 0x18c
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
lea ebx, [edx + 0x55]
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x2c]
call eax
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add edi, 0x14a
add edx, 0x17c
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
lea ecx, [edi + 0x1e]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x7c]
mov ebp, dword [ecx]
lea ebx, [edx + 0x5b]
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x2c]
call eax
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add edi, 0xaa
add edx, 0x96
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
lea ecx, [edi + 0x30]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x88]
mov ebp, dword [ecx]
lea ebx, [edx + 0xb1]
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x2c]
call eax
mov eax, dword [esi + 0x8c]
mov edi, dword [esp + 0x30]
mov edx, dword [eax]
mov ebx, dword [esp + 0x34]
sub esp, 0x10
mov eax, esp
add edi, 0x50
mov dword [eax], edi
add ebx, 0x32
mov dword [eax + 4], ebx
lea ebp, [edi + 0x140]
lea ecx, [ebx + 0x78]
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x8c]
mov eax, dword [edx + 0x2c]
call eax
mov eax, dword [esi + 0x90]
mov edx, dword [eax]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
lea ecx, [ebx + 0x78]
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x90]
mov eax, dword [edx + 0x2c]
call eax
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
lea ecx, [ebx + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x94]
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [esi + 0x98]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
lea edx, [ebx + 0x78]
mov dword [eax + 0xc], edx
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
call edx
mov eax, dword [esi + 0x9c]
mov edx, dword [eax]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
lea ecx, [ebx + 0x81]
lea ebp, [edi + 0x161]
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ecx
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x9c]
call eax
mov ecx, dword [esi + 0xa0]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x3c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0x2c]
call eax
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
inc edi
add edx, 0xffffffbc
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
lea ecx, [edi + 0x23]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x84]
mov ebp, dword [ecx]
lea ebx, [edx + 0x21]
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x2c]
call eax
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
inc edi
add edx, 0xffffffde
lea ecx, [edi + 0x23]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x80]
mov ebp, dword [ecx]
mov dword [eax], edx
lea ebx, [edx + 0x21]
mov dword [eax + 4], edi
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x2c]
call eax
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
add edx, 0x114
lea ecx, [edx + 0x10]
sub esp, 0x10
mov eax, esp
add edi, 0x1c
mov dword [eax], edi
mov dword [eax + 4], edx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0xac]
mov edx, dword [esp + 0x3c]
mov ebp, dword [ecx]
add ebx, 0xffffffe8
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x2c]
call eax
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add edi, 0x100
add edx, 0x1a
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
lea ecx, [edi + 0x14]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x74]
mov ebp, dword [ecx]
lea ebx, [edx + 0x210]
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x2c]
call eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], edx
sub esp, 0x10
mov dword [esp + 0x38], eax
mov eax, esp
mov edx, 0xb9
mov dword [eax], edx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0xa4]
mov ebp, dword [ecx]
mov edi, 0x2a
mov dword [eax + 4], edi
mov ebx, 0x14e
mov edx, 0xb2
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 0x2c]
call edx
xor eax, eax
xor ebp, ebp
xor edi, edi
cmp dword [esi + 0x1f0], eax
jle 0x405e26
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
test eax, eax
jl 0x405e2d
cmp edi, dword [esi + 0x204]
jge 0x405e2d
mov ecx, dword [esi + 0x200]
mov eax, dword [ecx + eax + 0x1c]
sub eax, 1
je 0x405d39
sub eax, 2
jne 0x405e09
mov eax, 0x55555556
imul ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
imul eax, eax, 0x19
mov ecx, edx
mov edx, ebp
sub edx, ecx
imul edx, edx, 0x96
add edx, 0x5d
mov ebx, 0x154
sub ebx, eax
cmp edi, dword [esi + 0x1f0]
lea eax, [edx + 0xf]
mov dword [esp + 0x28], eax
jge 0x405e2d
mov ecx, dword [esi + 0x1ec]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + ecx]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
sub esp, 0x10
mov dword [esp + 0x2c], eax
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
lea ecx, [ebx + 0xf]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax + 0x2c]
call edx
mov ecx, dword [esp + 0x28]
add ecx, 4
sub ebx, 4
cmp edi, dword [esi + 0x1f0]
lea eax, [ecx + 0xe6]
lea edx, [ebx + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jge 0x405e2d
mov eax, dword [esi + 0x1ec]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + edx + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x1c], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x2c]
call edx
inc ebp
jmp 0x405e09
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
imul eax, eax, 0x19
mov edx, ecx
mov ecx, edi
sub ecx, edx
lea edx, [ecx + ecx*4]
shl edx, 5
add eax, 0x104
add edx, 0x1e
cmp edi, dword [esi + 0x1f0]
mov ebx, eax
lea eax, [edx + 0xf]
mov dword [esp + 0x28], eax
jge 0x405e2d
mov ecx, dword [esi + 0x1ec]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + ecx]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
sub esp, 0x10
mov dword [esp + 0x28], eax
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
lea ecx, [ebx + 0xf]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + 0x2c]
call edx
mov ecx, dword [esp + 0x28]
add ecx, 4
sub ebx, 4
cmp edi, dword [esi + 0x1f0]
lea eax, [ecx + 0xe6]
lea edx, [ebx + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jge 0x405e2d
mov eax, dword [esi + 0x1ec]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + edx + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x1c], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x2c]
call edx
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], 0x10
inc edi
add eax, 0x30
cmp edi, dword [esi + 0x1f0]
mov dword [esp + 0x14], eax
jl 0x405c2f
pop edi
pop ebp
pop ebx
add esp, 0x38
ret
call fcn.004404b8
int3