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

Disassembly:
push 0xffffffffffffffff
push 0x4ad210
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 0x417840
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.00434690
add esp, 0x18
cmp eax, 1
jne 0x417840
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 0x4177a2
dec edx
je 0x4176ca
dec edx
jne 0x417832
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 0x417594
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 0x4175b2
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 0x4175bc
cmp dword [esp + 0x7c], ecx
jle 0x41762d
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 0x4175f1
fstp st(0)
fld qword [esp + 0x14]
fxch st(1)
fmul st(1)
call fcn.00491478
fld qword [esp + 0x1c]
fmul st(1)
mov ebp, eax
call fcn.00491478
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.00434c00
mov ebx, dword [esp + 0xa4]
add esp, 0x1c
test ebx, ebx
je 0x417832
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4e6cf8
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.004a8e01
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], 0x4e6cdc
mov dword [esp + 0x6c], 3
lea ecx, [esp + 0x14]
jmp 0x41782d
add ecx, esi
cmp esi, ecx
jge 0x41778e
mov ecx, dword [esp + 0x54]
mov edi, eax
lea edx, [eax + ebx]
cmp edi, edx
jge 0x417774
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 0x417760
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.00434c00
add esp, 0x1c
mov eax, dword [ebp]
mov ecx, dword [esp + 0x54]
add edi, ecx
lea edx, [eax + ebx]
cmp edi, edx
jl 0x4176e5
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 0x4176d8
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x417832
jmp 0x41782d
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.00434c00
mov ebx, dword [esp + 0xa4]
xor eax, eax
add esp, 0x1c
cmp ebx, eax
je 0x417832
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x4e6cf8
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.004a8e01
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], 0x4e6cdc
mov dword [esp + 0x6c], 1
lea ecx, [esp + 0x14]
call fcn.004a8e58
lea edx, [esp + 0x4c]
push edx
call fcn.004350c0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret