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

Disassembly:
push 0xffffffffffffffff
push 0x524a40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov ecx, dword [esp + 0x6c]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp], eax
je 0x455d40
mov edx, dword [esp + 0x80]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x80]
push edx
lea edx, [esp + 0x44]
push eax
mov eax, dword [esp + 0x74]
push edx
push ecx
push eax
call fcn.00471440
add esp, 0x18
cmp eax, 1
jne 0x455d40
mov edx, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
mov eax, dword [ebp]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 0xc]
sub ebx, eax
sub ecx, esi
sub edx, 0
mov dword [esp + 0x78], ebx
mov dword [esp + 0x90], ecx
mov edi, eax
je 0x455ca2
dec edx
je 0x455bca
dec edx
jne 0x455d32
mov eax, dword [esp + 0x7c]
mov ebp, dword [eax + 4]
mov eax, dword [eax + 8]
cmp ebp, ebx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], eax
mov dword [esp + 0x8c], eax
jg 0x455a94
mov eax, ebx
mov ebx, ebp
sub eax, ebp
mov dword [esp + 0x78], ebx
cdq
sub eax, edx
sar eax, 1
add edi, eax
mov edx, dword [esp + 0x7c]
cmp edx, ecx
jg 0x455ab2
mov eax, ecx
mov ecx, dword [esp + 0x7c]
sub eax, edx
mov dword [esp + 0x90], ecx
cdq
sub eax, edx
sar eax, 1
add esi, eax
cmp ebp, ebx
jg 0x455abc
cmp dword [esp + 0x7c], ecx
jle 0x455b2d
fild dword [esp + 0x80]
fild dword [esp + 0x78]
fdiv st(1)
fild dword [esp + 0x7c]
fst qword [esp + 0x1c]
fild dword [esp + 0x90]
fdiv st(1)
fstp qword [esp + 0x14]
fstp st(0)
fcom qword [esp + 0x14]
fnstsw ax
test ah, 1
jne 0x455af1
fstp st(0)
fld qword [esp + 0x14]
fxch st(1)
fmul st(1)
call fcn.00503eb8
fld qword [esp + 0x1c]
fmul st(1)
mov ebp, eax
call fcn.00503eb8
mov ecx, eax
mov eax, ebx
sub eax, ebp
mov dword [esp + 0x8c], ecx
cdq
fstp st(0)
sub eax, edx
sar eax, 1
add edi, eax
mov eax, dword [esp + 0x90]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x8c]
push edx
push 0xcc0020
push eax
push ebp
push esi
lea ecx, [esp + 0x60]
push edi
push ecx
call fcn.004719b0
mov ebx, dword [esp + 0xa4]
add esp, 0x1c
test ebx, ebx
je 0x455d32
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x139c698
mov edx, dword [esp + 0x8c]
add ebp, edi
add edx, esi
mov dword [esp + 0x6c], 2
push edx
push ebp
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x18]
call fcn.0052008c
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x14]
push 4
neg eax
sbb eax, eax
and eax, ebp
push eax
push ecx
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov dword [esp + 0x14], 0x139c67c
mov dword [esp + 0x6c], 3
lea ecx, [esp + 0x14]
jmp 0x455d2d
add ecx, esi
cmp esi, ecx
jge 0x455c8e
mov ecx, dword [esp + 0x54]
mov edi, eax
lea edx, [eax + ebx]
cmp edi, edx
jge 0x455c74
mov eax, dword [esp + 0x58]
add ecx, edi
add eax, esi
push eax
push ecx
push esi
lea ecx, [esp + 0x48]
push edi
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x84]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x3c], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x455c60
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push ecx
push 0xcc0020
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push edi
push edx
call fcn.004719b0
add esp, 0x1c
mov eax, dword [ebp]
mov ecx, dword [esp + 0x54]
add edi, ecx
lea edx, [eax + ebx]
cmp edi, edx
jl 0x455be5
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x90]
add esi, edx
mov edx, dword [ebp + 4]
add edx, edi
cmp esi, edx
jl 0x455bd8
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x455d32
jmp 0x455d2d
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push eax
push 0xcc0020
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push edi
push ecx
call fcn.004719b0
mov ebx, dword [esp + 0xa4]
xor eax, eax
add esp, 0x1c
cmp ebx, eax
je 0x455d32
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x139c698
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x6c], eax
add ecx, edi
lea eax, [edx + esi]
push eax
push ecx
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x18]
call fcn.0052008c
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x14]
push 4
neg eax
sbb eax, eax
and eax, ebp
push eax
push ecx
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov dword [esp + 0x14], 0x139c67c
mov dword [esp + 0x6c], 1
lea ecx, [esp + 0x14]
call fcn.005200e3
lea edx, [esp + 0x4c]
push edx
call fcn.00471e70
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret