Function at 0x401656
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.00401ade
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 8]
call fcn.004019a4
add esp, 0x10
test eax, eax
jne 0x4016d8
mov dword [ebp - 0x30], 0
jmp 0x40186b
cmp dword [ebp + 0x10], 0
je 0x4016e9
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x50]
mov dword [eax], edx
cmp dword [ebp + 0xc], 0
je 0x401767
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xc], eax
call fcn.00401b1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 0x14
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
je 0x401739
mov eax, dword [ebp - 0x28]
sub eax, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp - 8]
jne 0x40172f
jmp 0x401739
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
jmp 0x401711
cmp dword [ebp - 0x1c], 0
jne 0x40174b
mov dword [ebp - 0x30], 0
jmp 0x40186b
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp - 8]
jne 0x401767
cmp dword [ebp + 0xc], 0
je 0x401767
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x28]
mov dword [eax], edx
push 0x40
push 0x3000
push dword [ebp - 0xc]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40178d
mov dword [ebp - 0x30], 0
jmp 0x40186b
sub esp, 8
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00401556
add esp, 0x10
sub esp, 4
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401520
add esp, 0x10
sub esp, 0xc
push dword [ebp - 4]
call fcn.00401af6
add esp, 0x10
test eax, eax
jne 0x4017d0
mov dword [ebp - 0x30], 0
jmp 0x40186b
mov eax, dword [ebp - 0x14]
push dword [eax + 0x50]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x28]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401b36
add esp, 0x10
test eax, eax
jne 0x4017fb
mov dword [ebp - 0x30], 0
jmp 0x40186b
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 4]
call fcn.004019a4
add esp, 0x10
test eax, eax
jne 0x40181b
mov dword [ebp - 0x30], 0
jmp 0x40186b
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
sub eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xa0], 0
je 0x40184e
sub esp, 4
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
push dword [eax + 0xa0]
push dword [ebp - 4]
call fcn.00401a1c
add esp, 0x10
jmp 0x401857
mov dword [ebp - 0x30], 0
jmp 0x40186b
cmp dword [ebp + 8], 0
je 0x401865
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
leave
ret