Function at 0x10001cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
jne 0x10001cf1
lea eax, [ebx + 0x57]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10013b78], eax
je 0x10001d0d
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x10013b7c]
cmp eax, ebx
jne 0x10001f61
mov ecx, dword [ebp + 8]
cmp ecx, ebx
jne 0x10001d2f
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ecx]
cmp eax, ebx
jne 0x10001d4e
mov eax, 6
mov dword [0x10013b7c], eax
mov dword [0x10013b80], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
call fcn.10001100
mov esi, eax
mov eax, edi
call fcn.10001100
mov dword [ebp + 0xc], eax
cmp eax, esi
jne 0x10001d7c
cmp dword [0x10013b70], ebx
jne 0x10001f56
jmp 0x10001f32
push 0x18
call fcn.10005414
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10001d96
lea ebx, [eax + 8]
jmp 0x10001f32
mov eax, esi
call fcn.10001660
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10001dad
lea ebx, [eax + 8]
jmp 0x10001f32
xor ecx, ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov ebx, eax
add eax, 0x1e
mov edi, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
jmp 0x10001dca
mov ebx, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x24]
mov ecx, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0
call fcn.10002040
mov edi, eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x24]
add eax, edi
add ebx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
mov cl, byte [esp + 0x18]
sub cl, al
add cl, cl
add cl, cl
mov ebx, edi
sub ebx, esi
lea edx, [ecx + ecx]
mov cl, bl
and cl, 7
xor dl, cl
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx + 0x38], dl
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 8
jae 0x10001e3a
mov ecx, dword [esp + 0x24]
call fcn.10001200
test eax, eax
jne 0x10001e36
cmp ebx, 5
jb 0x10001dc6
jmp 0x10001e61
mov eax, dword [esp + 0x10]
cmp ebx, 5
jae 0x10001e65
nop
mov eax, edi
call fcn.10001260
test eax, eax
je 0x10001e58
add edi, eax
mov ebx, edi
sub ebx, esi
cmp ebx, 5
jb 0x10001e40
jmp 0x10001e61
cmp ebx, 5
jb 0x10001f24
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], 8
ja 0x10001f24
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
cmp ecx, edi
jbe 0x10001e7d
int3
sub cl, al
push ebx
mov byte [eax + 0x36], bl
add eax, 0x20
push esi
push eax
mov byte [edi], cl
call fcn.1000b180
add esp, 0xc
cmp ebx, 0x19
jbe 0x10001ea1
mov ebx, 6
jmp 0x10001f32
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x44], eax
movzx eax, byte [edi]
add eax, edx
lea ecx, [ebx + esi]
mov dword [edx + 0x40], ecx
lea edx, [eax + 5]
sub ecx, edx
mov byte [eax], 0xe9
mov dword [eax + 1], ecx
lea ecx, [eax + 5]
mov eax, edi
call fcn.100010d0
lea ecx, [esp + 0x28]
push ecx
push 0x40
push ebx
xor edi, edi
push esi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001eee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x10001f32
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x10013b88]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov edx, dword [esp + 0x28]
mov dword [eax + 0x14], edx
mov dword [eax], ecx
mov dword [0x10013b88], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x10013b70], 0
mov ebx, 9
jne 0x10001f38
mov dword [0x10013b7c], ebx
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10001f45
call fcn.10001780
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10001f56
push eax
call fcn.10005409
add esp, 4
mov edx, dword [ebp + 8]
mov dword [0x10013b80], edx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8