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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc4
mov eax, dword [0x1010e040]
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.100b0110
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.100b50fe
add esp, 8
test eax, eax
jne 0x1009965c
mov eax, dword [str.Tahoma]
mov dword [esi], eax
mov ax, word [0x100e28c8]
mov word [esi + 4], ax
mov al, byte [0x100e28ca]
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 0x10099690
push 0
push 0
mov byte [0x101152ae], al
lea eax, [esp + 0x94]
push 0x10099560
push eax
push dword [esp + 0x24]
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExA]
cmp byte [0x101152ae], 0
je 0x1009971e
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 0x1009973a
push dword [esp + 0x10]
push str.Couldnt_create_windows_font__s_n
call fcn.1001e0b0
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.1009ee50
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.100a2620
add esp, 0xc
lea eax, [esp + 0x54]
push eax
push dword [edi + 0x88]
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
test eax, eax
je 0x1009971e
mov edx, dword [edi + 0x3c]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x6c]
add edx, edx
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
mov dword [edi + 0x48], eax
add esi, edx
add esi, dword [edi + 0x34]
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.100a2620
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 0x1009988c
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 0x1009988c
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 0x10099880
jmp 0x100998da
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 + 0x3c]
sub al, byte [edi + 0x34]
mov byte [edx - 2], al
sub esi, 1
jne 0x100998a0
mov eax, dword [edi + 0x78]
cmp eax, 1
jle 0x100999c8
xor ecx, ecx
lea eax, [eax*2 + 1]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009f4bb
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 [0x100f9468]
test eax, eax
js 0x100999c8
movaps xmm0, xmm1
addsd xmm0, xmm1
mulsd xmm0, xmm1
movsd qword [esp + 0x20], xmm0
movaps xmm0, xmm1
mulsd xmm0, qword [0x100f94b0]
mulsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10099958
sqrtsd xmm0, xmm0
jmp 0x1009995d
call fcn.100c8e90
movsd xmm1, qword [0x100f9480]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
nop word [eax + eax]
mov eax, ebx
movsd xmm0, qword [0x100f94a0]
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.100c8170
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 0x10099980
mov ecx, dword [esp + 0xccc]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1009ee50
mov esp, ebp
pop ebp
ret 0x18