Function at 0x42acc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x475080]
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.0041eb30
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 0x42ad5c
cmp dword [ebp - 0x138], 0
je 0x42ad51
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x1c0], edx
mov eax, dword [ebp - 0x1c0]
push eax
call fcn.0041d96f
add esp, 4
mov dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x124]
jmp 0x42b3c9
push 0xf8
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041eb30
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 0x42ad9d
jmp 0x42ad23
movzx edx, word [ebp - 0xf0]
cmp edx, 0x10b
je 0x42adb9
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42ad23
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 0x42ae03
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
movzx ecx, word [ebp - 0x102]
cmp dword [ebp - 0x114], ecx
jae 0x42aec4
push 0x28
push 0
lea edx, [ebp - 0x1b4]
push edx
call fcn.0041eb30
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 0x42ae5f
jmp 0x42ad23
cmp dword [ebp - 0x30], 0
jne 0x42ae99
mov ecx, dword [ebp - 0x88]
cmp ecx, dword [ebp - 0x1a8]
jb 0x42ae99
mov edx, dword [ebp - 0x1a8]
add edx, dword [ebp - 0x1a4]
cmp dword [ebp - 0x88], edx
jae 0x42ae99
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 0x42aebf
mov eax, dword [ebp - 0x1a0]
add eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x110], eax
jmp 0x42adf4
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.0042b500
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 0x42af31
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp + 0x14]
jae 0x42af65
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
push eax
call fcn.0041f1c0
add esp, 4
add eax, 1
push eax
call fcn.0042b4f0
add esp, 4
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
jmp 0x42af22
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041e086
add esp, 4
mov dword [ebp - 0x1c4], eax
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0
jne 0x42af91
jmp 0x42ad23
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.0041eb30
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 0x42aff0
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.0042b3e0
add esp, 0xc
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x42b01b
jmp 0x42ad23
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 0x42b076
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 0x42b076
jmp 0x42ad23
mov edx, dword [ebp - 0x138]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10c], 0
jmp 0x42b09a
mov eax, dword [ebp - 0x10c]
add eax, 1
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
cmp ecx, dword [ebp + 0x14]
jae 0x42b252
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.004286d0
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jge 0x42b0e6
jmp 0x42ad23
push 0x46078c
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.0042b510
add esp, 0xc
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jge 0x42b11e
jmp 0x42ad23
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], SysReAllocString
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], SysReAllocString
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.0041f1c0
add esp, 4
add eax, 1
push eax
call fcn.0042b4f0
add esp, 4
add eax, dword [ebp - 0x12c]
mov dword [ebp - 0x12c], eax
jmp 0x42b08b
mov dword [ebp - 0x114], 0
jmp 0x42b26d
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 0x42b2b0
mov edx, dword [ebp - 0x114]
imul edx, edx, 0x14
mov eax, dword [ebp - 4]
cmp dword [eax + edx], 0
jne 0x42b2ae
mov ecx, dword [ebp - 0x114]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0x10], 0
jne 0x42b2ae
jmp 0x42b2b0
jmp 0x42b25e
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 0x42b2da
jmp 0x42ad23
cmp dword [ebp - 0x30], 0
jne 0x42b2ef
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 0x42b32e
jmp 0x42ad23
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 0x42b35d
jmp 0x42ad23
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 0x42b38b
jmp 0x42ad23
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 0x42b3ba
jmp 0x42ad23
mov dword [ebp - 0x124], 1
jmp 0x42ad23
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041d97a
mov esp, ebp
pop ebp
ret