Function at 0x1005faf0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
lea ebp, [esi - 0x7ff80000]
ja 0x1005fb0c
mov ebp, 0x10000
cmp esi, 0x80000000
jae 0x1005fb20
lea edi, [esi + 0x7ff80000]
mov dword [esp + 0x10], edi
jmp 0x1005fb2c
mov dword [esp + 0x10], 0xfff80000
mov edi, dword [esp + 0x10]
mov eax, dword [0x100c2218]
test eax, eax
mov edx, dword [0x100c2214]
jne 0x1005fb46
test edx, edx
je 0x1005fb59
mov eax, edx
mov dword [0x100c2218], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1005fb59
cmp ecx, ebp
jb 0x1005fb59
cmp ecx, edi
jbe 0x1005fccb
test edx, edx
mov eax, edx
mov dword [0x100c2218], eax
je 0x1005fb87
test eax, eax
je 0x1005fb7b
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1005fb7b
cmp ecx, ebp
jb 0x1005fb7b
cmp ecx, edi
jbe 0x1005fcc6
mov eax, dword [eax + 4]
test eax, eax
jne 0x1005fb68
mov dword [0x100c2218], eax
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, ebp
mov edi, esi
jbe 0x1005fbfd
lea esp, [esp]
lea ecx, [edi - 0x70000000]
cmp ecx, 0x10000000
ja 0x1005fbb3
mov edi, 0x6fff0000
push 0x1c
lea edx, [esp + 0x34]
push edx
push edi
call ebx
test eax, eax
je 0x1005fbfd
mov eax, 0x10000
cmp dword [esp + 0x40], eax
jne 0x1005fbd2
cmp dword [esp + 0x3c], eax
jae 0x1005fbe2
mov edi, dword [esp + 0x34]
add edi, 0xffff0000
cmp edi, ebp
ja 0x1005fba0
jmp 0x1005fbfd
push 0x40
push 0x3000
push eax
push edi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
mov dword [0x100c2218], eax
jne 0x1005fc8a
mov edi, dword [esp + 0x10]
cmp esi, edi
jae 0x1005fc80
jmp 0x1005fc10
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x1005fc22
mov esi, 0x80010000
push 0x1c
lea ecx, [esp + 0x18]
push ecx
push esi
call ebx
test eax, eax
je 0x1005fc80
mov edx, 0x10000
cmp dword [esp + 0x24], edx
jne 0x1005fc71
cmp dword [esp + 0x20], edx
jb 0x1005fc71
movzx ecx, si
test ecx, ecx
je 0x1005fc5a
mov esi, dword [esp + 0x14]
mov eax, edx
sub eax, ecx
sub dword [esp + 0x20], eax
add esi, eax
mov dword [esp + 0x14], esi
push 0x40
push 0x3000
push edx
push esi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
mov dword [0x100c2218], eax
jne 0x1005fc8a
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
lea esi, [edx + eax]
cmp esi, edi
jb 0x1005fc10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
xor edx, edx
mov dword [eax], 0x74727463
mov dword [eax + 8], edx
mov ecx, dword [0x100c2214]
mov dword [eax + 4], ecx
mov dword [0x100c2214], eax
lea ecx, [eax + 0xffcc]
mov esi, 0x719
mov edi, edi
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x24
sub esi, 1
jne 0x1005fcb0
mov edi, dword [esp + 0x10]
mov dword [eax + 8], edx
jmp 0x1005fccb
mov dword [0x100c2218], eax
mov ecx, dword [eax + 8]
cmp ecx, ebp
jb 0x1005fc80
cmp ecx, edi
ja 0x1005fc80
mov edx, dword [ecx + 0x18]
mov dword [eax + 8], edx
mov eax, 0xcccccccc
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
pop edi
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
pop esi
mov dword [ecx + 0x1c], eax
pop ebp
mov dword [ecx + 0x20], eax
mov eax, ecx
pop ebx
add esp, 0x3c
ret