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

Disassembly:
push 0xffffffffffffffff
push 0x5c93e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push edi
mov edi, ecx
mov dword [esp + 4], edi
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4d62fd
push ebx
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebp
push esi
mov esi, dword [esp + 0x74]
push 0x71
mov eax, dword [esi + 8]
push eax
call ebx
mov ecx, dword [esi + 8]
push 0x70
push ecx
mov ebp, eax
call ebx
neg eax
mov dword [esp + 0x54], eax
mov eax, dword [esi + 8]
lea edx, [esp + 0x54]
push 1
neg ebp
push edx
push eax
mov dword [esp + 0x64], ebp
call dword [sym.imp.GDI32.dll_DPtoLP]
mov ecx, dword [esi + 8]
push 0xa
push ecx
call ebx
mov edx, dword [esi + 8]
push 8
push edx
mov ebp, eax
call ebx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
mov dword [esp + 0x64], ebp
call fcn.00597284
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
mov ebx, eax
mov dword [esp + 0x4c], vtable.CFont.0
lea ebp, [ecx + eax]
xor eax, eax
neg ebx
mov dword [esp + 0x50], eax
lea edx, [edi + 0x90]
mov dword [esp + 0x6c], eax
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x50]
call fcn.00597595
mov eax, dword [esi]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x84]
test eax, eax
jne 0x4d60b6
mov ecx, dword [esi + 4]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x78]
push 1
push eax
push ecx
mov byte [esp + 0x84], 0x41
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x48]
mov dword [edi + 0x84], edx
mov eax, ebp
sub eax, ebx
cdq
idiv dword [edi + 0x84]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x108]
cmp eax, 0xffffffff
je 0x4d60d8
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [edi + 0x10c]
cmp eax, 0xffffffff
je 0x4d60eb
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
mov ecx, dword [esi + 8]
mov ebx, eax
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_GetBkColor]
mov ebp, eax
push 2
mov ecx, esi
mov dword [esp + 0x30], ebp
call fcn.00596bc8
mov edx, dword [0x6644f8]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0xcc]
dec edx
mov dword [esp + 0x20], edx
mov dword [edi + 0xcc], 0
mov edx, dword [esi]
push ebx
mov ecx, esi
mov dword [esp + 0x48], eax
call dword [edx + 0x30]
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x2c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x74], ebp
imul eax, ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 8]
mov ebp, edx
sub ebp, eax
cmp ebx, ebp
jge 0x4d617d
mov edx, ebx
jmp 0x4d617f
sub edx, eax
cmp dword [esp + 0x18], edx
jge 0x4d62bf
mov edx, dword [esp + 0x20]
push edx
call fcn.004c78d0
mov ebp, eax
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0x58]
mov dword [esp + 0x30], eax
mov edx, dword [ebp]
xor ebx, ebx
push edx
call fcn.004c79a0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jle 0x4d62a0
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [edi + 0x58]
call fcn.004c79f0
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x34], eax
sub edi, ebx
dec edi
test eax, eax
je 0x4d61e4
mov eax, dword [eax]
mov ecx, dword [ebp]
sub eax, ecx
sub eax, ebx
cmp edi, eax
jb 0x4d61e4
mov edi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d6237
mov dl, byte [eax + 0xc]
test dl, 1
je 0x4d620a
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
jne 0x4d6206
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x108]
mov dword [esp + 0x14], ecx
test dl, 2
je 0x4d6225
mov ecx, dword [eax + 8]
cmp ecx, 0xffffffff
jne 0x4d6221
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x10c]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x10]
push esi
lea edx, [esp + 0x50]
push eax
push edx
call fcn.004d2d10
jmp 0x4d6247
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x74]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov edx, dword [esp + 0x30]
mov ecx, dword [ebp]
push ebp
push edi
lea eax, [edx + ebx*2]
push ebx
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x1c]
push eax
mov edx, dword [ecx + 0x84]
imul edx, dword [esp + 0x28]
push edx
push esi
call fcn.004d1ea0
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x34]
add ebx, edi
mov edi, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x1c], eax
cmp ebx, ecx
jl 0x4d61ba
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
inc ecx
inc eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
jmp 0x4d616a
mov edx, dword [esp + 0x3c]
mov ecx, esi
push edx
call fcn.00596bc8
mov ecx, dword [esp + 0x40]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x4c], 0x5f1014
mov dword [edi + 0xcc], edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x6c], 1
call fcn.005975ec
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
pop edi
mov dword fs:[0], ecx
add esp, 0x60
ret 8