Function at 0x10001940
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10059248]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
call fcn.10001000
mov edx, dword [ebp - 8]
push edx
call fcn.10001060
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.10001060
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
push 0x50
push 0
lea ecx, [ebp - 0x60]
push ecx
call fcn.1002cf30
add esp, 0xc
lea edx, [ebp - 0x68]
push edx
push 5
mov eax, dword [ebp - 8]
push eax
call fcn.100017a0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jb 0x10001c2a
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.100015a0
add esp, 8
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.100011a0
add esp, 0x14
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x10001c25
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x78], 0
lea edx, [ebp - 0x70]
push edx
push 0x40
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10001bfb
lea eax, [ebp - 0x78]
push eax
push 0x40
push 0x6c
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10001bcf
mov eax, dword [ebp - 0x6c]
add eax, 0x2c
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], 0
jmp 0x10001a74
mov ecx, dword [ebp - 0x84]
add ecx, 1
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
cmp edx, dword [ebp - 4]
jae 0x10001aae
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x84]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x80]
add ecx, dword [ebp - 0x84]
mov dl, byte [ecx]
mov byte [eax + 0x4c], dl
jmp 0x10001a65
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 4]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x80]
push edx
call fcn.100010f0
add esp, 8
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x6c]
add edx, 0x2c
push edx
call fcn.10001790
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jae 0x10001afa
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 0x88], ecx
jmp 0x10001b06
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0x7fff0000
jbe 0x10001b6f
mov ecx, dword [ebp - 0x6c]
add ecx, 0xc
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x80]
push eax
call fcn.100010f0
add esp, 8
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x6c]
add ecx, 0xc
mov edx, dword [ebp - 0x80]
sub edx, ecx
push edx
mov eax, dword [ebp - 0x6c]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x6c]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.100010f0
add esp, 8
mov dword [ebp - 0x80], eax
jmp 0x10001b88
mov edx, dword [ebp - 8]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.100010f0
add esp, 8
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x6c]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea edx, [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x78]
push eax
push 0x6c
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [ebp - 0x6c]
cmp dword [edx], 0
je 0x10001c10
mov eax, dword [ebp - 0x6c]
add eax, 0x2c
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x10001c25
push 1
mov edx, dword [ebp - 0x6c]
push edx
call fcn.10001360
add esp, 8
mov dword [ebp - 0x6c], 0
call fcn.10001500
call fcn.10001050
xor eax, eax
cmp dword [ebp - 0x6c], 0
setne al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1002c620
mov esp, ebp
pop ebp
ret