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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcbc
mov eax, dword [0x100e600c]
xor eax, esp
mov dword [esp + 0xcb8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 0xc]
push 0x1f
push eax
lea esi, [edi + 4]
mov dword [esp + 0x20], ecx
push esi
call fcn.1008c950
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x28], eax
mov eax, ebx
shr eax, 4
and al, 1
mov byte [edi + 0x23], 0
mov byte [edi + 0x30], al
mov eax, ebx
shr eax, 1
and al, 1
mov dword [edi + 0x2c], ebx
mov byte [edi + 0x38], al
mov eax, ebx
shr eax, 7
and eax, 1
mov dword [edi + 0x34], eax
mov eax, ebx
shr eax, 9
and eax, 1
mov dword [edi + 0x3c], eax
mov eax, ebx
shr eax, 0xb
and al, 1
mov byte [edi + 0x39], al
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x78], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x74], eax
mov eax, ebx
shr eax, 6
and al, 1
mov byte [edi + 0x31], al
mov eax, ebx
shr eax, 8
and al, 1
test bl, 8
mov byte [edi + 0x32], al
mov eax, 0
setne al
push str.win98japanese
push dword [esp + 0x10]
inc eax
mov dword [esp + 0x1c], eax
call fcn.1009b633
add esp, 8
test eax, eax
jne 0x1001ff7c
mov eax, dword [str.Tahoma]
mov dword [esi], eax
mov ax, word [0x100c5e0c]
mov word [esi + 4], ax
mov al, byte [0x100c5e0e]
mov dword [esp + 0x14], 0x80
mov byte [esi + 6], al
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea edx, [esp + 0xa0]
mov dword [esp + 0x10], eax
mov dword [edi + 0x88], eax
mov ecx, esi
mov byte [esp + 0x9b], 1
sub edx, esi
mov byte [esp + 0x9f], 0
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1001ffb0
push 0
push 0
mov byte [0x100ec887], al
lea eax, [esp + 0x8c]
push 0x1001fe80
push eax
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExA]
cmp byte [0x100ec887], 0
je 0x1002003e
push dword [esp + 0xc]
xor eax, eax
cmp byte [edi + 0x30], al
push 0
setne al
add eax, 3
push eax
push 0
push 0
push dword [esp + 0x28]
mov eax, ebx
and eax, 4
push eax
mov eax, ebx
and ebx, 1
and eax, 2
push eax
push ebx
push dword [edi + 0x28]
push 0
push 0
push 0
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [edi + 0x84], eax
test eax, eax
jne 0x10020059
push dword [esp + 0xc]
push str.Couldnt_create_windows_font__s_n
call fcn.10022bd0
add esp, 8
xor al, al
mov byte [esi], al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xcb8]
xor ecx, esp
call fcn.1008764f
mov esp, ebp
pop ebp
ret 0x18
push 1
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_SetMapMode]
push dword [edi + 0x84]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push dword [edi + 0x88]
call ebx
push 1
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0x38
lea eax, [esp + 0x50]
push 0
push eax
call fcn.10089ec0
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
test eax, eax
je 0x1002003e
mov edx, dword [edi + 0x3c]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x64]
add edx, edx
mov eax, dword [esp + 0x50]
mov esi, dword [edi + 0x34]
mov dword [edi + 0x48], eax
add esi, edx
add esi, dword [esp + 0x4c]
lea eax, [edx + ecx]
push 0
push 0
mov dword [edi + 0x68], eax
mov dword [esp + 0x30], eax
lea eax, [edi + 0x70]
push eax
push 0
lea eax, [esp + 0x34]
mov dword [edi + 0x40], esi
push eax
push dword [edi + 0x88]
mov dword [edi + 0x6c], esi
neg esi
mov dword [edi + 0x44], ecx
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x60], 0
mov dword [esp + 0x3c], 0x28
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 0x200001
mov dword [esp + 0x4c], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push dword [edi + 0x88]
mov dword [edi + 0x8c], eax
call ebx
push 0x300
lea eax, [edi + 0x90]
push 0
push eax
call fcn.10089ec0
add esp, 0xc
lea eax, [esp + 0xc0]
push eax
push 0xff
push 0
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_GetCharABCWidthsW]
test eax, eax
jne 0x100201ac
lea eax, [esp + 0xc0]
push eax
push 0xff
push 0
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_GetCharABCWidthsA]
test eax, eax
jne 0x100201ac
mov edx, dword [esp + 0x60]
lea eax, [edi + 0x91]
mov ecx, 0x100
nop dword [eax]
mov byte [eax], dl
lea eax, [eax + 3]
sub ecx, 1
jne 0x100201a0
jmp 0x100201fa
lea ecx, [esp + 0xc4]
mov esi, 0x100
lea edx, [edi + 0x91]
nop
movzx eax, byte [ecx - 4]
lea ecx, [ecx + 0xc]
sub al, byte [edi + 0x3c]
lea edx, [edx + 3]
sub al, byte [edi + 0x78]
mov byte [edx - 4], al
movzx eax, byte [edi + 0x3c]
add al, byte [edi + 0x78]
add al, al
add al, byte [ecx - 0xc]
add al, byte [edi + 0x34]
mov byte [edx - 3], al
movzx eax, byte [ecx - 8]
sub al, byte [edi + 0x3c]
sub al, byte [edi + 0x34]
sub al, byte [edi + 0x78]
mov byte [edx - 2], al
sub esi, 1
jne 0x100201c0
mov eax, dword [edi + 0x78]
cmp eax, 1
jle 0x100202e8
cmp dword [edi + 0x7c], 0
jne 0x100202e8
xor ecx, ecx
lea eax, [eax*2 + 1]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10087de3
mov dword [edi + 0x7c], eax
add esp, 4
mov eax, dword [edi + 0x78]
xor esi, esi
movd xmm1, eax
add eax, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x100d9c10]
js 0x100202e8
movaps xmm0, xmm1
addsd xmm0, xmm1
mulsd xmm0, xmm1
movsd qword [esp + 0x18], xmm0
movaps xmm0, xmm1
mulsd xmm0, qword [0x100d9c50]
mulsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1002027f
sqrtsd xmm0, xmm0
jmp 0x10020284
call fcn.100b00b0
movsd xmm1, qword [0x100d9c30]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [esp + 0x10], xmm0
nop word [eax + eax]
mov eax, esi
movsd xmm0, qword [0x100d9c40]
sub eax, dword [edi + 0x78]
imul eax, eax
neg eax
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, qword [esp + 0x18]
call fcn.100af390
movss xmm1, dword [esp + 0x10]
mov eax, dword [edi + 0x7c]
cvtps2pd xmm1, xmm1
mulsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [eax + esi*4], xmm0
inc esi
mov eax, dword [edi + 0x78]
add eax, eax
cmp esi, eax
jle 0x100202a0
mov ecx, dword [esp + 0xcc4]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008764f
mov esp, ebp
pop ebp
ret 0x18