Function at 0x1001d87c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [0x10041b26], eax
mov eax, 0x10040d33
test eax, eax
je 0x1001d8b7
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1002a8a8
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x10041b32]
test ebx, ebx
je 0x1001d8cb
push ebx
call fcn.1002a8a2
add esp, 4
pop eax
mov dword [0x10041b32], eax
push 0x80000005
push 0
mov eax, dword [0x10041b32]
test eax, eax
jne 0x1001d8e6
mov eax, 0x1004026a
push eax
push 1
mov ebx, 0x194
call fcn.1002b6c0
add esp, 0x10
mov dword [0x10041b36], eax
push 0x80000301
push 0
push 0x64
push 1
mov ebx, 0x1bc
call fcn.1002aca0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [0x10041b3a]
test ebx, ebx
je 0x1001d936
push ebx
call fcn.1002a8a2
add esp, 4
pop eax
mov dword [0x10041b3a], eax
mov eax, 0x10040b31
test eax, eax
je 0x1001d958
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1002a8a8
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001d969
push ebx
call fcn.1002a8a2
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, 0x10040b31
test eax, eax
je 0x1001d989
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1002a8a8
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001d99a
push ebx
call fcn.1002a8a2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x10040d41
push dword [ebp - 4]
mov ecx, 2
call fcn.10014e3a
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001d9ca
push ebx
call fcn.1002a8a2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x1001dc98
call fcn.10003333
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x9dc
call fcn.1002b730
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.1002b9b0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x10040b44
push dword [ebp - 0x14]
push 0x10040b4e
push dword [ebp - 4]
mov ecx, 4
call fcn.10014e3a
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1001da3f
push ebx
call fcn.1002a8a2
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001da53
push ebx
call fcn.1002a8a2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x10040b57
push dword [ebp - 4]
mov ecx, 2
call fcn.10014e3a
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001da83
push ebx
call fcn.1002a8a2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x10041b32]
push dword [ebp - 4]
mov ecx, 2
call fcn.10014e3a
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001dab4
push ebx
call fcn.1002a8a2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x10041b36]
push dword [0x10041b26]
call fcn.100017c3
mov dword [ebp - 0xc], eax
push 0x10041b3a
call fcn.1000330e
mov dword [ebp - 0x10], eax
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1001daec
mov eax, 0x1004026a
push eax
push 1
mov ebx, 0x194
call fcn.1002b6c0
add esp, 0x10
push eax
push dword [ebp - 0x10]
call fcn.100017c3
push eax
push dword [ebp - 0xc]
call fcn.10003708
mov dword [ebp - 0x1c], eax
push 5
push dword [ebp - 0x1c]
call fcn.10003708
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x9dc
call fcn.1002b730
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.1002b9b0
add esp, 0x10
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push 0x10040b6e
push dword [ebp - 4]
mov ecx, 3
call fcn.10014e3a
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x1001db83
push ebx
call fcn.1002a8a2
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001db97
push ebx
call fcn.1002a8a2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x10041b3a
call fcn.1000330e
mov dword [ebp - 0xc], eax
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1001dbbb
mov eax, 0x1004026a
push eax
push 1
mov ebx, 0x194
call fcn.1002b6c0
add esp, 0x10
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.100033fa
push 0x10041b3a
call fcn.1000330e
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1001dc1f
push 6
call fcn.1002a8b4
add esp, 4
push 0x10041b3a
call fcn.1000330e
mov dword [0x10041b2e], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push dword [0x10041b2e]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1001dc61
push 6
call fcn.1002a8b4
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001dc71
push ebx
call fcn.1002a8a2
add esp, 4
mov esp, ebp
pop ebp
ret 4