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

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
sub esp, 0x18c
mov eax, dword [eax + 0x14]
mov dword [esp + 0x1c], edx
xor edx, edx
mov edi, dword [esp + 0x1a4]
mov dword [esp + 0x18], edx
test eax, eax
je 0x515c8b
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.USER32.dll_GetDC
sub esp, 4
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.GDI32.dll_SelectObject
sub esp, 8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x140]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.GDI32.dll_GetTextMetricsA
sub esp, 8
call fcn.004d2fa0
cmp eax, 2
je 0x515e80
mov dword [esp], esi
lea ebx, [esp + 0x20]
mov eax, 0x20
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call sub.GDI32.dll_GetTextFaceA
sub esp, 0xc
mov ecx, 0xffffffff
lea eax, [esp + 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [0x5ee4a0]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
lea ebx, [edi + 0x24]
mov dword [esp], eax
mov eax, dword [0x5ecbec]
call dword [eax + 0x4a8]
mov dword [edi + 0x20], edi
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.004d29c0
mov dword [edi + 0x24], eax
mov edx, dword [esp + 0x140]
mov eax, dword [esp + 0x14c]
mov dword [esp], ebp
sub eax, edx
mov dword [esp + 4], eax
call fcn.004c1ef0
mov dword [ebx + 4], eax
xor eax, eax
cmp dword [esp + 0x15c], 0x1f4
lea edx, [edi + 0x3c]
mov ecx, dword [esp + 0x14c]
setg al
mov dword [ebx + 8], eax
xor eax, eax
cmp byte [esp + 0x170], 0
setne al
mov dword [ebx + 0xc], eax
xor eax, eax
cmp byte [esp + 0x171], 0
setne al
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x1a0]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x144]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x148]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x158]
mov dword [edx + 8], eax
movzx eax, byte [esp + 0x173]
xor eax, 1
and eax, 1
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x74], 1
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x7c], eax
mov eax, dword [esp + 0x140]
sub eax, ecx
mov dword [edi + 0x80], eax
lea eax, [edi + 0x50]
mov dword [edi + 0x78], eax
mov dword [esp + 4], eax
mov eax, esi
mov dword [esp], 1
call fcn.00514220
mov eax, dword [edi + 0x78]
mov eax, dword [eax + 8]
mov ebx, dword [eax + 0xc]
call fcn.004d3ac0
cmp eax, ebx
je 0x515ea0
mov dword [esp], esi
lea eax, [edi + 0x84]
mov dword [esp + 0xc], eax
mov eax, 0x7f
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call sub.GDI32.dll_GetCharWidthA
sub esp, 0x10
lea eax, [esp + 0x60]
mov dword [esp], eax
mov eax, dword [0x5ecbec]
call dword [eax + 0x1e8]
mov dword [esp], esi
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call sub.GDI32.dll_SelectObject
sub esp, 8
mov eax, dword [esp + 0x18]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.USER32.dll_ReleaseDC
sub esp, 8
add esp, 0x18c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
lea ebx, [esp + 0x20]
mov eax, 0x20
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call sub.GDI32.dll_GetTextFaceW
jmp 0x515cf0
mov dword [esp], esi
lea eax, [edi + 0x84]
mov edx, 0x7f
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sub.GDI32.dll_GetCharWidthW
jmp 0x515e35