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

Disassembly:
push 0xffffffffffffffff
push 0x5be4b0
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 0x42d3a0
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.0044f270
add esp, 0x18
cmp eax, 1
jne 0x42d3a0
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 0x42d302
dec edx
je 0x42d22a
dec edx
jne 0x42d392
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 0x42d0f4
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 0x42d112
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 0x42d11c
cmp dword [esp + 0x7c], ecx
jle 0x42d18d
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 0x42d151
fstp st(0)
fld qword [esp + 0x14]
fxch st(1)
fmul st(1)
call fcn.0059fb18
fld qword [esp + 0x1c]
fmul st(1)
mov ebp, eax
call fcn.0059fb18
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.0044f7e0
mov ebx, dword [esp + 0xa4]
add esp, 0x1c
test ebx, ebx
je 0x42d392
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x6cdcd0
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_1]
push eax
lea ecx, [esp + 0x18]
call fcn.005b92d7
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_1]
mov dword [esp + 0x14], 0x6cdbec
mov dword [esp + 0x6c], 3
lea ecx, [esp + 0x14]
jmp 0x42d38d
add ecx, esi
cmp esi, ecx
jge 0x42d2ee
mov ecx, dword [esp + 0x54]
mov edi, eax
lea edx, [eax + ebx]
cmp edi, edx
jge 0x42d2d4
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_1]
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_1]
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_1]
test eax, eax
jne 0x42d2c0
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.0044f7e0
add esp, 0x1c
mov eax, dword [ebp]
mov ecx, dword [esp + 0x54]
add edi, ecx
lea edx, [eax + ebx]
cmp edi, edx
jl 0x42d245
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 0x42d238
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x42d392
jmp 0x42d38d
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.0044f7e0
mov ebx, dword [esp + 0xa4]
xor eax, eax
add esp, 0x1c
cmp ebx, eax
je 0x42d392
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x6cdcd0
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_1]
push eax
lea ecx, [esp + 0x18]
call fcn.005b92d7
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_1]
mov dword [esp + 0x14], 0x6cdbec
mov dword [esp + 0x6c], 1
lea ecx, [esp + 0x14]
call fcn.005b932e
lea edx, [esp + 0x4c]
push edx
call fcn.0044fca0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret