Function at 0x1006f370
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x14
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
je 0x1006f382
mov dword [eax], ebp
mov ebx, dword [esp + 0x30]
cmp ebx, ebp
je 0x1006f38c
mov dword [ebx], ebp
mov esi, dword [esp + 0x34]
cmp esi, ebp
je 0x1006f396
mov dword [esi], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101052d8], eax
je 0x1006f3b2
pop esi
pop ebp
mov eax, 0x10dd
pop ebx
add esp, 0x14
ret 0x14
mov eax, dword [0x101052dc]
cmp eax, ebp
jne 0x1006f626
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
jne 0x1006f3d5
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x14
ret 0x14
mov eax, dword [ecx]
cmp eax, ebp
jne 0x1006f3f4
pop esi
mov eax, 6
pop ebp
mov dword [0x101052dc], eax
mov dword [0x101052e0], ecx
pop ebx
add esp, 0x14
ret 0x14
push edi
push ebp
push eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x1c], ebp
call fcn.1006eeb0
mov edi, eax
mov eax, dword [esp + 0x2c]
push 0
push eax
call fcn.1006eeb0
cmp eax, edi
mov dword [esp + 0x2c], eax
jne 0x1006f42b
cmp dword [0x101052d0], ebp
jne 0x1006f61a
jmp 0x1006f5e8
test ebx, ebx
je 0x1006f431
mov dword [ebx], edi
test esi, esi
je 0x1006f437
mov dword [esi], eax
push 0x18
call fcn.10070b17
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jne 0x1006f451
lea ebp, [eax + 8]
jmp 0x1006f5e8
mov eax, edi
call fcn.1006ec50
test eax, eax
mov dword [esp + 0x34], eax
jne 0x1006f468
lea ebp, [eax + 8]
jmp 0x1006f5e8
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x1006f472
mov dword [ecx], eax
xor ecx, ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov ebx, eax
add eax, 0x1e
mov esi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
jmp 0x1006f494
mov ebx, dword [esp + 0x38]
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
lea edx, [esp + 0x1c]
push edx
push ebx
mov ebp, esi
mov dword [esp + 0x2c], 0
call fcn.1006f870
mov esi, eax
mov eax, dword [esp + 0x18]
sub eax, ebp
add eax, esi
add ebx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ebx
mov cl, byte [esp + 0x38]
sub cl, al
add cl, cl
mov ebx, esi
sub ebx, edi
add cl, cl
mov dl, bl
add cl, cl
and dl, 7
xor cl, dl
push ebp
mov byte [eax + 0x38], cl
call fcn.1006e9d0
add esp, 4
test eax, eax
jne 0x1006f4f3
cmp ebx, 5
jb 0x1006f490
jmp 0x1006f514
cmp ebx, 5
jae 0x1006f514
cmp byte [esi], 0x90
jne 0x1006f50b
add esi, 1
mov ebx, esi
sub ebx, edi
cmp ebx, 5
jb 0x1006f4f8
jmp 0x1006f514
cmp ebx, 5
jb 0x1006f5da
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x10]
jbe 0x1006f51f
int3
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
sub al, cl
push ebx
mov byte [ecx + 0x36], bl
add ecx, 0x20
push edi
push ecx
mov byte [esi], al
call fcn.10073ad0
add esp, 0xc
cmp ebx, 0x19
jbe 0x1006f54b
mov ebp, 6
jmp 0x1006f5e8
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov dword [edx + 0x44], eax
movzx eax, byte [esi]
add eax, edx
lea ecx, [ebx + edi]
mov dword [edx + 0x40], ecx
lea edx, [eax + 5]
mov byte [eax], 0xe9
add eax, 1
sub ecx, edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
push ecx
add eax, 4
push eax
call fcn.1006e920
add esp, 8
lea edx, [esp + 0x1c]
push edx
push 0x40
push ebx
xor esi, esi
push edi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1006f5a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1006f5e8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov dword [eax + 0xc], edi
pop edi
mov dword [eax + 4], esi
mov dword [eax + 0x10], edx
mov edx, dword [0x101052e8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
mov dword [eax + 0x14], ecx
mov dword [eax], edx
mov dword [0x101052e8], eax
xor eax, eax
pop ebx
add esp, 0x14
ret 0x14
cmp dword [0x101052d0], 0
mov ebp, 9
jne 0x1006f5ee
mov dword [0x101052dc], ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x1006f609
call fcn.1006ede0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1006f609
mov dword [eax], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1006f61a
push eax
call fcn.10070de0
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [0x101052e0], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14