Function at 0x401c20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
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
fild dword [ebp + 0x14]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x38]
fsub qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.004011a8
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x401cae
push 6
call fcn.004113d0
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x401cdd
push 6
call fcn.004113d0
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
push dword [ebp - 0x38]
push 0x40
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
nop
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x401d10
push 6
call fcn.004113d0
add esp, 4
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.0040167e
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x401fc1
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.004011cf
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x401d50
push 4
call fcn.004113d0
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x401d63
push 1
call fcn.004113d0
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x401f96
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
call fcn.004011cf
push ebx
push ecx
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0x14]
fstp qword [ebp - 0x38]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.004011a8
dec eax
jns 0x401dcb
push 4
call fcn.004113d0
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x401dde
push 1
call fcn.004113d0
add esp, 4
shl eax, 1
add ebx, eax
mov dword [ebp - 0x44], ebx
push 0x80000301
push 0
push 0xfff
mov ebx, dword [ebp - 0x44]
mov ax, word [ebx]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xc4
call fcn.00413110
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
call fcn.004011cf
push ebx
push ecx
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0x14]
fstp qword [ebp - 0x38]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.004011a8
dec eax
jns 0x401e4e
push 4
call fcn.004113d0
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x401e61
push 1
call fcn.004113d0
add esp, 4
shl eax, 1
add ebx, eax
mov dword [ebp - 0x44], ebx
push 0x80000301
push 0
push 0xc
mov ebx, dword [ebp - 0x44]
mov ax, word [ebx]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x9fc
call fcn.00413130
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jne 0x401f84
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.004011cf
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x401ec1
push 4
call fcn.004113d0
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x401ed4
push 1
call fcn.004113d0
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x2c], ebx
fild dword [ebp + 0x18]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
mov ebx, dword [ebp - 0x2c]
fild dword [ebx]
fstp qword [ebp - 0x3c]
fadd qword [ebp - 0x3c]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x44]
fadd qword [ebp - 0x44]
fstp qword [ebp - 0x4c]
fld qword [ebp - 0x4c]
call fcn.004011a8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esp
push 4
push dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x401f34
push 6
call fcn.004113d0
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0x28]
fstp qword [ebp - 0x38]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x40]
mov dword [ebp - 0x44], esp
push 4
fld qword [ebp - 0x40]
call fcn.004011a8
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x401f7f
push 6
call fcn.004113d0
add esp, 4
jmp 0x401f8e
cmp dword [ebp - 0x20], 0
jne 0x401f8e
pop eax
pop ebx
pop ecx
jmp 0x401d84
add esp, 0xc
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x38]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.004011a8
mov dword [ebp - 0x1c], eax
pop eax
pop ebx
pop ecx
jmp 0x401d23
add esp, 0xc
mov dword [ebp - 0x2c], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x401fe3
push 6
call fcn.004113d0
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x402012
push 6
call fcn.004113d0
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
push dword [ebp - 0x38]
push dword [ebp - 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
nop
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x402043
push 6
call fcn.004113d0
add esp, 4
mov esp, ebp
pop ebp
ret 0x18