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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
mov eax, dword [0x4e04c4]
xor eax, esp
mov dword [esp + 0x160], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x68], ecx
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [eax + eax*2]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword fs:[0x2c]
push esi
push edi
mov dword [esp + 0x8c], 0
mov ecx, dword [eax]
mov eax, dword [0x4e4280]
cmp eax, dword [ecx + 4]
jle 0x40858b
push 0x4e4280
call fcn.00496a7e
add esp, 4
cmp dword [0x4e4280], 0xffffffff
jne 0x40858b
xorps xmm0, xmm0
push 0x4c0f70
movups xmmword [0x4e4268], xmm0
movq qword [0x4e4278], xmm0
call fcn.00496d90
push 0x4e4280
call fcn.00496a34
add esp, 8
mov edi, dword [0x4e4278]
call fcn.00404990
push edi
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x3c
lea eax, [esp + 0xfc]
push 0
push eax
call fcn.00499720
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov edx, dword [esp + 0x28]
mov ecx, edx
mov byte [esp + 0x10f], 0x80
mov dword [esp + 0x108], 0
lea eax, [eax + eax*2]
mov byte [esp + 0x112], 4
mov dword [esp + 0xf8], eax
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408600
sub ecx, esi
lea eax, [esp + 0x114]
push ecx
push edx
push eax
call fcn.00499880
add esp, 0xc
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x38], eax
call edi
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
movzx eax, byte [ebx]
push eax
mov dword [esp + 0x9c], 0x10000
mov dword [esp + 0xa8], 0x10000
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov dword [esp + 0x24], ecx
movzx ecx, byte [ebx]
test eax, eax
je 0x40868c
movzx esi, byte [ebx + 1]
shl ecx, 8
or esi, ecx
jmp 0x40868e
mov esi, ecx
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x134]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
lea eax, [esp + 0x98]
push eax
push 0
push 0
lea eax, [esp + 0xc4]
push eax
push 0
push esi
push ebx
call dword [sym.imp.GDI32.dll_GetGlyphOutlineA]
mov ecx, dword [esp + 0x1c]
xorps xmm0, xmm0
mov eax, ecx
mov dword [esp + 0xa8], 0
cdq
sub eax, edx
mov dword [esp + 0xac], 0
mov edx, dword [esp + 0xc0]
sar eax, 1
sub edx, eax
movlpd qword [esp + 0xdc], xmm0
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x138]
sub edx, eax
movlpd qword [esp + 0xe4], xmm0
mov eax, dword [esp + 0xb8]
sub edx, dword [esp + 0xc4]
add eax, 2
add ecx, eax
mov dword [esp + 0x28], edx
mov eax, 0x55555556
movlpd qword [esp + 0xec], xmm0
imul ecx
mov ecx, dword [esp + 0x1c]
mov eax, edx
mov dword [esp + 0xf4], 0
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xcc], 0x28
push 0
push 0
mov dword [esp + 0xe0], 0x180001
lea esi, [eax + eax*2]
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0xc4]
add eax, 2
mov dword [esp + 0xb8], esi
add ecx, eax
mov dword [esp + 0xd8], esi
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx*2]
mov dword [esp + 0xbc], eax
lea eax, [ecx*4]
sub eax, ecx
neg eax
mov dword [esp + 0xdc], eax
lea eax, [esp + 0x90]
push eax
push 0
lea eax, [esp + 0xdc]
push eax
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push ebx
mov dword [esp + 0x78], eax
call edi
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xff0000
mov dword [esp + 0x3c], eax
call edi
mov esi, eax
push esi
lea eax, [esp + 0xac]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [sym.imp.GDI32.dll_DeleteObject]
push esi
mov dword [esp + 0x48], eax
call eax
push 0xff00
push dword [esp + 0x20]
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov esi, eax
push 0xff
mov dword [esp + 0x38], esi
call edi
push esi
push dword [esp + 0x14]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
call esi
push ebx
push dword [esp + 0x14]
mov edi, eax
call esi
push 1
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_BeginPath]
push dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x24]
mov eax, dword [esp + 0x50]
neg ecx
push ecx
neg eax
push eax
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_TextOutA]
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_EndPath]
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_StrokeAndFillPath]
push edi
push dword [esp + 0x14]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
call edi
push esi
mov esi, dword [esp + 0x14]
push esi
call edi
push dword [esp + 0x18]
push esi
call edi
push dword [esp + 0x38]
push esi
call edi
push ebx
mov ebx, dword [esp + 0x48]
call ebx
push dword [esp + 0x34]
call ebx
push dword [esp + 0x30]
call ebx
mov ecx, dword [esp + 0x2c]
mov eax, 0x55555556
imul dword [esp + 0xb0]
mov eax, 0x55555556
mov esi, edx
shr esi, 0x1f
add esi, edx
imul dword [esp + 0xb4]
mov eax, dword [ecx]
mov edi, edx
mov dword [esp + 0x40], esi
shr edi, 0x1f
add edi, edx
mov dword [esp + 0x24], edi
push 0
lea edx, [esp + 0x90]
push edx
push 1
push 0x15
push 0
push 1
push edi
push esi
push ecx
call dword [eax + 0x5c]
test eax, eax
jns 0x408926
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.004968dc
mov esp, ebp
pop ebp
ret 0x40
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x90]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x4c]
test eax, eax
js 0x408c4e
mov eax, dword [esp + 0xb0]
lea eax, [eax + eax*2]
add eax, 3
cdq
and edx, 3
add eax, edx
and eax, 0xfffffffc
mov dword [esp + 0x68], eax
test edi, edi
jle 0x408c3f
lea ecx, [esi*4]
xor ebx, ebx
mov esi, dword [esp + 0x94]
mov edx, eax
mov dword [esp + 0x6c], ecx
lea ecx, [eax + eax*2]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edx
test ecx, ecx
jle 0x408c16
movaps xmm2, xmmword [0x4d44f0]
lea ecx, [edx + eax]
mov dword [esp + 0x3c], ecx
sub ebx, edx
sub ecx, edx
mov dword [esp + 0x2c], esi
mov eax, edx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x30], ecx
nop dword [eax]
mov edi, dword [esp + 0x88]
lea ecx, [eax + ebx]
add eax, ebx
movaps xmm1, xmm2
movups xmm0, xmmword [ebp + 0x20]
movzx esi, byte [ecx + edi + 7]
movzx edx, byte [eax + edi + 6]
movzx eax, byte [ecx + edi + 3]
movzx ebx, byte [ecx + edi + 8]
add edx, eax
movzx eax, byte [ecx + edi]
add edx, eax
movzx eax, byte [ecx + edi + 4]
add esi, eax
movzx eax, byte [ecx + edi + 1]
add esi, eax
movzx eax, byte [ecx + edi + 5]
add ebx, eax
movzx eax, byte [ecx + edi + 2]
add ebx, eax
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + edi + 6]
movzx eax, byte [eax + edi + 3]
add ecx, eax
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + edi]
add edx, eax
mov eax, dword [esp + 0x14]
add edx, ecx
movzx ecx, byte [eax + edi + 7]
movzx eax, byte [eax + edi + 4]
add ecx, eax
mov eax, dword [esp + 0x14]
movzx edi, byte [eax + edi + 1]
add edi, esi
mov esi, dword [esp + 0x88]
add edi, ecx
movzx ecx, byte [eax + esi + 8]
movzx eax, byte [eax + esi + 5]
add ecx, eax
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + esi + 2]
add ebx, eax
mov eax, dword [esp + 0x14]
add ebx, ecx
mov ecx, dword [esp + 0x5c]
lea esi, [eax + ecx]
add eax, ecx
mov ecx, dword [esp + 0x88]
movzx ecx, byte [eax + ecx + 6]
mov eax, dword [esp + 0x88]
movzx eax, byte [esi + eax + 3]
add ecx, eax
mov eax, dword [esp + 0x88]
movzx eax, byte [esi + eax]
add eax, edx
mov edx, dword [esp + 0x88]
add eax, ecx
mov dword [esp + 0x60], eax
movzx eax, byte [esi + edx + 4]
movzx ecx, byte [esi + edx + 7]
movzx edx, byte [esi + edx + 1]
add ecx, eax
mov eax, dword [esp + 0x3c]
add edx, edi
mov edi, dword [esp + 0x88]
lea edx, [edx + ecx]
movzx ecx, byte [eax + edi + 8]
movzx eax, byte [esi + edi + 5]
add ecx, eax
movzx eax, byte [esi + edi + 2]
add eax, ebx
add ecx, eax
mov eax, 0x38e38e39
mul edx
mov eax, 0x38e38e39
mov edi, edx
mul ecx
shr edi, 1
mov ebx, edx
shr ebx, 1
mulps xmm1, xmm0
mov eax, 0x38e38e39
mov esi, 0xff
mul dword [esp + 0x60]
cvttps2dq xmm0, xmm1
shr edx, 1
movaps xmm1, xmm2
sub esi, edx
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [ebp + 0x30]
mulps xmm1, xmm0
cvttps2dq xmm0, xmm1
movups xmmword [esp + 0x78], xmm0
cmp esi, 0xff
jae 0x408b59
imul esi, dword [esp + 0x58]
and esi, 0xffffff00
or esi, dword [esp + 0x4c]
shl esi, 8
or esi, dword [esp + 0x50]
shl esi, 8
or esi, dword [esp + 0x54]
jmp 0x408bd2
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x78]
imul eax, edi
imul esi, ebx
imul ecx, ebx
and eax, 0xffffff00
and esi, 0xffffff00
add esi, eax
and ecx, 0xffffff00
mov eax, dword [esp + 0x4c]
imul eax, edi
shl esi, 0x10
and eax, 0xffffff00
add ecx, eax
mov eax, dword [esp + 0x50]
shl ecx, 8
or esi, ecx
imul eax, edi
mov ecx, dword [esp + 0x7c]
imul ecx, ebx
and eax, 0xffffff00
and ecx, 0xffffff00
add ecx, eax
mov eax, dword [esp + 0x54]
or esi, ecx
imul eax, edi
mov ecx, dword [esp + 0x80]
imul ecx, ebx
shr eax, 8
shr ecx, 8
add ecx, eax
or esi, ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x3c], 9
mov ebx, dword [esp + 0x64]
mov dword [eax], esi
add eax, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
add eax, 9
sub dword [esp + 0x30], 1
mov dword [esp + 0x14], eax
jne 0x4089d0
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
add ebx, dword [esp + 0x38]
add edx, dword [esp + 0x38]
add esi, dword [esp + 0x6c]
sub edi, 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
jne 0x408998
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x8c]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push dword [esp + 0x70]
call ebx
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, dword [esp + 0x74]
test ebx, ebx
je 0x408cc4
mov eax, 0x55555556
movsx ecx, word [esp + 0xc8]
imul dword [esp + 0x48]
add ecx, dword [esp + 0x1c]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebx], eax
mov eax, 0x55555556
imul dword [esp + 0x28]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebx + 4], eax
mov eax, 0x55555556
imul ecx
mov eax, 0x55555556
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x134]
add ecx, dword [esp + 0x1c]
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebx + 0xc], eax
mov ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004968dc
mov esp, ebp
pop ebp
ret 0x40