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

Disassembly:
push 0xffffffffffffffff
push 0x4e241e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call fcn.004a8450
mov dword [esp + 0x18], 0x4f7f60
lea eax, [esp + 0x94]
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x80]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0xb4], 0
call fcn.004a73c0
mov edi, dword [eax]
mov ecx, esi
mov ebp, dword [eax + 4]
lea eax, [esp + 0x84]
push eax
call fcn.004a7460
lea ecx, [esp + 0x48]
call fcn.004a8450
mov dword [esp + 0x48], 0x4f7fac
push 0xffffff
push 1
push 5
mov byte [esp + 0xb4], 1
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x4c]
call fcn.004d2c05
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0xb4]
call fcn.004d220d
mov ecx, esi
mov dword [esp + 0x74], eax
call fcn.004a7c20
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x88]
add ecx, eax
add edx, eax
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x78]
mov ebx, edi
mov dword [esp + 0x60], edx
sub ebx, ecx
add ecx, edi
lea edx, [eax + ebp]
xor eax, eax
mov edi, 0x4f7fa0
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edi
lea ecx, [esp + 0x28]
mov byte [esp + 0xa8], 5
call fcn.004a8450
mov dword [esp + 0x28], edi
mov byte [esp + 0xa8], 6
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateEllipticRgn]
push eax
lea ecx, [esp + 0x34]
call fcn.004d2c05
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x38]
push ecx
push edi
push ebp
push ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
call ebx
push eax
lea ecx, [esp + 0x44]
call fcn.004d2c05
push 0xa
push 0xa
push 0
push 0
call ebx
push eax
lea ecx, [esp + 0x24]
call fcn.004d2c05
push 0xa
push 0xa
push 0
push 0
call ebx
push eax
lea ecx, [esp + 0x2c]
call fcn.004d2c05
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x40]
neg eax
mov edx, dword [esp + 0x34]
push 2
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x34]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
mov edx, dword [esp + 0x34]
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
je 0x4a7b58
cmp eax, 1
je 0x4a7b58
mov eax, dword [esi + 0x64]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x50], ebx
jle 0x4a7a71
lea eax, [esp + 0x98]
push ebx
push eax
mov ecx, esi
call fcn.004a74b0
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x70], eax
sub eax, ebp
cmp eax, 2
jg 0x4a7968
test eax, eax
jl 0x4a7a61
mov edx, dword [esp + 0x7c]
mov eax, edi
sub eax, edx
cmp eax, 2
jg 0x4a7a61
mov ecx, esi
call fcn.004a6a90
fstp qword [esp + 0x54]
push ebx
mov ecx, esi
call fcn.004a6890
fdiv qword [esp + 0x54]
fcomp qword [0x4f7f98]
fnstsw ax
test ah, 1
jne 0x4a7a61
mov ecx, dword [esi + 0x70]
xor eax, eax
mov al, byte [ecx + ebx*4]
lea ebx, [ecx + ebx*4]
add eax, 0xa
cdq
sub eax, edx
mov ecx, eax
xor eax, eax
mov al, byte [ebx + 1]
and eax, 0xff
add eax, 0xa
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x54], eax
mov eax, dword [ebx]
shr eax, 0x10
and eax, 0xff
add eax, 0xa
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov dh, al
mov dl, byte [esp + 0x54]
sar ecx, 1
shl edx, 8
and ecx, 0xff
or edx, ecx
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x1c]
call fcn.004d2c05
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x14]
call fcn.004d2c05
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
mov edx, dword [esp + 0x2c]
push 1
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x2c]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
mov edx, dword [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
mov edx, dword [esp + 0x24]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x20]
neg ecx
sbb ecx, ecx
push eax
mov eax, dword [esp + 0xb4]
and ecx, edx
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_FillRgn]
lea ecx, [esp + 0x10]
call fcn.004d2c5c
mov edx, dword [esp + 0x70]
mov dword [esp + 0x38], edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], edx
call fcn.004d2c5c
mov ebx, dword [esp + 0x50]
mov eax, dword [esi + 0x64]
inc ebx
cmp ebx, eax
mov dword [esp + 0x50], ebx
jl 0x4a7907
lea ecx, [esp + 0x30]
call fcn.004d2c5c
lea ecx, [esp + 0x40]
call fcn.004d2c5c
lea ecx, [esp + 0x20]
call fcn.004d2c5c
lea ecx, [esp + 0x28]
call fcn.004d2c5c
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0xb0]
push eax
call fcn.004d220d
lea ecx, [esp + 0x48]
call fcn.004d2c5c
mov esi, 0x4f7f40
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x28]
mov byte [esp + 0xa8], 0xc
call fcn.004d2c5c
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0xa8], 0xd
call fcn.004d2c5c
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x30]
mov byte [esp + 0xa8], 0xe
call fcn.004d2c5c
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0xa8], 0xf
call fcn.004d2c5c
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0xa8], 0x10
call fcn.004d2c5c
mov dword [esp + 0x48], esi
lea ecx, [esp + 0x48]
mov byte [esp + 0xa8], 0x11
call fcn.004d2c5c
lea ecx, [esp + 0x18]
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0x18], 0x4f7f60
call fcn.004a8460
mov eax, 1
jmp 0x4a7bfd
mov esi, 0x4f7f40
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x28]
mov byte [esp + 0xa8], 7
call fcn.004d2c5c
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0xa8], 8
call fcn.004d2c5c
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x30]
mov byte [esp + 0xa8], 9
call fcn.004d2c5c
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0xa8], 0xa
call fcn.004d2c5c
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0xa8], 0xb
call fcn.004d2c5c
lea ecx, [esp + 0x48]
mov byte [esp + 0xa8], 0
mov dword [esp + 0x48], 0x4f7fac
call fcn.004a8460
lea ecx, [esp + 0x18]
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0x18], 0x4f7f60
call fcn.004a8460
xor eax, eax
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x9c
ret 8