Function at 0xf0178d0
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 [0xf09bf38]
push edi
je 0xf017b49
dec ecx
je 0xf017b13
dec ecx
je 0xf017a7d
dec ecx
je 0xf017a6d
dec ecx
je 0xf0179b4
dec ecx
je 0xf01792a
push 0x1e7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf017b55
test esi, esi
je 0xf017b05
mov edi, dword [ebp + 0x10]
cmp word [esi + 8], 0xfffe
jne 0xf017948
cmp dword [esi], eax
jne 0xf017948
mov ecx, dword [esi + 4]
cmp ecx, dword [edi]
je 0xf01794f
mov esi, dword [esi + 0x10]
test esi, esi
jne 0xf017935
test esi, esi
je 0xf017b05
push dword [esi]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
test eax, eax
jl 0xf017b44
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 [0xf09bf34]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jl 0xf017b05
or word [esi + 8], 0xffff
jmp 0xf017b44
test esi, esi
je 0xf017b05
mov ecx, dword [ebp + 0x10]
cmp word [esi + 8], 0xffff
jne 0xf0179da
mov edx, dword [ecx]
mov edi, dword [esi]
add edx, eax
cmp edi, edx
ja 0xf0179da
mov ebx, dword [esi + 4]
add ebx, edi
cmp ebx, edx
jae 0xf0179e1
mov esi, dword [esi + 0x10]
test esi, esi
jne 0xf0179bf
test esi, esi
je 0xf017b05
push 0xfffe
push dword [ecx]
push eax
push esi
call fcn.0f03d12a
mov esi, eax
test esi, esi
je 0xf017923
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 [0xf09bf34]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jl 0xf017b05
mov word [esi + 8], 0xfffe
jmp 0xf017b44
cmp word [esi + 8], 0xffff
jne 0xf017a6a
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 0xf017a76
mov word [esi + 8], 0xfffd
mov esi, dword [esi + 0x10]
test esi, esi
jne 0xf017a42
jmp 0xf017b44
push 0xe
jmp 0xf01791d
test esi, esi
je 0xf017a76
mov ebx, dword [ebp + 0x10]
cmp word [esi + 8], 0xffff
jne 0xf017aa7
mov edx, dword [esi + 4]
mov edi, dword [ebx]
cmp edx, edi
jb 0xf017aa7
test eax, eax
je 0xf017aae
mov ecx, dword [esi]
cmp eax, ecx
jb 0xf017aa7
add edx, ecx
add edi, eax
cmp edi, edx
jbe 0xf017aae
mov esi, dword [esi + 0x10]
test esi, esi
jne 0xf017a84
xor edi, edi
cmp esi, edi
je 0xf017a76
cmp eax, edi
jne 0xf017aba
mov eax, dword [esi]
push 0xfffc
push dword [ebx]
push eax
push esi
call fcn.0f03d12a
mov esi, eax
cmp esi, edi
je 0xf017923
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 [0xf09bf34]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf017b0c
push 5
jmp 0xf01791d
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
jmp 0xf017b42
test esi, esi
je 0xf017923
cmp word [esi + 8], 0xfffd
je 0xf017b2a
mov esi, dword [esi + 0x10]
test esi, esi
jne 0xf017b1b
test esi, esi
je 0xf017923
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 0xf017b55
mov ecx, dword [ebp + 0x10]
push esi
push dword [ecx]
push eax
call fcn.0f03d27f
pop edi
pop esi
pop ebx
leave
ret 0xc