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

Disassembly:
sub esp, 0x73c
mov eax, dword [0x581500]
xor eax, esp
mov dword [esp + 0x734], eax
push ebx
push ebp
mov ebp, dword [esp + 0x748]
push esi
push edi
lea eax, [esp + 0x24]
mov ebx, edx
mov esi, ecx
push eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x20]
lea eax, [esp + 0x1c]
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call fcn.004577b0
test eax, eax
jne 0x457264
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp byte [esp + 0x754], 0
mov dword [esp + 0x24], eax
jne 0x457092
lea ecx, [esp + 0x1f8]
push ecx
push 0x7f
push 0x20
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatW]
xor edx, edx
lea ecx, [esp + 0x1fc]
lea esp, [esp]
fld dword [ecx - 4]
inc edx
fadd dword [ecx + 4]
add ecx, 0xc
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
fadd dword [ecx - 0xc]
or eax, 0xc00
cmp edx, 0x60
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
mov ax, word [esp + 0x14]
mov word [esp + edx*2 + 0x676], ax
fldcw word [esp + 0x1c]
jl 0x457050
jmp 0x457146
push 0xc0
xor edi, edi
lea edx, [esp + 0x67e]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x684], cx
call fcn.004ff6c0
add esp, 0xc
xor eax, eax
jmp 0x4570c0
lea ecx, [eax + 0x20]
mov word [esp + eax*2 + 0x678], cx
inc eax
cmp eax, 0x60
jl 0x4570c0
push 0x180
lea edx, [esp + 0x78]
push edi
push edx
mov dword [esp + 0x7c], edi
call fcn.004ff6c0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x2710
push 0x60
lea eax, [esp + 0x68c]
push eax
push esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.GDI32.dll_GetTextExtentExPointW]
mov ecx, dword [esp + 0x70]
xor eax, eax
nop
cmp eax, edi
jne 0x45712e
mov word [esp + 0x678], cx
jmp 0x457140
mov dx, word [esp + eax*4 + 0x70]
sub dx, word [esp + eax*4 + 0x6c]
mov word [esp + eax*2 + 0x678], dx
inc eax
cmp eax, 0x60
jl 0x457120
lea eax, [esp + 0x28]
push eax
push 0x56fd
push 0x56fd
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatW]
fld dword [esp + 0x30]
fadd dword [esp + 0x2c]
push 0x38
fnstcw word [esp + 0x20]
movzx eax, word [esp + 0x20]
fadd dword [esp + 0x2c]
or eax, 0xc00
mov dword [esp + 0x18], eax
lea edx, [esp + 0x3c]
fldcw word [esp + 0x18]
push 0
push edx
mov dword [esp + 0x40], 0
fistp dword [esp + 0x20]
mov cx, word [esp + 0x20]
mov word [esp + 0x744], cx
fldcw word [esp + 0x28]
call fcn.004ff6c0
add esp, 0xc
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov ecx, dword [esp + 0x24]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x34]
mov esi, dword [ebp + 8]
mov dword [esp + 0x73c], edx
mov eax, ebx
xor edx, edx
div esi
mov eax, dword [ebp]
mov ebx, edx
test eax, eax
je 0x45720c
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x457239
jmp 0x4571f0
mov ecx, dword [esp + 0x18]
cmp dword [eax + 0xd0], ecx
jne 0x457200
cmp dword [eax], ecx
je 0x457253
mov eax, dword [eax + 0xcc]
test eax, eax
jne 0x4571f0
jmp 0x45723d
mov eax, dword [ebp + 0x30]
lea edi, [esi*4]
push edi
call eax
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x457239
push edi
push 0
push eax
call fcn.004ff6c0
add esp, 0xc
mov ecx, ebp
mov dword [ebp + 8], esi
call fcn.00485d40
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov edi, ebx
mov eax, ebp
call fcn.004578b0
mov edi, eax
add edi, 4
jmp 0x457256
lea edi, [eax + 4]
mov ecx, 0x32
lea esi, [esp + 0x678]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x744]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fa259
add esp, 0x73c
ret 8