Function at 0xf01768a
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
movzx ecx, word [ebp + 8]
mov edx, dword [ebp + 0xc]
and dword [ebp - 4], 0
sub ecx, 0xfffa
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [0xf09ae38]
push edi
je 0xf017903
dec ecx
je 0xf0178cd
dec ecx
je 0xf017837
dec ecx
je 0xf017827
dec ecx
je 0xf01776e
dec ecx
je 0xf0176e4
push 0x1e7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf01790f
test esi, esi
je 0xf0178bf
mov edi, dword [ebp + 0x10]
cmp word [esi + 8], 0xfffe
jne 0xf017702
cmp dword [esi], eax
jne 0xf017702
mov ecx, dword [esi + 4]
cmp ecx, dword [edi]
je 0xf017709
mov esi, dword [esi + 0x10]
test esi, esi
jne 0xf0176ef
test esi, esi
je 0xf0178bf
push dword [esi]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
test eax, eax
jl 0xf0178fe
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [esi]
push 0x40
push 0x40000000
sub ecx, 0xc0000
push 2
mov dword [ebp - 8], ecx
mov ecx, dword [esi + 4]
push edi
mov dword [edi], ecx
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push eax
push 0xffffffffffffffff
push dword [0xf09ae34]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jl 0xf0178bf
or word [esi + 8], 0xffff
jmp 0xf0178fe
test esi, esi
je 0xf0178bf
mov ecx, dword [ebp + 0x10]
cmp word [esi + 8], 0xffff
jne 0xf017794
mov edx, dword [ecx]
mov edi, dword [esi]
add edx, eax
cmp edi, edx
ja 0xf017794
mov ebx, dword [esi + 4]
add ebx, edi
cmp ebx, edx
jae 0xf01779b
mov esi, dword [esi + 0x10]
test esi, esi
jne 0xf017779
test esi, esi
je 0xf0178bf
push 0xfffe
push dword [ecx]
push eax
push esi
call fcn.0f03caae
mov esi, eax
test esi, esi
je 0xf0176dd
mov eax, dword [esi]
push 0x40
push 0x40000000
push 2
sub eax, 0xc0000
mov dword [ebp - 8], eax
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 8]
push ecx
push dword [eax]
push 0
push esi
push 0xffffffffffffffff
push dword [0xf09ae34]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jl 0xf0178bf
mov word [esi + 8], 0xfffe
jmp 0xf0178fe
cmp word [esi + 8], 0xffff
jne 0xf017824
push 0x40
push 0x1000
lea eax, [esi + 4]
push eax
push 0
push esi
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jl 0xf017830
mov word [esi + 8], 0xfffd
mov esi, dword [esi + 0x10]
test esi, esi
jne 0xf0177fc
jmp 0xf0178fe
push 0xe
jmp 0xf0176d7
test esi, esi
je 0xf017830
mov ebx, dword [ebp + 0x10]
cmp word [esi + 8], 0xffff
jne 0xf017861
mov edx, dword [esi + 4]
mov edi, dword [ebx]
cmp edx, edi
jb 0xf017861
test eax, eax
je 0xf017868
mov ecx, dword [esi]
cmp eax, ecx
jb 0xf017861
add edx, ecx
add edi, eax
cmp edi, edx
jbe 0xf017868
mov esi, dword [esi + 0x10]
test esi, esi
jne 0xf01783e
xor edi, edi
cmp esi, edi
je 0xf017830
cmp eax, edi
jne 0xf017874
mov eax, dword [esi]
push 0xfffc
push dword [ebx]
push eax
push esi
call fcn.0f03caae
mov esi, eax
cmp esi, edi
je 0xf0176dd
push 0x40
push 0x40000000
mov dword [ebp - 4], edi
mov eax, dword [esi]
push 2
sub eax, 0xc0000
mov dword [ebp - 8], eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push esi
push 0xffffffffffffffff
push dword [0xf09ae34]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf0178c6
push 5
jmp 0xf0176d7
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
jmp 0xf0178fc
test esi, esi
je 0xf0176dd
cmp word [esi + 8], 0xfffd
je 0xf0178e4
mov esi, dword [esi + 0x10]
test esi, esi
jne 0xf0178d5
test esi, esi
je 0xf0176dd
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
mov word [esi + 8], 0xfffb
mov dword [edx], eax
mov eax, dword [esi + 4]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0xf01790f
mov ecx, dword [ebp + 0x10]
push esi
push dword [ecx]
push eax
call fcn.0f03cc03
pop edi
pop esi
pop ebx
leave
ret 0xc