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

Disassembly:
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x18]
add esi, 0x29c
push ecx
mov ecx, esi
call fcn.10095c5f
lea edx, [esp + 0x6c]
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.10095c04
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x38]
push edx
push ecx
push eax
mov dword [esp + 0x44], 0
call fcn.10096180
mov eax, dword [esp + 0x44]
add esp, 0xc
test eax, eax
jne 0x100482a7
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x10048288
mov eax, 0x10100444
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x100482a7
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
call fcn.10092897
push ebx
push 0
lea edx, [esp + 0x84]
push edx
mov ecx, edi
call fcn.10049de3
push eax
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0xd4], 2
call fcn.1009eb9c
mov ecx, dword [0x10100440]
push ecx
xor edi, edi
push edi
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xd8], 3
call fcn.1004a13e
mov eax, dword [esp + 0x60]
cmp eax, edi
je 0x1004830c
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x10048303
cmp al, 0xff
je 0x10048303
dec al
mov byte [ecx], al
jmp 0x1004830c
push ecx
call fcn.100d52e2
add esp, 4
mov eax, dword [esp + 0x80]
cmp eax, edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov byte [esp + 0xcc], 0
je 0x10048358
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x1004833e
cmp al, 0xff
je 0x1004833e
dec al
mov byte [ecx], al
jmp 0x10048358
invalid
push ecx
call fcn.100d531d
add esp, 4
jmp 0x10048358
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push edi
lea edx, [esp + 0x48]
push edx
push edi
push 0x4a
mov dword [esp + 0x54], edi
call esi
push edi
push edi
push edi
push 0x4b
call esi
mov eax, dword [esp + 0x70]
cmp eax, edi
jne 0x10048381
mov eax, 0x10100444
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push edi
mov edx, dword [esp + 0xe0]
push edi
push edi
push edi
push edi
push edi
push eax
push ebp
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
mov ebp, eax
cmp ebp, edi
mov dword [esp + 0x50], ebp
push edi
jne 0x100483c1
mov eax, dword [esp + 0x48]
push edi
push eax
push 0x4b
call esi
mov ecx, dword [esp + 0x70]
cmp ecx, edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push ebp
push esi
mov dword [esp + 0x24], esi
call ebx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x34], eax
xor eax, eax
mov ecx, 0xd
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x8c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
test eax, eax
jne 0x10048455
mov edx, dword [esp + 0x34]
push edx
push esi
call ebx
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x44]
push 0
push 0
push eax
push 0x4b
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [esp + 0x70]
test ecx, ecx
mov esi, dword [esp + 0xb9]
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x8c]
and esi, 0xff
and eax, 0xff
mov ebp, esi
sub ebp, eax
inc ebp
lea edi, [ebp*4]
push edi
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
call fcn.100e2cfb
push edi
mov dword [esp + 0x28], eax
call fcn.100e2d05
push edi
mov dword [esp + 0x54], eax
call fcn.100e2d0f
xor edi, edi
add esp, 0xc
xor ebx, ebx
cmp ebp, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x24], edi
jle 0x100485ef
mov ecx, dword [esp + 0x20]
sub ecx, eax
mov dword [esp + 0x3c], ecx
and al, 0x3c
mov ecx, dword [esp + 0x48]
sub ecx, eax
mov esi, eax
mov dword [esp + 0x14], ecx
mov dl, byte [esp + 0x28]
add dl, byte [esp + 0x24]
lea eax, [esp + 0x7c]
push eax
push 1
lea ecx, [esp + 0x1b]
mov byte [esp + 0x1b], dl
mov edx, dword [esp + 0x24]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
movsx eax, byte [esp + 0x13]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x7c]
lea ecx, [esp + 0x5c]
push ecx
push eax
push eax
push edx
mov dword [esp + 0x40], edi
mov dword [esi], 0
call dword [sym.imp.GDI32.dll_GetCharABCWidthsA]
test eax, eax
je 0x10048583
mov eax, dword [esp + 0x5c]
test eax, eax
jge 0x10048558
neg eax
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
sub esp, 8
fstp qword [esp]
sbb al, 0x24
call fcn.100e37d9
add esp, 8
call fcn.100e31e8
add edi, eax
mov dword [esi], eax
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x64]
test eax, eax
jge 0x10048583
neg eax
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
sub esp, 8
fstp qword [esp]
call fcn.100e3806
fiadd dword [esp + 0x38]
and al, 0x38
add esp, 8
call fcn.100e3219
mov edi, eax
test ebx, ebx
je 0x100485b0
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x240]
call fcn.1008e276
lea ecx, [edi + ebx]
cmp ecx, eax
jle 0x100485b0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xd8]
xor ebx, ebx
add eax, edx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov eax, ebx
shl eax, 0x10
or eax, edx
mov edx, dword [esp + 0x14]
mov dword [ecx + esi], eax
mov eax, dword [esp + 0x54]
add ebx, edi
cmp ebx, eax
mov dword [edx + esi], edi
jle 0x100485d7
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x24]
inc eax
add esi, 4
cmp eax, ebp
mov dword [esp + 0x24], eax
jl 0x100484df
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0x18]
push edi
lea eax, [edx + ecx]
push 0
push eax
mov eax, dword [esp + 0x60]
push eax
call fcn.1009da66
mov ebx, eax
test ebx, ebx
je 0x100489db
push 0x144
call fcn.100e2e9f
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xcc], 4
je 0x1004865a
push 0
push ebx
push edi
mov ecx, eax
call fcn.1008c848
jmp 0x1004865c
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x80]
lea ebx, [edi + 0x25c]
push edx
mov ecx, ebx
mov byte [esp + 0xd4], 0
mov dword [esp + 0x20], eax
call fcn.100923f2
mov ecx, dword [esp + 0x18]
call fcn.1008d38b
mov ecx, dword [esp + 0x18]