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

Disassembly:
push 0xffffffffffffffff
push 0x53346b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], 0xd0c330
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0xd0c348
mov edi, dword [esp + 0x74]
mov byte [esp + 0x6c], 1
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
mov edx, dword [edi]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x7c]
mov ecx, edi
push eax
call dword [edx + 0x30]
cmp dword [esp + 0x7c], ebx
jne 0x4d1c1f
lea ecx, [esi + 0xbc]
call fcn.004d2b30
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
sub eax, ecx
mov ecx, dword [esi + 0xa0]
cdq
idiv ecx
mov edx, dword [esi + 8]
mov ebp, dword [esi + 0x18]
sub edx, ebp
xor ebp, ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x8c]
cmp eax, ebx
jle 0x4d1ea2
cmp ecx, ebx
mov dword [esp + 0x74], ebx
jle 0x4d1e8f
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [esp + 0x14], ebx
jmp 0x4d1c79
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x4d1c8f
mov eax, dword [esi + 0x94]
mov eax, dword [eax + ebp*4]
push eax
push 5
jmp 0x4d1c9b
mov ecx, dword [esi + 0x94]
mov eax, dword [ecx + ebp*4]
push eax
push 2
push 0x10000
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x38]
call fcn.0052754a
lea edx, [esp + 0x34]
mov ecx, edi
push edx
call fcn.00526b9e
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x94]
mov eax, dword [eax + ebp*4]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x40]
call fcn.0052754a
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.00526b9e
mov edx, dword [esi + 4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x74]
push ebp
push eax
mov ecx, esi
lea ebx, [ebx + edx + 1]
call fcn.004d08b0
fild dword [esi + 0x9c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4d1d30
mov ecx, dword [esp + 0x74]
push ebp
push ecx
mov ecx, esi
call fcn.004d08b0
fimul dword [esp + 0x1c]
fidiv dword [esi + 0x9c]
call fcn.0050f1f8
mov ebp, dword [esi + 8]
sub ebp, eax
jmp 0x4d1d33
mov ebp, dword [esi + 0x18]
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x4d1df1
mov eax, 8
lea edx, [ebx - 7]
mov dword [esp + 0x54], edx
lea edx, [ebp - 7]
lea ecx, [eax + ebp]
add eax, ebx
push ecx
mov dword [esp + 0x60], eax
push eax
mov dword [esp + 0x60], edx
push edx
mov edx, dword [edi + 4]
lea eax, [ebx - 7]
mov dword [esp + 0x6c], ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [edi + 8]
lea eax, [esp + 0x54]
push 2
push eax
push ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
push 0x18
call fcn.00520298
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x6c], 2
je 0x4d1ddc
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x78]
mov edx, esp
mov dword [esp + 0x34], esp
push eax
push ecx
push edx
mov ecx, esi
call fcn.004d0910
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x70]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x34]
call fcn.004d27c0
jmp 0x4d1dde
xor eax, eax
push eax
lea ecx, [esi + 0xbc]
mov byte [esp + 0x70], 1
call fcn.004d2980
jmp 0x4d1e0b
lea eax, [ebp + 2]
lea ecx, [ebx + 2]
push eax
lea eax, [ebp - 2]
lea edx, [ebx - 2]
push ecx
push eax
push edx
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x74]
test eax, eax
jle 0x4d1e32
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
lea edx, [esp + 0x50]
push ecx
push edx
mov ecx, edi
call fcn.0052708f
push ebp
push ebx
mov ecx, edi
call fcn.005270db
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebp
call fcn.00526b9e
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, edi
call fcn.00526b9e
lea ecx, [esp + 0x3c]
call fcn.005275a1
lea ecx, [esp + 0x34]
call fcn.005275a1
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0xa0]
inc eax
add ebx, edx
cmp eax, ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x14], ebx
jl 0x4d1c71
mov ebp, dword [esp + 0x10]
xor ebx, ebx
mov eax, dword [esi + 0x8c]
inc ebp
cmp ebp, eax
mov dword [esp + 0x10], ebp
jl 0x4d1c54
cmp dword [esi + 0xb8], ebx
je 0x4d1ebc
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004d23e0
mov eax, dword [esp + 0x2c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov esi, 0xd0c318
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 3
call fcn.005275a1
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6c], 4
call fcn.005275a1
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 0xc