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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcbc
mov eax, dword [0x100e300c]
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 + 0x18], ecx
push esi
call fcn.10089890
mov eax, dword [esp + 0x1c]
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 + 0x20], eax
call fcn.10098573
add esp, 8
test eax, eax
jne 0x1001f4ac
mov eax, dword [str.Tahoma]
mov dword [esi], eax
mov ax, word [0x100bf468]
mov word [esi + 4], ax
mov al, byte [0x100bf46a]
mov dword [esp + 0x18], 0x80
mov byte [esi + 6], al
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea edx, [esp + 0xa0]
mov dword [esp + 0x14], 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 0x1001f4e0
push 0
push 0
mov byte [0x100e9866], al
lea eax, [esp + 0x8c]
push 0x1001f3b0
push eax
push dword [esp + 0x24]
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExA]
cmp byte [0x100e9866], 0
je 0x1001f56e
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 + 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 + 0x44]
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [edi + 0x84], eax
test eax, eax
jne 0x1001f58a
push dword [esp + 0xc]
push str.Couldnt_create_windows_font__s_n
call fcn.10022180
add esp, 8
mov byte [esi], 0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xcb8]
xor ecx, esp
call fcn.10083f5f
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.10086700
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
test eax, eax
je 0x1001f56e
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.10086700
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 0x1001f6dc
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 0x1001f6dc
mov edx, dword [esp + 0x60]
lea eax, [edi + 0x91]
mov ecx, 0x100
nop
mov byte [eax], dl
lea eax, [eax + 3]
sub ecx, 1
jne 0x1001f6d0
jmp 0x1001f72a
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 + 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 [edi + 0x34]
add al, byte [ecx - 0xc]
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 0x1001f6f0
mov eax, dword [edi + 0x78]
cmp eax, 1
jle 0x1001f81f
cmp dword [edi + 0x7c], 0
jne 0x1001f81f
xor ecx, ecx
lea eax, [eax*2 + 1]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100845cb
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 [0x100d3258]
test eax, eax
js 0x1001f81f
movaps xmm0, xmm1
addsd xmm0, xmm1
mulsd xmm0, xmm1
movsd qword [esp + 0x18], xmm0
movaps xmm0, xmm1
mulsd xmm0, qword [0x100d3298]
mulsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1001f7b2
sqrtsd xmm0, xmm0
jmp 0x1001f7b7
call fcn.100ac250
movsd xmm1, qword [0x100d3278]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [esp + 0x14], xmm0
nop dword [eax]
mov eax, ebx
movsd xmm0, qword [0x100d3288]
sub eax, esi
lea esi, [ebx*4]
imul eax, eax
neg eax
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, qword [esp + 0x18]
call fcn.100ab530
movss xmm1, dword [esp + 0x14]
inc ebx
mov eax, dword [edi + 0x7c]
cvtps2pd xmm1, xmm1
mulsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [esi + eax], xmm0
mov esi, dword [edi + 0x78]
lea eax, [esi + esi]
cmp ebx, eax
jle 0x1001f7d0
mov ecx, dword [esp + 0xcc4]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10083f5f
mov esp, ebp
pop ebp
ret 0x18