Function at 0x401d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x16c], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x170], eax
push 0x40
push 0
lea ecx, [ebp - 0x164]
push ecx
call fcn.0042a420
add esp, 0xc
push 0
push 0x40
lea edx, [ebp - 0x164]
push edx
mov eax, dword [ebp - 0x170]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x401e0c
cmp dword [ebp - 0x16c], 0
je 0x401e01
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x1bc], edx
mov eax, dword [ebp - 0x1bc]
push eax
call fcn.0042a4b0
add esp, 4
mov dword [ebp - 0x16c], 0
mov eax, dword [ebp - 0x1b0]
jmp 0x40256f
push 0xf8
push 0
lea ecx, [ebp - 0x124]
push ecx
call fcn.0042a420
add esp, 0xc
push 0
push 0xf8
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x170]
add eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x401e4d
jmp 0x401dd3
movzx edx, word [ebp - 0x10c]
cmp edx, 0x10b
je 0x401e69
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x401dd3
mov eax, 8
imul eax, eax, 0xb
mov dword [ebp + eax - 0xac], 0
mov ecx, 8
imul ecx, ecx, 0xb
mov dword [ebp + ecx - 0xa8], 0
mov dword [ebp - 0x1a8], 0
movzx edx, word [ebp - 0x110]
mov eax, dword [ebp - 0x128]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x174], 0
jmp 0x401ecb
mov edx, dword [ebp - 0x174]
add edx, 1
mov dword [ebp - 0x174], edx
movzx eax, word [ebp - 0x11e]
cmp dword [ebp - 0x174], eax
jae 0x401fa1
push 0x28
push 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0042a420
add esp, 0xc
push 0
push 0x28
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x170]
add eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x174]
imul ecx, ecx, 0x28
add eax, ecx
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x401f21
jmp 0x401dd3
mov eax, 8
imul eax, eax, 0xc
cmp dword [ebp + eax - 0xac], 0
jne 0x401f82
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp + ecx - 0xac]
cmp edx, dword [ebp - 0x20]
jb 0x401f82
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1c]
cmp dword [ebp + eax - 0xac], ecx
jae 0x401f82
mov edx, 8
imul edx, edx, 0xc
mov eax, dword [ebp - 0x20]
mov dword [ebp + edx - 0xac], eax
mov ecx, 8
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [ebp + ecx - 0xa8], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x1a8], eax
jae 0x401f9c
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x1a8], ecx
jmp 0x401ebc
mov edx, 8
shl edx, 0
mov eax, dword [ebp + edx - 0xa8]
xor edx, edx
mov ecx, 0x14
div ecx
mov dword [ebp - 0x1a4], eax
mov edx, dword [ebp + 0x14]
imul edx, edx, 0x14
mov dword [ebp - 0x1ac], edx
mov eax, dword [ebp - 0x1a4]
imul eax, eax, 0x14
add eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1c0]
push ecx
call fcn.00401c80
add esp, 4
mov dword [ebp - 0x1a0], eax
mov edx, dword [ebp + 0x14]
shl edx, 4
add edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x1c8], edx
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x168], 0
jmp 0x40203a
mov edx, dword [ebp - 0x168]
add edx, 1
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x168]
cmp eax, dword [ebp + 0x14]
jae 0x402074
mov ecx, dword [ebp - 0x168]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00429fa0
add esp, 4
add eax, 1
push eax
call fcn.00401c70
add esp, 4
add eax, dword [ebp - 0x17c]
mov dword [ebp - 0x17c], eax
jmp 0x40202b
mov ecx, dword [ebp - 0x17c]
push ecx
call fcn.0042a681
add esp, 4
mov dword [ebp - 0x1c4], eax
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x16c], edx
cmp dword [ebp - 0x16c], 0
jne 0x4020a3
jmp 0x401dd3
mov eax, dword [ebp - 0x17c]
push eax
push 0
mov ecx, dword [ebp - 0x16c]
push ecx
call fcn.0042a420
add esp, 0xc
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x190], edx
mov eax, dword [ebp - 0x190]
add eax, dword [ebp - 0xf8]
add eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x104]
add eax, dword [ebp - 0x100]
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x190]
cmp ecx, dword [ebp - 0x1b4]
jae 0x402105
mov edx, dword [ebp - 0x1b4]
mov dword [ebp - 0x190], edx
mov eax, dword [ebp - 0x17c]
push eax
mov ecx, dword [ebp - 0x190]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401b60
add esp, 0xc
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x194], 0
jne 0x402133
jmp 0x401dd3
mov eax, dword [ebp - 0x194]
sub eax, dword [ebp - 0x170]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x198], 0
mov ecx, 8
shl ecx, 0
cmp dword [ebp + ecx - 0xac], 0
je 0x4021a9
push 0
mov edx, 8
shl edx, 0
mov eax, dword [ebp + edx - 0xa8]
push eax
mov ecx, dword [ebp - 0x16c]
add ecx, dword [ebp - 0x1ac]
push ecx
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x170]
add eax, dword [ebp + edx - 0xac]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4021a9
jmp 0x401dd3
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x168], 0
jmp 0x4021d0
mov eax, dword [ebp - 0x168]
add eax, 1
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
cmp ecx, dword [ebp + 0x14]
jae 0x4023bf
mov edx, dword [ebp - 0x168]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 0x17c]
sub edx, dword [ebp - 0x178]
push edx
mov eax, dword [ebp - 0x16c]
add eax, dword [ebp - 0x178]
push eax
call fcn.004010d0
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
jge 0x40221f
jmp 0x401dd3
push 0x44ebc8
mov ecx, dword [ebp - 0x17c]
sub ecx, dword [ebp - 0x178]
push ecx
mov edx, dword [ebp - 0x16c]
add edx, dword [ebp - 0x178]
push edx
call fcn.00401c90
add esp, 0xc
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
jge 0x40225a
jmp 0x401dd3
mov eax, dword [ebp - 0x168]
shl eax, 2
mov ecx, dword [ebp - 0x1a0]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x184], edx
mov eax, dword [ebp - 0x18c]
add eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x168]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x180]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0x16c]
add eax, dword [ebp - 0x184]
mov dword [ebp - 0x188], eax
mov ecx, 4
imul ecx, ecx, 0
mov edx, dword [ebp - 0x188]
mov dword [edx + ecx], SysStringLen
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 0x188]
mov dword [ecx + eax], 0
mov edx, dword [ebp - 0x168]
shl edx, 2
mov eax, dword [ebp - 0x1a0]
lea ecx, [eax + edx*4 + 8]
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 0x18c]
add edx, dword [ebp - 0x184]
mov eax, dword [ebp - 0x168]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x180]
mov dword [ecx + eax + 0x10], edx
mov edx, dword [ebp - 0x16c]
add edx, dword [ebp - 0x184]
mov dword [ebp - 0x188], edx
mov eax, 4
imul eax, eax, 0
mov ecx, dword [ebp - 0x188]
mov dword [ecx + eax], SysStringLen
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 0x188]
mov dword [eax + edx], 0
mov ecx, dword [ebp - 0x168]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x180]
mov dword [edx + ecx + 4], 0
mov eax, dword [ebp - 0x168]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x180]
mov dword [ecx + eax + 8], 0
mov edx, dword [ebp - 0x18c]
add edx, dword [ebp - 0x178]
mov eax, dword [ebp - 0x168]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x180]
mov dword [ecx + eax + 0xc], edx
mov edx, dword [ebp - 0x168]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00429fa0
add esp, 4
add eax, 1
push eax
call fcn.00401c70
add esp, 4
add eax, dword [ebp - 0x178]
mov dword [ebp - 0x178], eax
jmp 0x4021c1
mov dword [ebp - 0x174], 0
jmp 0x4023da
mov edx, dword [ebp - 0x174]
add edx, 1
mov dword [ebp - 0x174], edx
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x1a4]
cmp dword [ebp - 0x174], eax
jae 0x40241a
mov ecx, dword [ebp - 0x174]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x180]
cmp dword [edx + ecx], 0
jne 0x402418
mov eax, dword [ebp - 0x174]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x180]
cmp dword [ecx + eax + 0x10], 0
jne 0x402418
jmp 0x40241a
jmp 0x4023cb
push 0
mov edx, dword [ebp - 0x178]
push edx
mov eax, dword [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x194]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x402444
jmp 0x401dd3
mov eax, 8
imul eax, eax, 0xc
cmp dword [ebp + eax - 0xac], 0
jne 0x402480
mov ecx, 8
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0x18c]
mov dword [ebp + ecx - 0xac], edx
mov eax, 8
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x17c]
mov dword [ebp + eax - 0xa8], ecx
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x18c]
mov dword [ebp + edx - 0xac], eax
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 0x17c]
mov dword [ebp + ecx - 0xa8], edx
lea eax, [ebp - 0x198]
push eax
push 0x40
mov ecx, dword [ebp - 0xd0]
push ecx
mov edx, dword [ebp - 0x170]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x4024d4
jmp 0x401dd3
mov dword [ebp - 0xcc], 0
push 0
push 0x40
lea ecx, [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0x170]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x402503
jmp 0x401dd3
push 0
push 0xf8
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x170]
add edx, dword [ebp - 0x128]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x402531
jmp 0x401dd3
lea ecx, [ebp - 0x198]
push ecx
mov edx, dword [ebp - 0x198]
push edx
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0x170]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x402560
jmp 0x401dd3
mov dword [ebp - 0x1b0], 1
jmp 0x401dd3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a402
mov esp, ebp
pop ebp
ret