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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x1003f00c]
xor eax, esp
mov dword [esp + 0x88], eax
cmp dword [0x1003fcfc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [esp + 0x2c], ebx
jne 0x100051bd
mov dword [0x1003fcfc], esi
test esi, esi
je 0x10005280
cmp byte [0x1003fcf4], 0
jne 0x100051d3
call fcn.10004ee0
test eax, eax
js 0x10005280
mov eax, dword [ebx]
test eax, eax
jne 0x10005205
push 0x28
call fcn.10031eff
add esp, 4
mov dword [esp + 0x24], eax
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
push 0x10
movups xmmword [eax + 0x10], xmm0
movq qword [eax + 0x20], xmm0
call fcn.10005d60
mov dword [ebx], eax
test eax, eax
je 0x10005280
push esi
mov ecx, eax
call fcn.10005db0
test eax, eax
js 0x10005280
mov eax, dword [0x1003fcfc]
lea esi, [ebx + 0x30]
push 0
push esi
push 1
push 0x1a
push 0
push 1
push 0x200
mov dword [ebx + 0x40], 0x200
mov dword [ebx + 0x3c], 0x200
mov ecx, dword [eax]
push 0x200
push eax
mov dword [esp + 0x38], esi
call dword [ecx + 0x5c]
test eax, eax
js 0x10005280
mov ecx, dword [0x1003fcfc]
lea eax, [ebx + 0x34]
push 0
push eax
imul eax, dword [ebx + 0x38], 0x54
mov edx, dword [ecx]
push 0
push 0
push 0x208
push eax
push ecx
call dword [edx + 0x68]
test eax, eax
jns 0x1000529c
mov ecx, dword [esi]
test ecx, ecx
je 0x10005280
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], 0
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.10031912
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x3c]
xorps xmm0, xmm0
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x40]
neg eax
movlpd qword [esp + 0x7c], xmm0
push 0
movlpd qword [esp + 0x88], xmm0
mov dword [esp + 0x90], 0
mov dword [esp + 0x6c], 0x28
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0x200001
mov dword [esp + 0x7c], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
mov edi, eax
lea eax, [esp + 0x34]
push 0
push eax
push 0
lea eax, [esp + 0x78]
mov dword [esp + 0x1c], edi
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push 1
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetMapMode]
push 0x5a
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, eax
mov eax, 0xc71c71c7
imul ecx, dword [ebx + 0x24]
imul ecx
mov ecx, dword [ebx + 0x28]
lea eax, [ebx + 4]
push eax
push 2
push 2
push 0
push 4
push 1
push 0
sar edx, 4
mov eax, ecx
push 0
mov esi, edx
and eax, 2
push eax
shr esi, 0x1f
mov eax, 0x190
add esi, edx
test cl, 1
mov ecx, 0x2bc
cmovne eax, ecx
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [esp + 0x20], eax
push dword [esp + 0x18]
test eax, eax
jne 0x100053aa
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0
call esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx]
test ecx, ecx
je 0x10005280
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx], 0
jmp 0x10005280
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edi
call esi
push dword [esp + 0x20]
push edi
call esi
mov eax, dword [ebx + 0x3c]
dec eax
mov dword [esp + 0x58], 0
push 0xff00
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [esp + 0x58]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
lea eax, [esp + 0x40]
mov byte [esp + 0x3f], 0x20
push eax
push 1
lea eax, [esp + 0x47]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x40]
lea eax, [ecx + 3]
cdq
and edx, 3
add eax, edx
sar eax, 2
test byte [ebx + 0x28], 4
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x44]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0xe48], xmm0
je 0x1000545b
add ecx, 2
add eax, 2
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
lea eax, [ecx + 3]
xor esi, esi
cdq
mov ecx, 0x20
and edx, 3
mov dword [esp + 0x1c], ecx
lea edi, [edx + eax]
lea eax, [ebx + 0x50]
sar edi, 2
mov dword [esp + 0x14], eax
nop word [eax + eax]
lea eax, [esp + 0x40]
mov byte [esp + 0x3f], cl
push eax
push 1
lea eax, [esp + 0x47]
push eax
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x40]
and eax, 4
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], eax
je 0x100054bc
add edx, 3
add ecx, 3
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov eax, dword [ebx + 0x44]
add eax, edi
add eax, edx
cmp eax, dword [ebx + 0x3c]
jle 0x100054d9
mov edi, dword [ebx + 0x44]
lea eax, [ecx + 1]
lea eax, [esi + eax*2]
cmp eax, dword [ebx + 0x40]
jge 0x100054d9
inc esi
add esi, ecx
cmp dword [esp + 0x10], 0
lea eax, [edi + edx]
mov dword [esp + 0x50], eax
lea eax, [esi + ecx]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], eax
je 0x1000563d
push 0
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push 1
lea eax, [esp + 0x47]
inc edi
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x34], edi
push eax
inc esi
lea ebx, [edi - 1]
push 4
mov dword [esp + 0x24], esi
dec esi
push esi
push ebx
push dword [esp + 0x28]
mov dword [esp + 0x44], esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push 0
push 1
lea eax, [esp + 0x47]
push eax
lea eax, [esp + 0x54]
push eax
push 4
push esi
push edi
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push 0
push 1
lea eax, [esp + 0x47]
inc edi
push eax
lea eax, [esp + 0x54]
push eax
push 4
push esi
push edi
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x3f]
push 0
push 1
push eax
lea eax, [esp + 0x54]
push eax
push 4
push esi
push edi
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push 0
push 1
lea eax, [esp + 0x47]
inc esi
push eax
lea eax, [esp + 0x54]
push eax
push 4
push esi
push edi
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x3f]
push 0
push 1
push eax
lea eax, [esp + 0x54]
push eax
push 4
push esi
push edi
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push 0
push 1
lea eax, [esp + 0x47]
push eax
lea eax, [esp + 0x54]
push eax
push 4
push esi
push ebx
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x3f]
push 0
push 1
push eax
lea eax, [esp + 0x54]
push eax
push 4
push esi
push ebx
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push 0xff
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push 1
lea eax, [esp + 0x47]
push eax
lea eax, [esp + 0x54]
push eax
push 4
push esi
push edi
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov esi, dword [esp + 0x24]
mov edi, ebx
mov ebx, dword [esp + 0x2c]
jmp 0x10005668
push 0xff
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push 1
lea eax, [esp + 0x47]
push eax
lea eax, [esp + 0x54]
push eax
push 4
push esi
push edi
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
movd xmm0, dword [ebx + 0x3c]
mov eax, edi
sub eax, dword [ebx + 0x44]
cvtdq2ps xmm0, xmm0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, xmm0
movss dword [edx - 8], xmm1
mov eax, dword [ebx + 0x44]
movd xmm0, dword [ebx + 0x3c]
add eax, edi
add eax, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [esp + 0x44]
add eax, esi
divss xmm1, xmm0
movss dword [edx], xmm1
movd xmm0, dword [ebx + 0x40]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [edx - 4], xmm1
movd xmm0, dword [ebx + 0x40]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [edx + 4], xmm1
add edx, 0x10
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x14], edx
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x1c]
inc ecx
add edi, eax
mov dword [esp + 0x1c], ecx
cmp ecx, 0x100
jl 0x10005480
mov eax, dword [ebx + 0x30]
lea edx, [esp + 0x34]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x4c]
mov ecx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x40], eax
jle 0x100057a3
nop dword [eax]
xor esi, esi
mov edi, ecx
cmp dword [ebx + 0x3c], esi
jle 0x10005791
nop dword [eax]
mov ecx, dword [ebx + 0x3c]
lea edi, [edi + 2]
imul ecx, eax
mov eax, dword [esp + 0x30]
add ecx, esi
inc esi
mov ecx, dword [eax + ecx*4]
mov eax, ecx
shr eax, 0x10
shr al, 4
movzx edx, al
mov al, 0xf
shr ecx, 8
shr cl, 4
sub al, cl
movzx eax, al
shl ax, 4
or ax, dx
shl ax, 4
or ax, dx
shl ax, 4
or ax, dx
mov word [edi - 2], ax
mov eax, dword [esp + 0x10]
cmp esi, dword [ebx + 0x3c]
jl 0x10005740
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x34]
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp eax, dword [ebx + 0x40]
jl 0x10005730
mov eax, dword [ebx + 0x30]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x20]
call esi
mov ecx, dword [esp + 0x94]
xor eax, eax
pop edi
pop esi
mov byte [ebx + 0x2c], 1
pop ebx
xor ecx, esp
call fcn.10031912
mov esp, ebp
pop ebp
ret 4