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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc4
mov eax, dword [0x100e3040]
xor eax, esp
mov dword [esp + 0xcc0], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0xc]
push 0x1f
push eax
lea esi, [edi + 4]
mov dword [esp + 0x28], ecx
push esi
call fcn.10089cc0
mov eax, dword [esp + 0x2c]
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 + 0x14]
inc eax
mov dword [esp + 0x20], eax
call fcn.100989a3
add esp, 8
test eax, eax
jne 0x1001fa0c
mov eax, dword [str.Tahoma]
mov dword [esi], eax
mov ax, word [0x100bf48c]
mov word [esi + 4], ax
mov al, byte [0x100bf48e]
mov dword [esp + 0x18], 0x80
mov byte [esi + 6], al
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea edx, [esp + 0xa8]
mov dword [esp + 0x14], eax
mov dword [edi + 0x88], eax
mov ecx, esi
mov byte [esp + 0xa3], 1
sub edx, esi
mov byte [esp + 0xa7], 0
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1001fa40
push 0
push 0
mov byte [0x100e98d7], al
lea eax, [esp + 0x94]
push 0x1001f910
push eax
push dword [esp + 0x24]
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExA]
cmp byte [0x100e98d7], 0
je 0x1001face
push dword [esp + 0x10]
xor eax, eax
cmp byte [edi + 0x30], al
push 0
setne al
add eax, 3
push eax
push 0
push 0
push dword [esp + 0x2c]
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 + 0x54]
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [edi + 0x84], eax
test eax, eax
jne 0x1001faea
push dword [esp + 0x10]
push str.Couldnt_create_windows_font__s_n
call fcn.100226b0
add esp, 8
mov byte [esi], 0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xcc0]
xor ecx, esp
call fcn.1008438f
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 + 0x58]
push 0
push eax
call fcn.10086b30
add esp, 0xc
lea eax, [esp + 0x54]
push eax
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
test eax, eax
je 0x1001face
mov edx, dword [edi + 0x3c]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x6c]
add edx, edx
mov eax, dword [esp + 0x58]
mov esi, dword [edi + 0x34]
mov dword [edi + 0x48], eax
add esi, edx
add esi, dword [esp + 0x54]
lea eax, [edx + ecx]
push 0
push 0
mov dword [edi + 0x68], eax
mov dword [esp + 0x38], eax
lea eax, [edi + 0x70]
push eax
push 0
lea eax, [esp + 0x3c]
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 + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x68], 0
mov dword [esp + 0x44], 0x28
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 0x200001
mov dword [esp + 0x54], 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.10086b30
add esp, 0xc
lea eax, [esp + 0xc8]
push eax
push 0xff
push 0
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_GetCharABCWidthsW]
test eax, eax
jne 0x1001fc3c
lea eax, [esp + 0xc8]
push eax
push 0xff
push 0
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_GetCharABCWidthsA]
test eax, eax
jne 0x1001fc3c
mov edx, dword [esp + 0x68]
lea eax, [edi + 0x91]
mov ecx, 0x100
nop
mov byte [eax], dl
lea eax, [eax + 3]
sub ecx, 1
jne 0x1001fc30
jmp 0x1001fc8a
lea ecx, [esp + 0xcc]
mov esi, 0x100
lea edx, [edi + 0x91]
nop
movzx eax, byte [ecx - 4]
lea ecx, [ecx + 0xc]
sub al, byte [edi + 0x78]
lea edx, [edx + 3]
sub al, byte [edi + 0x3c]
mov byte [edx - 4], al
movzx eax, byte [edi + 0x78]
add al, byte [edi + 0x3c]
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 + 0x78]
sub al, byte [edi + 0x34]
sub al, byte [edi + 0x3c]
mov byte [edx - 2], al
sub esi, 1
jne 0x1001fc50
mov eax, dword [edi + 0x78]
cmp eax, 1
jle 0x1001fd78
cmp dword [edi + 0x7c], 0
jne 0x1001fd78
xor ecx, ecx
lea eax, [eax*2 + 1]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100849fa
mov esi, dword [edi + 0x78]
add esp, 4
mov dword [edi + 0x7c], eax
xor ebx, ebx
movd xmm1, esi
lea eax, [esi + esi]
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x100d3290]
test eax, eax
js 0x1001fd78
movaps xmm0, xmm1
addsd xmm0, xmm1
mulsd xmm0, xmm1
movsd qword [esp + 0x20], xmm0
movaps xmm0, xmm1
mulsd xmm0, qword [0x100d32d0]
mulsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1001fd12
sqrtsd xmm0, xmm0
jmp 0x1001fd17
call fcn.100ac690
movsd xmm1, qword [0x100d32b0]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
mov eax, ebx
movsd xmm0, qword [0x100d32c0]
sub eax, esi
lea esi, [ebx*4]
imul eax, eax
neg eax
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, qword [esp + 0x20]
call fcn.100ab970
mulsd xmm0, qword [esp + 0x18]
inc ebx
mov eax, dword [edi + 0x7c]
cvtsd2ss xmm0, xmm0
movss dword [esi + eax], xmm0
mov esi, dword [edi + 0x78]
lea eax, [esi + esi]
cmp ebx, eax
jle 0x1001fd30
mov ecx, dword [esp + 0xccc]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008438f
mov esp, ebp
pop ebp
ret 0x18