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

Disassembly:
push 0xffffffffffffffff
push 0x5a23f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x200
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 0
mov eax, dword [ebp + 4]
push 0x5ff9b0
push 0x5fd238
push 0
mov ecx, dword [eax + 0x10]
push 0x5ff9b0
mov edx, dword [ecx + ebp + 4]
lea ecx, [ecx + ebp + 4]
call dword [edx + 4]
push eax
call fcn.0053ce5e
add esp, 0x14
mov edi, eax
lea eax, [esp + 0x88]
mov ecx, ebp
push eax
call fcn.004c5c20
fld qword [esp + 0x170]
call fcn.0053e380
fld qword [esp + 0xd0]
mov esi, eax
call fcn.0053e380
mov ecx, dword [edi + 0x10]
lea edx, [ecx + eax]
sub ecx, eax
mov dword [esp + 0x44], edx
lea edx, [edi + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [edx]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x14]
lea ebx, [edx + eax]
sub edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [ecx]
lea edx, [eax + esi]
lea edi, [ecx + esi]
sub eax, esi
sub ecx, esi
mov esi, dword [esp + 0x220]
mov dword [esp + 0x64], edx
mov dword [esp + 0x58], ecx
mov ecx, esi
mov edx, dword [esi]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edi
call dword [edx + 0x1c]
mov ecx, dword [esi + 8]
mov ebx, dword [sym.imp.GDI32.dll_LPtoDP]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x34]
push 2
push eax
push ecx
call ebx
mov eax, dword [esi + 8]
lea edx, [esp + 0x58]
push 2
push edx
push eax
call ebx
lea edi, [esp + 0x88]
mov dword [esp + 0x10], 9
mov ecx, dword [esi + 8]
push 1
push edi
push ecx
call ebx
mov eax, dword [esp + 0x10]
add edi, 0x28
dec eax
mov dword [esp + 0x10], eax
jne 0x4c177b
mov eax, dword [0x6186e0]
xor edi, edi
cmp eax, 3
je 0x4c198a
cmp eax, 4
je 0x4c198a
cmp eax, 5
je 0x4c198a
push 0x320
call fcn.00570bbc
mov edx, dword [ebp]
add esp, 4
mov edi, eax
lea eax, [esp + 0x68]
push eax
mov ecx, ebp
call dword [edx + 0x28]
fld qword [esp + 0x78]
fsub qword [esp + 0x68]
fmul qword [0x5b9930]
call fcn.0053e380
fld qword [esp + 0x68]
mov dword [esp + 0x44], eax
call fcn.0053e380
mov dword [edi], eax
fld qword [esp + 0x70]
call fcn.0053e380
mov dword [edi + 4], eax
fld qword [esp + 0x78]
call fcn.0053e380
mov dword [edi + 0x188], eax
fld qword [esp + 0x70]
call fcn.0053e380
mov dword [edi + 0x18c], eax
fld qword [esp + 0x78]
call fcn.0053e380
mov dword [edi + 0x190], eax
fld qword [esp + 0x80]
call fcn.0053e380
mov dword [edi + 0x194], eax
fld qword [esp + 0x68]
call fcn.0053e380
mov dword [edi + 0x318], eax
fld qword [esp + 0x80]
call fcn.0053e380
mov dword [edi + 0x31c], eax
lea eax, [edi + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], 0x30
jmp 0x4c1873
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x44]
add ecx, edx
mov dword [eax - 4], ecx
fld qword [esp + 0x70]
call fcn.0053e380
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
add ecx, 8
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jne 0x4c186f
lea eax, [edi + 0x19c]
mov dword [esp + 0x24], 0x30
mov dword [esp + 0x10], eax
jmp 0x4c18b8
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xc]
mov ecx, dword [esp + 0x44]
sub edx, ecx
mov dword [eax - 4], edx
fld qword [esp + 0x80]
call fcn.0053e380
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
add ecx, 8
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jne 0x4c18b4
fld qword [esp + 0x80]
fadd qword [0x5af430]
sub esp, 8
fstp qword [esp]
call fcn.0053e2af
add esp, 8
call fcn.0053e380
fld qword [esp + 0x78]
fadd qword [0x5af430]
push eax
sub esp, 8
fstp qword [esp]
call fcn.0053e2af
add esp, 8
call fcn.0053e380
fld qword [esp + 0x74]
fadd qword [0x5af430]
push eax
sub esp, 8
fstp qword [esp]
call fcn.0053e2af
add esp, 8
call fcn.0053e380
fld qword [esp + 0x70]
fadd qword [0x5af430]
push eax
sub esp, 8
fstp qword [esp]
call fcn.0053e2af
add esp, 8
call fcn.0053e380
push eax
lea ecx, [esp + 0x54]
call fcn.0043ea10
mov eax, dword [esp + 0x14]
push 0x64
push edi
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.004c5ef0
mov edx, dword [esi + 8]
add esp, 0x10
push 0x64
push edi
push edx
call ebx
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x34]
mov edx, dword [esi]
push 0
lea eax, [esp + 0x18]
push 0
push eax
mov ecx, esi
call dword [edx + 0x38]
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
mov ecx, esi
call fcn.0057aef5
lea ecx, [esp + 0x1c]
call fcn.00415320
mov dword [esp + 0x1c], vtable.CRgn.0
mov eax, dword [0x6186e0]
mov dword [esp + 0x218], 0
cmp eax, 3
je 0x4c19e7
cmp eax, 4
je 0x4c19e7
cmp eax, 5
jne 0x4c1bfb
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.GDI32.dll_BeginPath]
push edx
call edi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Ellipse]
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.GDI32.dll_EndPath]
push edx
call ebx
lea ecx, [esp + 0x14]
call fcn.00415320
mov dword [esp + 0x14], vtable.CRgn.0
mov eax, dword [esi + 4]
mov byte [esp + 0x218], 1
push eax
call dword [sym.imp.GDI32.dll_PathToRegion]
push eax
lea ecx, [esp + 0x18]
call fcn.0057bc57
mov ecx, dword [esi + 4]
push ecx
call edi
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Ellipse]
mov ecx, dword [esi + 4]
push ecx
call ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], vtable.CRgn.0
mov edx, dword [esi + 4]
mov byte [esp + 0x218], 2
push edx
call dword [sym.imp.GDI32.dll_PathToRegion]
push eax
lea ecx, [esp + 0x28]
call fcn.0057bc57
mov eax, dword [esi + 4]
push eax
call edi
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xdc]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Pie]
mov ecx, dword [esi + 4]
push ecx
call ebx
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], vtable.CRgn.0
mov edx, dword [esi + 4]
mov byte [esp + 0x218], 3
push edx
call dword [sym.imp.GDI32.dll_PathToRegion]
push eax
lea ecx, [esp + 0x48]
call fcn.0057bc57
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x44]
neg eax
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_CombineRgn]
sbb eax, eax
push 1
and eax, ecx
lea ecx, [esp + 0x18]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call edi
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
neg eax
sbb eax, eax
push 4
and eax, ebx
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call edi
push 0x32
push 0x32
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x20]
call fcn.0057bc57
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
push 5
and eax, ecx
push 0
push eax
mov eax, dword [esp + 0x2c]
push eax
call edi
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_PaintRgn]
mov ebx, vtable.CGdiObject.0
mov dword [esp + 0x44], ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x218], 4
call fcn.0057bcae
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x218], 5
call fcn.0057bcae
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x218], 6
call fcn.0057bcae
mov byte [esp + 0x218], 0
jmp 0x4c1c6b
test edi, edi
je 0x4c1c66
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.GDI32.dll_BeginPath]
push edx
call ebx
mov eax, dword [esi + 4]
push 0x64
push edi
push eax
call dword [sym.imp.GDI32.dll_Polyline]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.GDI32.dll_EndPath]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.GDI32.dll_FillPath]
mov eax, dword [esi + 4]
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x64
push edi
push ecx
call dword [sym.imp.GDI32.dll_Polyline]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.GDI32.dll_EndPath]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_PathToRegion]
push eax
lea ecx, [esp + 0x20]
call fcn.0057bc57
push edi
call fcn.00570be5
add esp, 4
mov ebx, vtable.CGdiObject.0
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xdc]
mov edi, dword [sym.imp.GDI32.dll_Arc]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call edi
mov ecx, dword [esp + 0x17c]
mov edx, dword [esp + 0x178]
mov eax, dword [esp + 0x12c]
push ecx
mov ecx, dword [esp + 0x12c]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call edi
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xd8]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.0057b1f5
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
push ecx
push edx
mov ecx, esi
call fcn.0057b241
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.0057b1f5
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x178]
push eax
push ecx
mov ecx, esi
call fcn.0057b241
mov eax, dword [esp + 0x54]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [ebp]
lea eax, [esp + 0x1f0]
push eax
mov ecx, ebp
call dword [edx + 0x28]
mov edi, eax
sub esp, 8
fld qword [edi + 0x18]
fadd qword [0x5af430]
fstp qword [esp]
call fcn.0053e2af
call fcn.0053e380
fld qword [edi + 0x10]
fadd qword [0x5af430]
mov dword [esp + 0x4c], eax
fstp qword [esp]
call fcn.0053e2af
call fcn.0053e380
fld qword [edi + 8]
fadd qword [0x5af430]
mov dword [esp + 0x1c], eax
fstp qword [esp]
call fcn.0053e2af
call fcn.0053e380
fld qword [edi]
fadd qword [0x5af430]
mov dword [esp + 0x5c], eax
fstp qword [esp]
call fcn.0053e2af
add esp, 8
call fcn.0053e380
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push esi
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.004c0e80
lea ecx, [esp + 0x1c]
call fcn.0057bcae
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x218], 7
call fcn.0057bcae
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20c
ret 4