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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e4e9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0xb1c400
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0xb1c418
mov esi, dword [ebp + 8]
mov byte [esp + 0xb0], 1
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
mov edx, dword [esi]
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0x7c]
mov ecx, esi
push eax
call dword [edx + 0x30]
cmp dword [ebp + 0x10], ebx
jne 0x54867b
lea ecx, [edi + 0xb4]
call fcn.0054b650
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00547a10
mov ecx, dword [edi + 0x94]
mov dword [esp + 0x34], eax
cmp ecx, ebx
mov dword [esp + 0x2c], ebx
jle 0x548b67
mov ecx, dword [edi + 0x9c]
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x18], ebx
jle 0x548b50
lea edx, [eax + eax*2]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x60], edx
jmp 0x5486cd
mov ebx, dword [esp + 0x18]
mov eax, dword [edi + 0xa4]
mov eax, dword [eax + ebx*4]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x20]
call fcn.005d936d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.005d89c1
mov edx, dword [edi + 0xa4]
mov dword [esp + 0x10], eax
mov eax, dword [edx + ebx*4]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x28]
call fcn.005d936d
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.005d89c1
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
sub eax, ecx
cdq
idiv dword [edi + 0x94]
mov edx, dword [esp + 0x3c]
mov ebx, eax
mov eax, dword [esp + 0x2c]
imul ebx, eax
add ebx, edx
add ebx, ecx
mov ecx, dword [esp + 0x18]
push ecx
push eax
mov ecx, edi
call fcn.00547300
fild dword [edi + 0x84]
fcompp
fnstsw ax
test ah, 0x41
jne 0x5487a3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x40], edx
call fcn.00547300
mov edx, dword [esp + 0x38]
mov eax, dword [edi + 0x18]
fidiv dword [edi + 0x84]
sub edx, eax
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
fmulp st(1)
call fcn.005ad4c8
mov ecx, dword [esp + 0x38]
sub ecx, eax
mov dword [esp + 0x4c], ecx
jmp 0x5487aa
mov eax, dword [edi + 0x18]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x4c]
lea eax, [ebx + ecx*2]
mov ecx, dword [edi + 8]
push ecx
mov dword [esp + 0x44], eax
push eax
mov eax, dword [esi + 4]
push edx
push ebx
push eax
mov dword [esp + 0x58], ecx
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x54887a
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov edx, dword [esi + 8]
lea ecx, [esp + 0x50]
push 2
push ecx
push edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], eax
call dword [sym.imp.GDI32.dll_LPtoDP]
push 0x18
call fcn.005d2348
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0xb0], 2
je 0x548864
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
mov eax, esp
mov dword [esp + 0x3c], esp
push ecx
push edx
push eax
mov ecx, edi
call fcn.00547360
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], edx
call fcn.0054b2e0
jmp 0x548866
xor eax, eax
push eax
lea ecx, [edi + 0xb4]
mov byte [esp + 0xb4], 1
call fcn.0054b4a0
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
call fcn.005d89c1
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.005d89c1
lea ecx, [esp + 0x24]
call fcn.005d93c4
lea ecx, [esp + 0x1c]
call fcn.005d93c4
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x548b27
mov edx, dword [edi + 0xa4]
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov cl, byte [edx + eax*4]
lea eax, [edx + eax*4]
mov dword [esp + 0x14], eax
mov eax, ecx
add eax, 0xa0
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
mov ecx, eax
xor eax, eax
mov al, byte [edx + 1]
and eax, 0xff
add eax, 0xa0
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
sar ecx, 1
mov eax, dword [eax]
and ecx, 0xff
shr eax, 0x10
and eax, 0xff
add eax, 0xa0
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov dh, al
mov dl, byte [esp + 0x10]
shl edx, 8
mov eax, edx
or eax, ecx
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x28]
call fcn.005d936d
mov eax, dword [esp + 0x10]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x20]
call fcn.005d936d
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.005d89c1
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
mov dword [esp + 0x18], eax
call fcn.005d89c1
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x68], ebx
lea edx, [ecx + ebx]
mov ebx, eax
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x40]
sub ebx, ecx
add ecx, edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x78], ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x68]
push 4
push eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], edx
push ecx
call dword [sym.imp.GDI32.dll_Polygon]
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.005d89c1
lea ecx, [esp + 0x24]
call fcn.005d93c4
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
call fcn.005d89c1
lea ecx, [esp + 0x1c]
call fcn.005d93c4
mov ecx, dword [edi + 0xa4]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx*4]
xor ecx, ecx
mov dword [esp + 0x14], eax
mov cl, byte [eax]
mov eax, ecx
add eax, 0x28
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
mov ecx, eax
xor eax, eax
mov al, byte [edx + 1]
and eax, 0xff
add eax, 0x28
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
sar ecx, 1
mov eax, dword [eax]
and ecx, 0xff
shr eax, 0x10
and eax, 0xff
add eax, 0x28
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov dh, al
mov dl, byte [esp + 0x10]
shl edx, 8
mov eax, edx
or eax, ecx
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x28]
call fcn.005d936d
mov eax, dword [esp + 0x10]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x20]
call fcn.005d936d
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.005d89c1
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
mov dword [esp + 0x18], eax
call fcn.005d89c1
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x8c], eax
mov edx, dword [esp + 0x34]
push 4
sub eax, edx
lea edx, [esp + 0x8c]
mov dword [esp + 0xa8], eax
mov eax, dword [esi + 4]
push edx
push eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ecx
call dword [sym.imp.GDI32.dll_Polygon]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.005d89c1
lea ecx, [esp + 0x24]
call fcn.005d93c4
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
call fcn.005d89c1
lea ecx, [esp + 0x1c]
call fcn.005d93c4
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [edi + 0x9c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], edx
jl 0x5486c9
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi + 0x94]
inc ecx
cmp ecx, edx
mov dword [esp + 0x2c], ecx
jl 0x5486a8
mov ecx, dword [edi + 0xb0]
test ecx, ecx
je 0x548b7e
mov edx, dword [ebp + 0xc]
push eax
push edx
push esi
mov ecx, edi
call fcn.005490f0
mov ecx, dword [esp + 0x64]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov esi, 0xb1c3e8
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 3
call fcn.005d93c4
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0xb0], 4
call fcn.005d93c4
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc