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

Disassembly:
sub esp, 0x84
mov eax, dword [0x7f9c40]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [0x800e58]
mov dword [esp + 0x14], eax
mov eax, dword fs:[0x2c]
push ebx
mov ebx, dword [esp + 0x90]
push ebp
mov ebp, dword [eax + ecx*4]
mov eax, dword [0x7ff258]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp + 0x1c], ebx
cmp eax, dword [ebp + 8]
jg 0x4f20af
mov eax, dword [0x7ff260]
cmp eax, dword [ebp + 8]
jg 0x4f20ef
mov edx, dword [esp + 0xa0]
mov ecx, edx
mov eax, dword [esp + 0xa4]
shr ecx, 0x18
shr eax, 0x18
add ecx, eax
shr ecx, 1
mov dword [esp + 0x5c], ecx
test cl, cl
je 0x4f2096
mov ebp, dword [ebx + 0xc]
sub ebp, dword [ebx + 4]
movups xmm0, xmmword [ebx]
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov ebp, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
movups xmmword [esp + 0x70], xmm0
movups xmmword [esp + 0x2c], xmm0
cmp cl, 0xff
jae 0x4f1da5
xor edi, edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
push esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esp + 0x28]
mov ebp, eax
push dword [esp + 0x40]
mov dword [esp + 0x28], ebp
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebp
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
movups xmm0, xmmword [esp + 0x2c]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x40], eax
movups xmmword [esp + 0x70], xmm0
jmp 0x4f1da9
mov edi, dword [esp + 0x30]
mov eax, dword [0x7ff25c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4f1e87
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x70], eax
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [esp + 0xa4]
shl ax, 8
mov word [esp + 0x78], ax
mov eax, edx
and eax, 0xff00
mov dword [esp + 0x74], edi
mov word [esp + 0x7a], ax
movzx eax, dl
mov edx, 0xff00
shl ax, 8
mov word [esp + 0x7c], ax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x84], eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl ax, 8
mov word [esp + 0x88], ax
mov eax, ecx
and eax, edx
mov word [esp + 0x7e], dx
mov word [esp + 0x8a], ax
movzx eax, cl
shl ax, 8
mov word [esp + 0x8c], ax
movzx eax, byte [esp + 0xa8]
push eax
push 1
lea eax, [esp + 0x34]
mov word [esp + 0x96], dx
push eax
push 2
lea eax, [esp + 0x80]
mov dword [esp + 0x3c], 0
push eax
push ebp
mov dword [esp + 0x48], 1
call dword [esp + 0x30]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4f2045
mov eax, dword [esp + 0xac]
cmp eax, 0x40
jl 0x4f1e9d
mov ebp, 6
lea eax, [ebp + 0x3a]
jmp 0x4f1ee1
cmp eax, 0x20
jl 0x4f1eac
mov ebp, 5
lea eax, [ebp + 0x1b]
jmp 0x4f1ee1
cmp eax, 0x10
jl 0x4f1ebb
mov ebp, 4
lea eax, [ebp + 0xc]
jmp 0x4f1ee1
cmp eax, 8
jl 0x4f1eca
mov ebp, 3
lea eax, [ebp + 5]
jmp 0x4f1ee1
cmp eax, 4
jl 0x4f1ed9
mov ebp, 2
lea eax, [ebp + 2]
jmp 0x4f1ee1
mov eax, 2
lea ebp, [eax - 1]
mov ecx, dword [esp + 0xa4]
xor ebx, ebx
movzx esi, cx
shr esi, 8
mov dword [esp + 0x4c], esi
movzx esi, dx
shr esi, 8
mov dword [esp + 0x50], esi
movzx esi, cl
shr ecx, 0x10
movzx edi, dl
movzx ecx, cl
shr edx, 0x10
mov dword [esp + 0x54], ecx
movzx ecx, dl
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x58], ecx
mov edi, eax
mov edx, esi
mov eax, dword [esp + 0x48]
sub edi, ebx
imul edx, edi
mov ecx, ebp
imul eax, ebx
add edx, eax
mov eax, dword [esp + 0x50]
sar edx, cl
movzx esi, dl
mov edx, dword [esp + 0x4c]
imul edx, edi
imul eax, ebx
shl esi, 8
add edx, eax
sar edx, cl
movzx eax, dl
mov edx, dword [esp + 0x54]
or esi, eax
mov eax, dword [esp + 0x58]
imul edx, edi
imul eax, ebx
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 [esp + 0xa8], 0
lea ecx, [ebx + 1]
movups xmm0, xmmword [esp + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
movups xmmword [esp + 0x60], xmm0
mov dword [esp + 0x18], ecx
je 0x4f1fdf
mov edi, dword [eax + 0xc]
mov ecx, ebp
mov esi, edi
mov edx, edi
sub esi, dword [eax + 4]
mov eax, esi
imul eax, ebx
mov ebx, dword [esp + 0x18]
imul esi, ebx
sar eax, cl
sub edx, eax
sar esi, cl
sub edi, esi
mov dword [esp + 0x6c], edx
mov esi, dword [esp + 0x10]
sub edx, edi
mov dword [esp + 0x64], edi
test edx, edx
jle 0x4f2020
push esi
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x4f2020
mov edi, dword [eax + 8]
mov esi, edi
sub esi, dword [eax]
mov edx, edi
mov eax, esi
imul esi, ebx
imul eax, ecx
mov ecx, ebp
sar esi, cl
sub edi, esi
sar eax, cl
mov esi, dword [esp + 0x10]
sub edx, eax
mov dword [esp + 0x68], edi
sub edi, edx
mov dword [esp + 0x60], edx
test edi, edi
jle 0x4f201c
push esi
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_FillRect]
mov ebx, dword [esp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call edi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
cmp ebx, eax
jl 0x4f1f24
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x5c]
cmp al, 0xff
jae 0x4f2096
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x3c]
mov word [esp + 0x10], 0
mov byte [esp + 0x13], 1
push dword [esp + 0x10]
push ecx
push eax
push 0
push 0
push ebp
push ecx
push eax
push dword [ebx + 4]
push dword [ebx]
push esi
call dword [0x7ff254]
push dword [esp + 0x40]
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x44]
call edi
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006def69
add esp, 0x84
ret
push 0x7ff258
call fcn.006def05
add esp, 4
cmp dword [0x7ff258], 0xffffffff
jne 0x4f1cda
push str.AlphaBlend
push 0x72711c
call edi
push eax
call esi
push 0x7ff258
mov dword [0x7ff254], eax
call fcn.006deeb4
add esp, 4
jmp 0x4f1cda
push 0x7ff260
call fcn.006def05
add esp, 4
cmp dword [0x7ff260], 0xffffffff
jne 0x4f1ceb
push str.GradientFill
push 0x72711c
call edi
push eax
call esi
push 0x7ff260
mov dword [0x7ff25c], eax
call fcn.006deeb4
add esp, 4
jmp 0x4f1ceb