Function at 0x1000b650
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10026218]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp byte [ebp + 0xc], 0
push edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x2c]
je 0x1000b68b
push 4
push 0x1001fbcc
jmp 0x1000b692
push 3
push 0x1001fbd0
call fcn.1000b230
cmp byte [ebp + 8], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 1
jne 0x1000b6aa
mov dword [ebp - 0x18], esi
cmp dword [ebp + 0x10], esi
je 0x1000b74e
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
push ebx
lea ebx, [ebx]
mov dl, byte [ebp + 0x10]
mov cl, byte [0x1001fbd6]
mov ax, word [0x1001fbd4]
inc dl
add dl, dl
add dl, dl
mov ebx, esi
add esi, 3
mov byte [ebp - 6], cl
mov word [ebp - 8], ax
mov byte [ebp - 6], dl
test edi, edi
jne 0x1000b6fe
push 0x200
mov dword [ebp - 0x14], 0x200
call fcn.1000fb22
add esp, 4
jmp 0x1000b716
cmp esi, dword [ebp - 0x14]
jle 0x1000b718
lea eax, [esi + 0x200]
push eax
push edi
mov dword [ebp - 0x14], eax
call fcn.1000fa75
add esp, 8
mov edi, eax
lea eax, [ebx + edi]
cmp ebx, esi
jge 0x1000b731
mov ecx, esi
sub ecx, ebx
push ecx
lea edx, [ebp - 8]
push edx
push eax
call fcn.1000f330
add esp, 0xc
mov eax, 4
add dword [ebp - 0x20], eax
add dword [ebp - 0x24], eax
dec dword [ebp + 0x10]
jne 0x1000b6c0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], edi
xor esi, esi
pop ebx
cmp byte [ebp + 8], 0
je 0x1000b76f
cmp dword [ebp - 0x18], esi
je 0x1000b76f
push 1
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0xd], 0x51
call fcn.1000b230
add dword [ebp - 0x20], 4
mov ecx, dword [0x1001fbd8]
mov dl, byte [0x1001fbdc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 8], dl
mov ecx, eax
mov edx, eax
mov byte [ebp - 0xb], al
shr eax, 0x18
shr ecx, 8
mov byte [ebp - 8], al
push 5
lea eax, [ebp - 0xc]
mov byte [ebp - 0xa], cl
shr edx, 0x10
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 9], dl
call fcn.1000b230
movzx edx, word [0x1001fbe4]
mov al, byte [0x1001fbe6]
mov ecx, dword [0x1001fbe0]
add dword [ebp - 0x20], 4
mov dword [ebp - 0xc], ecx
mov byte [ebp - 6], al
mov eax, dword [ebp + 0x18]
mov word [ebp - 8], dx
mov ecx, eax
mov edx, eax
mov byte [ebp - 0xb], al
shr eax, 0x18
shr ecx, 8
mov byte [ebp - 8], al
push 7
lea eax, [ebp - 0xc]
mov byte [ebp - 0xa], cl
shr edx, 0x10
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 9], dl
call fcn.1000b230
movzx edx, word [0x1001fbec]
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x1001fbe8]
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
mov ecx, eax
mov edx, eax
mov byte [ebp - 0xa], al
shr eax, 0x18
shr ecx, 8
mov byte [ebp - 7], al
push 6
lea eax, [ebp - 0xc]
mov byte [ebp - 9], cl
shr edx, 0x10
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 8], dl
call fcn.1000b230
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp - 0x24]
je 0x1000b86e
mov ecx, dword [0x1001fbfc]
mov dl, byte [0x1001fc00]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 9], al
shr eax, 8
mov byte [ebp - 8], dl
mov byte [ebp - 8], al
push 5
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000b230
push 5
push 0x1001fbfc
jmp 0x1000b886
mov ecx, dword [0x1001fbf4]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0xa], al
shr eax, 8
push 4
lea edx, [ebp - 0xc]
mov byte [ebp - 9], al
push edx
lea ecx, [ebp - 0x2c]
call fcn.1000b230
mov edi, dword [ebp - 0x28]
push 0x40
push 0x1000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov edi, dword [ebp - 0x2c]
mov esi, eax
push edi
push esi
call fcn.1000f330
push edi
call fcn.1000fbb6
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1000f23a
mov esp, ebp
pop ebp
ret