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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x638fe4]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x30], 0
mov eax, dword [esi + 0xa8]
lea ebx, [esi + 0xa8]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
push edi
test eax, eax
je 0x59a847
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0xf8]
mov edi, 0x12c
mov ecx, dword [eax + 8]
test ecx, ecx
jle 0x59a872
mov eax, dword [eax + 4]
add eax, 0x14
nop
cmp dword [eax + 0xc], 0
je 0x59a868
mov edi, dword [eax]
add eax, 0x90
sub ecx, 1
jne 0x59a860
push 0x1b68
push 0x27e0
push 0
push 0
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0
push eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x44]
mov eax, 0x1b4e81b5
imul ecx, edi
imul ecx
mov ecx, dword [esp + 0x4c]
sar edx, 6
mov eax, edx
imul ecx, edi
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x258
cdq
idiv edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], eax
mov eax, 0x1b4e81b5
imul ecx
mov ecx, dword [esp + 0x48]
sar edx, 6
mov eax, edx
imul ecx, edi
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x258
cdq
idiv edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], eax
mov eax, 0x1b4e81b5
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, ecx, 0x258
mov ecx, dword [esp + 0x50]
imul ecx, edi
cdq
idiv edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x48], eax
mov eax, 0x1b4e81b5
imul ecx
mov ecx, dword [esi + 0xd0]
sar edx, 6
mov eax, edx
sub ecx, dword [esi + 0xc8]
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x258
cdq
idiv edi
mov edx, eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x50], edx
cmp eax, ecx
jl 0x59a97d
mov ecx, dword [esi + 0xd4]
mov eax, edx
mov edi, dword [esp + 0x10]
sub eax, edi
sub ecx, dword [esi + 0xcc]
cmp eax, ecx
jge 0x59a99b
mov eax, dword [esi + 0xc8]
mov edi, dword [esi + 0xcc]
mov ecx, dword [esi + 0xd0]
mov edx, dword [esi + 0xd4]
mov dword [esp + 0x18], eax
jmp 0x59a99f
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
sub edx, edi
sub eax, dword [esp + 0x34]
sub ecx, dword [esp + 0x18]
sub eax, 0x3c
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp qword [esp + 0x10]
fdiv qword [esp + 0x10]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
sub eax, 0x3c
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fstp qword [esp + 0x10]
fdiv qword [esp + 0x10]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x59aa08
fstp st(0)
jmp 0x59aa0a
fstp st(1)
fst qword [esi + 0xe0]
mov eax, dword [esi + 0xd4]
sub eax, dword [esi + 0xcc]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fmul st(1)
call fcn.005451d0
push eax
mov eax, dword [esi + 0xd0]
sub eax, dword [esi + 0xc8]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp qword [esp + 0x14]
fmul qword [esp + 0x14]
call fcn.005451d0
mov edi, dword [sym.imp.USER32.dll_SetRect]
push eax
push 0
push 0
push ebx
call edi
mov eax, dword [esi + 0xf8]
mov eax, dword [eax + 0x44]
mov dword [esp + 0x10], eax
cmp eax, 0x64
jle 0x59aac7
fild dword [esp + 0x10]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fdiv qword [0x611f48]
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fmul st(1)
call fcn.005451d0
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp qword [esp + 0x14]
fmul qword [esp + 0x14]
call fcn.005451d0
push eax
push 0
push 0
push ebx
call edi
xor eax, eax
mov dword [esp + 0x54], 0x3c
mov dword [esp + 0x5c], eax
mov ecx, esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x54]
push 0x17
push eax
push 0
mov dword [esp + 0x64], 0x17
call fcn.0041097f
xor eax, eax
mov dword [esp + 0x70], 0x3c
mov dword [esp + 0x78], eax
mov ecx, esi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
lea eax, [esp + 0x70]
push 0x17
push eax
push 1
mov dword [esp + 0x80], 0x17
call fcn.0041097f
mov eax, dword [esi + 0xf8]
cmp dword [eax + 0x44], 0x64
mov eax, dword [ebx + 8]
jne 0x59abba
sub eax, dword [ebx]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov dword [esp + 0x80], eax
mov eax, dword [ebx]
sub eax, dword [ebx + 8]
sub eax, dword [esp + 0x34]
add eax, dword [esp + 0x3c]
cdq
sub eax, edx
mov dword [esp + 0x68], 0
mov ecx, eax
mov dword [esp + 0x84], 0
mov eax, dword [ebx + 4]
sub eax, dword [ebx + 0xc]
sub eax, dword [esp + 0x38]
add eax, dword [esp + 0x40]
cdq
sar ecx, 1
sub eax, edx
sar eax, 1
push eax
push ecx
jmp 0x59acd5
sub eax, dword [ebx]
mov ecx, dword [esi + 0xf0]
add eax, 0x3c
mov dword [esp + 0x20], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
add eax, 0x3c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x80], eax
test ecx, ecx
js 0x59acb5
cmp dword [esi + 0xf4], 0
jl 0x59acb5
sub ecx, dword [esp + 0x24]
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
imul eax, ecx
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
cdq
idiv ecx
mov edi, eax
sub edi, dword [esi + 0xf0]
add edi, 0x1e
mov dword [esp + 0x68], edi
jns 0x59ac42
xor edi, edi
jmp 0x59ac50
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x10]
cmp edi, eax
jl 0x59ac54
mov edi, eax
mov dword [esp + 0x68], edi
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov ecx, dword [esi + 0xf4]
sub ecx, dword [esp + 0x2c]
imul eax, ecx
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
cdq
idiv ecx
mov edx, eax
sub edx, dword [esi + 0xf4]
add edx, 0x1e
mov dword [esp + 0x84], edx
jns 0x59ac8a
xor edx, edx
jmp 0x59ac98
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
cmp edx, eax
jl 0x59ac9f
mov edx, eax
mov dword [esp + 0x84], edx
mov dword [esi + 0xf0], 0xffffffff
mov dword [esi + 0xf4], 0xffffffff
jmp 0x59acc0
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x84]
mov ecx, 0x1e
mov eax, ecx
sub ecx, dword [esi + 0xac]
sub eax, edi
sub eax, dword [ebx]
sub ecx, edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_OffsetRect]
push 1
lea eax, [esp + 0x58]
mov ecx, esi
push eax
push 0
call fcn.00413411
push 1
lea eax, [esp + 0x74]
mov ecx, esi
push eax
push 1
call fcn.00413411
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00544774
mov esp, ebp
pop ebp
ret 4