Function at 0x4214f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a4], 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.0042bf20
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 0x42158c
cmp dword [ebp - 0x16c], 0
je 0x421581
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x1b8], edx
mov eax, dword [ebp - 0x1b8]
push eax
call fcn.004265f6
add esp, 4
mov dword [ebp - 0x16c], 0
mov eax, dword [ebp - 0x1a4]
jmp 0x421cda
push 0xf8
push 0
lea ecx, [ebp - 0x124]
push ecx
call fcn.0042bf20
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 0x4215cd
jmp 0x421553
movzx edx, word [ebp - 0x10c]
cmp edx, 0x10b
je 0x4215e9
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x421553
mov eax, 8
imul ecx, eax, 0xb
mov dword [ebp + ecx - 0xac], 0
mov edx, 8
imul eax, edx, 0xb
mov dword [ebp + eax - 0xa8], 0
mov dword [ebp - 0x1ac], 0
movzx ecx, word [ebp - 0x110]
mov edx, dword [ebp - 0x128]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x174], 0
jmp 0x42164b
mov ecx, dword [ebp - 0x174]
add ecx, 1
mov dword [ebp - 0x174], ecx
movzx edx, word [ebp - 0x11e]
cmp dword [ebp - 0x174], edx
jae 0x42171f
push 0x28
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.0042bf20
add esp, 0xc
push 0
push 0x28
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x170]
add edx, dword [ebp - 0x1b4]
imul eax, dword [ebp - 0x174], 0x28
add edx, eax
push edx
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x42169f
jmp 0x421553
mov edx, 8
imul eax, edx, 0xc
cmp dword [ebp + eax - 0xac], 0
jne 0x421700
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp + ecx - 0xac]
cmp edx, dword [ebp - 0x20]
jb 0x421700
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1c]
cmp dword [ebp + eax - 0xac], ecx
jae 0x421700
mov edx, 8
imul eax, edx, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [ebp + eax - 0xac], ecx
mov edx, 8
imul eax, edx, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + eax - 0xa8], ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
cmp dword [ebp - 0x1ac], edx
jae 0x42171a
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1ac], eax
jmp 0x42163c
imul ecx, dword [ebp + 0x14], 0x14
mov dword [ebp - 0x1a0], ecx
mov edx, 8
shl edx, 0
mov eax, dword [ebp + edx - 0xa8]
mov ecx, dword [ebp - 0x1a0]
lea edx, [ecx + eax + 0x14]
push edx
call fcn.004213c0
add esp, 4
mov dword [ebp - 0x198], eax
mov eax, dword [ebp + 0x14]
shl eax, 4
add eax, dword [ebp - 0x198]
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp - 0x1b0]
mov dword [ebp - 0x17c], ecx
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x168], 0
jmp 0x421796
mov eax, dword [ebp - 0x168]
add eax, 1
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
cmp ecx, dword [ebp + 0x14]
jae 0x4217d0
mov edx, dword [ebp - 0x168]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0042c340
add esp, 4
add eax, 1
push eax
call fcn.004213b0
add esp, 4
add eax, dword [ebp - 0x178]
mov dword [ebp - 0x178], eax
jmp 0x421787
mov edx, dword [ebp - 0x178]
push edx
call fcn.0042800c
add esp, 4
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jne 0x4217ff
jmp 0x421553
mov ecx, dword [ebp - 0x178]
push ecx
push 0
mov edx, dword [ebp - 0x16c]
push edx
call fcn.0042bf20
add esp, 0xc
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
add ecx, dword [ebp - 0xf8]
add ecx, dword [ebp - 0x108]
add ecx, dword [ebp - 0x104]
add ecx, dword [ebp - 0x100]
mov dword [ebp - 0x1a8], ecx
mov edx, dword [ebp - 0x194]
cmp edx, dword [ebp - 0x1a8]
jae 0x421861
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x178]
push ecx
mov edx, dword [ebp - 0x194]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004212b0
add esp, 0xc
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
jne 0x42188f
jmp 0x421553
mov ecx, dword [ebp - 0x19c]
sub ecx, dword [ebp - 0x170]
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x190], 0
mov edx, 8
shl edx, 0
cmp dword [ebp + edx - 0xac], 0
je 0x42194b
lea eax, [ebp - 0x190]
push eax
push 0x40
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp + ecx - 0xa8]
push edx
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x170]
add ecx, dword [ebp + eax - 0xac]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x421903
jmp 0x421553
push 0
mov eax, 8
shl eax, 0
mov ecx, dword [ebp + eax - 0xa8]
push ecx
mov edx, dword [ebp - 0x16c]
add edx, dword [ebp - 0x1a0]
push edx
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x170]
add ecx, dword [ebp + eax - 0xac]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x42194b
jmp 0x421553
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x168], 0
jmp 0x421972
mov ecx, dword [ebp - 0x168]
add ecx, 1
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x168]
cmp edx, dword [ebp + 0x14]
jae 0x421b1c
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax*4]
push edx
mov eax, dword [ebp - 0x178]
sub eax, dword [ebp - 0x17c]
push eax
mov ecx, dword [ebp - 0x16c]
add ecx, dword [ebp - 0x17c]
push ecx
call fcn.004213d0
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jge 0x4219c1
jmp 0x421553
mov edx, dword [ebp - 0x168]
shl edx, 2
mov eax, dword [ebp - 0x198]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 0x18c]
add edx, dword [ebp - 0x184]
imul eax, dword [ebp - 0x168], 0x14
mov ecx, dword [ebp - 0x180]
mov dword [ecx + eax], edx
mov edx, dword [ebp - 0x16c]
add edx, dword [ebp - 0x184]
mov dword [ebp - 0x188], edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x188]
mov dword [edx + ecx], reloc.WS2_32.dll_accept
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 - 0x198]
lea ecx, [eax + edx*4 + 8]
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 0x18c]
add edx, dword [ebp - 0x184]
imul eax, dword [ebp - 0x168], 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 ecx, eax, 0
mov edx, dword [ebp - 0x188]
mov dword [edx + ecx], reloc.WS2_32.dll_accept
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 0x188]
mov dword [ecx + eax], 0
imul edx, dword [ebp - 0x168], 0x14
mov eax, dword [ebp - 0x180]
mov dword [eax + edx + 4], 0
imul ecx, dword [ebp - 0x168], 0x14
mov edx, dword [ebp - 0x180]
mov dword [edx + ecx + 8], 0
mov eax, dword [ebp - 0x18c]
add eax, dword [ebp - 0x17c]
imul ecx, dword [ebp - 0x168], 0x14
mov edx, dword [ebp - 0x180]
mov dword [edx + ecx + 0xc], eax
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax*4]
push edx
call fcn.0042c340
add esp, 4
add eax, 1
push eax
call fcn.004213b0
add esp, 4
add eax, dword [ebp - 0x17c]
mov dword [ebp - 0x17c], eax
jmp 0x421963
mov dword [ebp - 0x174], 0
jmp 0x421b37
mov eax, dword [ebp - 0x174]
add eax, 1
mov dword [ebp - 0x174], eax
mov ecx, 8
shl ecx, 0
mov eax, dword [ebp + ecx - 0xa8]
xor edx, edx
mov ecx, 0x14
div ecx
add eax, dword [ebp + 0x14]
cmp dword [ebp - 0x174], eax
jae 0x421b85
imul edx, dword [ebp - 0x174], 0x14
mov eax, dword [ebp - 0x180]
cmp dword [eax + edx], 0
jne 0x421b83
imul ecx, dword [ebp - 0x174], 0x14
mov edx, dword [ebp - 0x180]
cmp dword [edx + ecx + 0x10], 0
jne 0x421b83
jmp 0x421b85
jmp 0x421b28
push 0
mov eax, dword [ebp - 0x17c]
push eax
mov ecx, dword [ebp - 0x16c]
push ecx
mov edx, dword [ebp - 0x19c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x421baf
jmp 0x421553
mov ecx, 8
imul edx, ecx, 0xc
cmp dword [ebp + edx - 0xac], 0
jne 0x421beb
mov eax, 8
imul ecx, eax, 0xc
mov edx, dword [ebp - 0x18c]
mov dword [ebp + ecx - 0xac], edx
mov eax, 8
imul ecx, eax, 0xc
mov edx, dword [ebp - 0x178]
mov dword [ebp + ecx - 0xa8], edx
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x18c]
mov dword [ebp + eax - 0xac], ecx
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x178]
mov dword [ebp + edx - 0xa8], eax
lea ecx, [ebp - 0x190]
push ecx
push 0x40
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0x170]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x421c3f
jmp 0x421553
mov dword [ebp - 0xcc], 0
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_WriteProcessMemory]
test eax, eax
jne 0x421c6e
jmp 0x421553
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_WriteProcessMemory]
test eax, eax
jne 0x421c9c
jmp 0x421553
lea edx, [ebp - 0x190]
push edx
mov eax, dword [ebp - 0x190]
push eax
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 0x421ccb
jmp 0x421553
mov dword [ebp - 0x1a4], 1
jmp 0x421553
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret