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

Disassembly:
push 0xffffffffffffffff
push 0x4e2450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x1c]
push edi
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
mov ecx, esi
call fcn.004a73c0
mov edi, dword [eax]
mov ecx, esi
mov ebp, dword [eax + 4]
lea eax, [esp + 0x4c]
push eax
call fcn.004a7460
mov ecx, esi
call fcn.004a7c20
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x50]
add edx, eax
add ecx, eax
mov dword [esp + 0x68], edx
xor edx, edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], 0x4f7f60
mov ecx, dword [esp + 0x18]
mov ebx, edi
sub ebx, ecx
add ecx, edi
add eax, ebp
mov dword [esp + 0x74], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], 0x4f7fac
mov eax, dword [esi + 0x28]
push 0x505050
cmp eax, edx
mov byte [esp + 0x78], 1
push 1
je 0x4a7d40
push edx
jmp 0x4a7d42
push 5
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x30]
call fcn.004d2c05
mov edi, dword [esp + 0x7c]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.004d220d
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4a7ddd
mov edx, dword [esp + 0x80]
mov ecx, esi
push edx
push edi
call fcn.004a7700
push ebp
lea eax, [esp + 0x48]
push ebx
push eax
mov ecx, edi
call fcn.004d274a
mov ecx, dword [esp + 0x10]
push ecx
push ebx
mov ecx, edi
call fcn.004d2796
push ebp
mov ebp, dword [esp + 0x40]
lea edx, [esp + 0x48]
push ebp
push edx
mov ecx, edi
call fcn.004d274a
mov eax, dword [esp + 0x10]
mov ecx, edi
push eax
push ebp
call fcn.004d2796
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push eax
push ebp
push eax
mov eax, dword [esp + 0x6c]
push ebx
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [edi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Arc]
mov eax, dword [esi + 0x64]
xor ebx, ebx
test eax, eax
jle 0x4a7f0b
mov eax, dword [esi + 0x70]
mov eax, dword [eax + ebx*4]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x38]
call fcn.004d2c05
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.004d220d
mov ecx, dword [esi + 0x7c]
push ebx
mov dword [esp + 0x80], eax
call fcn.004cb121
test eax, eax
je 0x4a7eea
mov edx, dword [eax + 8]
fld qword [edx]
fcomp qword [0x4f7f38]
fnstsw ax
test ah, 0x40
jne 0x4a7eea
lea eax, [esp + 0x44]
push ebx
push eax
mov ecx, esi
call fcn.004a74b0
mov ecx, eax
mov edx, dword [ecx + 4]
mov ebp, dword [ecx]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x24]
mov eax, ebp
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jg 0x4a7eaf
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jg 0x4a7eaf
mov ecx, esi
call fcn.004a6a90
fstp qword [esp + 0x3c]
push ebx
mov ecx, esi
call fcn.004a6890
fdiv qword [esp + 0x3c]
fcomp qword [0x4f7fb8]
fnstsw ax
test ah, 0x41
jne 0x4a7ede
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push ebp
jmp 0x4a7ec0
mov edx, dword [esp + 0x28]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push edx
mov edx, dword [esp + 0x28]
push edx
push ecx
push eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Pie]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x7c]
mov ecx, edi
push eax
call fcn.004d220d
lea ecx, [esp + 0x34]
call fcn.004d2c5c
mov eax, dword [esi + 0x64]
inc ebx
cmp ebx, eax
jl 0x4a7dea
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004d220d
lea ecx, [esp + 0x2c]
call fcn.004d2c5c
mov esi, 0x4f7f40
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 2
call fcn.004d2c5c
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x74], 3
call fcn.004d2c5c
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 8