Function at 0x402a8b
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.004011c3
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 0x402b19
push 6
call fcn.0043fb89
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 0x402b48
push 6
call fcn.0043fb89
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 0x402b7b
push 6
call fcn.0043fb89
add esp, 4
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.00401699
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 0x402e2c
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.004011ea
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x402bbb
push 4
call fcn.0043fb89
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402bce
push 1
call fcn.0043fb89
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 0x402e01
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
call fcn.004011ea
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.004011c3
dec eax
jns 0x402c36
push 4
call fcn.0043fb89
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402c49
push 1
call fcn.0043fb89
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.004401f0
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
call fcn.004011ea
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.004011c3
dec eax
jns 0x402cb9
push 4
call fcn.0043fb89
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402ccc
push 1
call fcn.0043fb89
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.00440210
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jne 0x402def
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.004011ea
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x402d2c
push 4
call fcn.0043fb89
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402d3f
push 1
call fcn.0043fb89
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.004011c3
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 0x402d9f
push 6
call fcn.0043fb89
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.004011c3
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 0x402dea
push 6
call fcn.0043fb89
add esp, 4
jmp 0x402df9
cmp dword [ebp - 0x20], 0
jne 0x402df9
pop eax
pop ebx
pop ecx
jmp 0x402bef
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.004011c3
mov dword [ebp - 0x1c], eax
pop eax
pop ebx
pop ecx
jmp 0x402b8e
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 0x402e4e
push 6
call fcn.0043fb89
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 0x402e7d
push 6
call fcn.0043fb89
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 0x402eae
push 6
call fcn.0043fb89
add esp, 4
mov esp, ebp
pop ebp
ret 0x18