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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1a8
mov eax, dword [0x10077008]
xor eax, esp
mov dword [esp + 0x1a4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x18], 0
push edi
push 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esi + 0x58], eax
mov dword [esi + 0x6c], 0x3f800000
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push 1
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.GDI32.dll_SetMapMode]
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push edi
call fcn.1002a820
mov edi, eax
test edi, edi
js 0x1002a7c1
push dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push edi
mov ecx, esi
mov dword [esp + 0x28], eax
mov dword [esi + 0x68], 0x80
mov dword [esi + 0x64], 0x80
call fcn.1002a8b0
mov edi, eax
cmp edi, 0x88760867
jne 0x1002a597
nop
mov eax, dword [esi + 0x64]
mov ecx, esi
add eax, eax
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x68]
push 1
push dword [esp + 0x1c]
add eax, eax
mov dword [esi + 0x68], eax
call fcn.1002a8b0
mov edi, eax
cmp edi, 0x88760867
je 0x1002a570
test edi, edi
js 0x1002a7c1
mov eax, dword [esi + 0x58]
lea edx, [esp + 0x78]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0xd0]
cmp dword [esi + 0x64], ecx
jbe 0x1002a673
movd xmm0, ecx
mov eax, ecx
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov edi, dword [esp + 0x18]
mov dword [esi + 0x64], ecx
addsd xmm0, qword [eax*8 + 0x10071690]
mov eax, dword [esi + 0x68]
mov dword [esi + 0x68], ecx
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10071690]
mov al, 1
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [esi + 0x6c], xmm1
test al, al
jne 0x1002a61d
movss xmm0, dword [esi + 0x6c]
mulss xmm0, dword [0x10070e80]
movss dword [esi + 0x6c], xmm0
push dword [esp + 0x20]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push edi
call fcn.1002a820
mov edi, eax
test edi, edi
js 0x1002a7c1
push dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push edi
mov ecx, esi
mov dword [esp + 0x28], eax
mov byte [esp + 0x1f], 0
call fcn.1002a8b0
cmp eax, 0x88760867
mov al, byte [esp + 0x17]
je 0x1002a607
mov ecx, dword [esi + 0x58]
lea edx, [esi + 0x5c]
push 0
push edx
push 1
mov eax, dword [ecx]
push 0x1a
push 0
push 1
push dword [esi + 0x68]
push dword [esi + 0x64]
push ecx
call dword [eax + 0x5c]
mov edi, eax
test edi, edi
js 0x1002a7c1
mov eax, dword [esi + 0x64]
xorps xmm0, xmm0
mov edi, dword [esp + 0x18]
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x68]
push 0
neg eax
movaps xmmword [esp + 0x54], xmm0
push 0
mov dword [esp + 0x50], eax
lea eax, [esp + 0x3c]
push eax
push 0
lea eax, [esp + 0x50]
movq qword [esp + 0x70], xmm0
push eax
push edi
mov dword [esp + 0x58], 0x28
mov dword [esp + 0x64], 0x200001
mov dword [esp + 0x68], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push edi
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xffffff
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0
push edi
mov ecx, esi
call fcn.1002a8b0
mov edi, eax
test edi, edi
js 0x1002a7c1
mov eax, dword [esi + 0x5c]
lea edx, [esp + 0x38]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x4c]
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
cmp dword [esi + 0x68], eax
jbe 0x1002a7bf
nop dword [eax]
xor edi, edi
mov edx, ecx
cmp dword [esi + 0x64], edi
jbe 0x1002a7ad
nop dword [eax]
mov ecx, dword [esi + 0x64]
imul ecx, eax
mov eax, dword [esp + 0x34]
add ecx, edi
mov eax, dword [eax + ecx*4]
shr eax, 4
and al, 0xf
jbe 0x1002a797
movzx eax, al
mov ecx, 0xfff
shl ax, 0xc
or ax, cx
jmp 0x1002a799
xor eax, eax
mov word [edx], ax
inc edi
mov eax, dword [esp + 0x24]
add edx, 2
cmp edi, dword [esi + 0x64]
jb 0x1002a770
mov ecx, dword [esp + 0x28]
add ecx, dword [esp + 0x38]
inc eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
cmp eax, dword [esi + 0x68]
jb 0x1002a760
xor edi, edi
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1002a7d0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x50]
push dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x20]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x1ac]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.100671ce
mov esp, ebp
pop ebp
ret 4