Function at 0x10004420
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push 0x40
push 0x1000
push 0x400
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1000447b
push 0x19
push 0x40421d2
push 6
call fcn.1004f7db
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
push 0x400
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100044af
push 0x51
push 0x40421d2
push 6
call fcn.1004f7db
add esp, 0xc
push 0x102d2a06
call fcn.100046b3
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x198
call fcn.100508d0
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x1007736b
push dword [ebp - 0x10]
push 0x10077375
mov ecx, 3
call fcn.100020c7
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10004508
push ebx
call fcn.1004f7cf
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1000451c
push ebx
call fcn.1004f7cf
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x10077381
push dword [ebp - 0xc]
mov ecx, 2
call fcn.100020c7
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1000454c
push ebx
call fcn.1004f7cf
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0xffffffe0
push 1
mov ebx, 0x198
call fcn.100508d0
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x1007739a
push dword [ebp - 0x10]
push 0x100773ac
push dword [ebp - 0xc]
mov ecx, 4
call fcn.100020c7
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100045a1
push ebx
call fcn.1004f7cf
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100045b5
push ebx
call fcn.1004f7cf
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.10001e08
fild dword [ebp - 4]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0x100773b5]
fstp qword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
fld qword [ebp - 0x1c]
call fcn.100011c6
push eax
push 0x4b0f10
call fcn.10003409
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10004607
push ebx
call fcn.1004f7cf
add esp, 4
add dword [ebp - 4], 0x96
mov eax, 0x100773bd
test eax, eax
je 0x1000462a
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1004f7d5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1000463b
push ebx
call fcn.1004f7cf
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.10001e08
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 0x1195f0d
call fcn.10003409
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10004675
push ebx
call fcn.1004f7cf
add esp, 4
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 0x1195f20
call fcn.10003409
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000469f
push ebx
call fcn.1004f7cf
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100046af
push ebx
call fcn.1004f7cf
add esp, 4
mov esp, ebp
pop ebp
ret