Function at 0x4035f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x49c00c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x138], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x130], eax
push 0x40
push 0
lea ecx, [ebp - 0x188]
push ecx
call fcn.0042b580
add esp, 0xc
push 0
push 0x40
lea edx, [ebp - 0x188]
push edx
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x40368c
cmp dword [ebp - 0x138], 0
je 0x403681
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x1c0], edx
mov eax, dword [ebp - 0x1c0]
push eax
call fcn.004298cb
add esp, 4
mov dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x124]
jmp 0x403cf9
push 0xf8
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.0042b580
add esp, 0xc
push 0
push 0xf8
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x130]
add eax, dword [ebp - 0x14c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4036cd
jmp 0x403653
movzx edx, word [ebp - 0xf0]
cmp edx, 0x10b
je 0x4036e9
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x403653
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x110], 0
movzx eax, word [ebp - 0xf4]
mov ecx, dword [ebp - 0x14c]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x114], 0
jmp 0x403733
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
movzx ecx, word [ebp - 0x102]
cmp dword [ebp - 0x114], ecx
jae 0x4037f4
push 0x28
push 0
lea edx, [ebp - 0x1b4]
push edx
call fcn.0042b580
add esp, 0xc
push 0
push 0x28
lea eax, [ebp - 0x1b4]
push eax
mov ecx, dword [ebp - 0x130]
add ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x114]
imul edx, edx, 0x28
add ecx, edx
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x40378f
jmp 0x403653
cmp dword [ebp - 0x30], 0
jne 0x4037c9
mov ecx, dword [ebp - 0x88]
cmp ecx, dword [ebp - 0x1a8]
jb 0x4037c9
mov edx, dword [ebp - 0x1a8]
add edx, dword [ebp - 0x1a4]
cmp dword [ebp - 0x88], edx
jae 0x4037c9
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x1a0]
add edx, dword [ebp - 0x1a4]
cmp dword [ebp - 0x110], edx
jae 0x4037ef
mov eax, dword [ebp - 0x1a0]
add eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x110], eax
jmp 0x403724
mov ecx, dword [ebp + 0x14]
imul ecx, ecx, 0x14
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x13c]
lea ecx, [eax + edx + 0x14]
push ecx
call fcn.00403e30
add esp, 4
mov dword [ebp - 0x148], eax
mov edx, dword [ebp + 0x14]
shl edx, 4
add edx, dword [ebp - 0x148]
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10c], 0
jmp 0x403861
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp + 0x14]
jae 0x403895
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
push eax
call fcn.004343f0
add esp, 4
add eax, 1
push eax
call fcn.00403e20
add esp, 4
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
jmp 0x403852
mov ecx, dword [ebp - 8]
push ecx
call fcn.00429e1d
add esp, 4
mov dword [ebp - 0x1c4], eax
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0
jne 0x4038c1
jmp 0x403653
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.0042b580
add esp, 0xc
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
add eax, dword [ebp - 0xdc]
add eax, dword [ebp - 0xec]
add eax, dword [ebp - 0xe8]
add eax, dword [ebp - 0xe4]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x134]
cmp ecx, dword [ebp - 0x144]
jae 0x403920
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00403d10
add esp, 0xc
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x40394b
jmp 0x403653
mov eax, dword [ebp - 0x128]
sub eax, dword [ebp - 0x130]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x11c], 0
cmp dword [ebp - 0x88], 0
je 0x4039a6
push 0
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x138]
add edx, dword [ebp - 0x13c]
push edx
mov eax, dword [ebp - 0x130]
add eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4039a6
jmp 0x403653
mov edx, dword [ebp - 0x138]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10c], 0
jmp 0x4039ca
mov eax, dword [ebp - 0x10c]
add eax, 1
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
cmp ecx, dword [ebp + 0x14]
jae 0x403b82
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x138]
add eax, dword [ebp - 0x12c]
push eax
call fcn.00401000
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jge 0x403a16
jmp 0x403653
push 0x47d14c
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x138]
add edx, dword [ebp - 0x12c]
push edx
call fcn.00403e40
add esp, 0xc
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jge 0x403a4e
jmp 0x403653
mov eax, dword [ebp - 0x10c]
shl eax, 2
mov ecx, dword [ebp - 0x148]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x1b8], edx
mov eax, dword [ebp - 0x18c]
add eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x10c]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0x138]
add eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
mov dword [ecx], SysStringLen
mov edx, dword [ebp - 0x118]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x10c]
shl eax, 2
mov ecx, dword [ebp - 0x148]
lea edx, [ecx + eax*4 + 8]
mov dword [ebp - 0x1b8], edx
mov eax, dword [ebp - 0x18c]
add eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x10c]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], eax
mov eax, dword [ebp - 0x138]
add eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
mov dword [ecx], SysStringLen
mov edx, dword [ebp - 0x118]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x10c]
imul eax, eax, 0x14
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 4], 0
mov edx, dword [ebp - 0x10c]
imul edx, edx, 0x14
mov eax, dword [ebp - 4]
mov dword [eax + edx + 8], 0
mov ecx, dword [ebp - 0x18c]
add ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x10c]
imul edx, edx, 0x14
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0xc], ecx
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
push eax
call fcn.004343f0
add esp, 4
add eax, 1
push eax
call fcn.00403e20
add esp, 4
add eax, dword [ebp - 0x12c]
mov dword [ebp - 0x12c], eax
jmp 0x4039bb
mov dword [ebp - 0x114], 0
jmp 0x403b9d
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp - 0x84]
xor edx, edx
mov ecx, 0x14
div ecx
add eax, dword [ebp + 0x14]
cmp dword [ebp - 0x114], eax
jae 0x403be0
mov edx, dword [ebp - 0x114]
imul edx, edx, 0x14
mov eax, dword [ebp - 4]
cmp dword [eax + edx], 0
jne 0x403bde
mov ecx, dword [ebp - 0x114]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0x10], 0
jne 0x403bde
jmp 0x403be0
jmp 0x403b8e
push 0
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x128]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x403c0a
jmp 0x403653
cmp dword [ebp - 0x30], 0
jne 0x403c1f
mov ecx, dword [ebp - 0x18c]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x84], ecx
lea edx, [ebp - 0x11c]
push edx
push 0x40
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x403c5e
jmp 0x403653
mov dword [ebp - 0xb0], 0
push 0
push 0x40
lea eax, [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x403c8d
jmp 0x403653
push 0
push 0xf8
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x130]
add ecx, dword [ebp - 0x14c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x403cbb
jmp 0x403653
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x403cea
jmp 0x403653
mov dword [ebp - 0x124], 1
jmp 0x403653
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004298d0
mov esp, ebp
pop ebp
ret