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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x1035dd3c]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x10364d8c]
mov dword [esp + 0x18], eax
mov eax, dword fs:[0x2c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [eax + ecx*4]
mov eax, dword [0x10365b80]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
cmp eax, dword [edi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jg 0x1006ee75
mov eax, dword [0x10365b84]
mov ecx, 0x1006ba10
test eax, eax
cmove eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [0x10365b84], eax
mov eax, dword [0x10365b88]
cmp eax, dword [ecx + 4]
jg 0x1006eeb9
mov edx, dword [ebp + 0x10]
mov ecx, edx
mov eax, dword [ebp + 0x14]
shr ecx, 0x18
shr eax, 0x18
add ecx, eax
shr ecx, 1
mov dword [esp + 0x6c], ecx
test cl, cl
je 0x1006ee61
mov eax, dword [esi + 8]
sub eax, dword [esi]
movups xmm0, xmmword [esi]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov edi, eax
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x54], 0
cmp cl, 0xff
jae 0x1006eb5c
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x34]
push eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x50], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esp + 0x34]
mov edi, eax
push dword [esp + 0x3c]
mov dword [esp + 0x44], edi
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SelectObject]
movaps xmm0, xmmword [esp + 0x40]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x54], eax
movaps xmmword [esp + 0x80], xmm0
mov eax, dword [0x10365b8c]
mov dword [esp + 0x28], eax
test eax, eax
je 0x1006ec42
mov eax, dword [esp + 0x40]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ebp + 0x14]
shl ax, 8
mov word [esp + 0x88], ax
mov eax, edx
and eax, 0xff00
mov dword [esp + 0x40], 0
mov word [esp + 0x8a], ax
movzx eax, dl
mov edx, 0xff00
shl ax, 8
mov word [esp + 0x8c], ax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x94], eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl ax, 8
mov word [esp + 0x98], ax
mov eax, ecx
and eax, edx
mov word [esp + 0x8e], dx
mov word [esp + 0x9a], ax
movzx eax, cl
shl ax, 8
mov word [esp + 0x9c], ax
movzx eax, byte [ebp + 0x18]
push eax
push 1
lea eax, [esp + 0x48]
mov word [esp + 0xa6], dx
push eax
push 2
lea eax, [esp + 0x90]
mov dword [esp + 0x54], 1
push eax
push edi
call dword [esp + 0x40]
jmp 0x1006ee05
mov eax, dword [ebp + 0x1c]
mov ecx, 1
cmp eax, 0x40
jl 0x1006ec56
mov ecx, 6
jmp 0x1006ec85
cmp eax, 0x20
jl 0x1006ec62
mov ecx, 5
jmp 0x1006ec85
cmp eax, 0x10
jl 0x1006ec6e
mov ecx, 4
jmp 0x1006ec85
cmp eax, 8
jl 0x1006ec7a
mov ecx, 3
jmp 0x1006ec85
cmp eax, 4
mov edi, 2
cmovge ecx, edi
mov edi, 1
mov dword [esp + 0x18], ecx
shl edi, cl
xor eax, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], eax
test edi, edi
jle 0x1006ee05
mov eax, dword [ebp + 0x14]
movzx esi, ax
shr esi, 8
mov dword [esp + 0x5c], esi
movzx esi, dx
shr esi, 8
mov dword [esp + 0x60], esi
movzx esi, al
shr eax, 0x10
movzx edi, dl
movzx eax, al
mov dword [esp + 0x64], eax
shr edx, 0x10
movzx eax, dl
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], esi
sub edi, eax
imul eax, dword [esp + 0x58]
mov edx, edi
mov dword [esp + 0x24], edi
imul edx, esi
add edx, eax
sar edx, cl
movzx esi, dl
mov edx, edi
imul edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x1c]
mov eax, edi
imul eax, dword [esp + 0x60]
shl esi, 8
add edx, eax
sar edx, cl
movzx eax, dl
mov edx, dword [esp + 0x24]
or esi, eax
imul edx, dword [esp + 0x64]
mov eax, edi
imul eax, dword [esp + 0x68]
shl esi, 8
add edx, eax
sar edx, cl
movzx eax, dl
or esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
cmp byte [ebp + 0x18], 0
lea ecx, [edi + 1]
movaps xmm0, xmmword [esp + 0x80]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x24], ecx
je 0x1006ed9d
mov edi, dword [eax + 0xc]
mov esi, edi
sub esi, dword [eax + 4]
mov edx, edi
mov ecx, dword [esp + 0x18]
mov eax, esi
imul eax, dword [esp + 0x1c]
imul esi, dword [esp + 0x24]
sar eax, cl
sar esi, cl
sub edx, eax
sub edi, esi
mov dword [esp + 0x7c], edx
mov esi, dword [esp + 0x14]
sub edx, edi
mov dword [esp + 0x74], edi
test edx, edx
jle 0x1006edde
push esi
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x28]
jmp 0x1006edd8
mov edi, dword [eax + 8]
mov esi, edi
sub esi, dword [eax]
mov edx, edi
mov eax, esi
imul esi, dword [esp + 0x1c]
imul eax, ecx
mov ecx, dword [esp + 0x18]
sar esi, cl
sub edi, esi
sar eax, cl
mov esi, dword [esp + 0x14]
sub edx, eax
mov dword [esp + 0x78], edi
sub edi, edx
mov dword [esp + 0x70], edx
test edi, edi
jle 0x1006edde
push esi
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
cmp eax, edi
jl 0x1006ece3
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x6c]
cmp al, 0xff
jae 0x1006ee61
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x16], al
mov eax, dword [esp + 0x38]
mov word [esp + 0x14], 0
mov byte [esp + 0x17], 1
push dword [esp + 0x14]
push ecx
push eax
push 0
push 0
push edi
push ecx
push eax
push dword [esi + 4]
push dword [esi]
push dword [esp + 0x48]
call dword [0x10365b84]
push dword [esp + 0x54]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0xac]
pop edi
pop esi
xor ecx, esp
call fcn.102601ec
mov esp, ebp
pop ebp
ret
push 0x10365b80
call fcn.1025fd8f
add esp, 4
cmp dword [0x10365b80], 0xffffffff
jne 0x1006ea74
push str.AlphaBlend
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call edi
push 0x10365b80
mov dword [0x10365b84], eax
call fcn.1025fd45
add esp, 4
jmp 0x1006ea74
push 0x10365b88
call fcn.1025fd8f
add esp, 4
cmp dword [0x10365b88], 0xffffffff
jne 0x1006ea9d
push str.GradientFill
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call edi
push 0x10365b88
mov dword [0x10365b8c], eax
call fcn.1025fd45
add esp, 4
jmp 0x1006ea9d