Function at 0x5034e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov ebx, ecx
test ebx, ebx
js 0x50350b
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x503504
mov edx, esp
mov dword [ebp - 0x60], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x503736
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x5c]
push eax
push 0x40
push 5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x50371b
mov eax, dword [0x535864]
mov dword [0x535944], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.0040abd8
imul eax, dword [ebp - 0x48], 0x5b
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
add eax, 0x8d
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov eax, dword [0x535944]
mov dword [0x5359e0], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, 5
call fcn.00406fb0
mov eax, dword [0x5359e8]
mov dword [0x535884], eax
mov eax, dword [ebp - 0x44]
sub eax, 0x88
mov dword [ebp - 0x24], eax
imul eax, dword [ebp - 0x54], 0x1d
mov dword [ebp - 0x2c], eax
mov eax, dword [0x5359e0]
mov dword [0x5358d4], eax
mov eax, dword [0x535884]
cmp eax, dword [0x5358d4]
jle 0x5035f1
mov eax, dword [ebp - 0x38]
add eax, 4
mov dword [ebp - 0x64], eax
fild dword [ebp - 0x64]
call fcn.00407638
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x1c]
call fcn.0040762c
mov dword [ebp - 0x20], eax
jmp 0x5035fc
fild dword [ebp - 0x58]
call fcn.0040762c
mov dword [ebp - 0x48], eax
mov eax, dword [0x5358ec]
imul dword [0x5359e8]
mov dword [0x535884], eax
mov eax, dword [0x5358e4]
add eax, 4
mov dword [0x5358d4], eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x5c]
push eax
push 5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov eax, dword [0x53588c]
mov dword [0x5359bc], eax
xor eax, eax
mov dword [ebp - 0x48], eax
mov eax, dword [0x5359e0]
mov dword [0x5359d8], eax
mov eax, dword [0x5359d8]
cmp eax, dword [0x5359bc]
jge 0x50367e
xor eax, eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 1
jge 0x503688
inc dword [ebp - 0x54]
lea eax, [ebp - 0x10]
mov edx, 0x503758
call fcn.0040a01c
cmp dword [ebp - 0x54], 1
jl 0x503666
jmp 0x503688
mov eax, dword [0x53586c]
mov dword [0x5358cc], eax
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 2
jne 0x503644
fild dword [ebp - 0x1c]
call fcn.00407638
mov dword [ebp - 0x38], eax
mov eax, dword [0x53594c]
add eax, 0xaa
cmp eax, dword [0x5359b4]
jge 0x5036c4
mov eax, dword [ebp - 0x50]
sub eax, 0x19
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
sub eax, 0x89
mov dword [ebp - 0x44], eax
jmp 0x5036e2
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 9
jge 0x5036e2
inc dword [ebp - 0x2c]
mov eax, dword [0x53597c]
mov dword [0x53587c], eax
cmp dword [ebp - 0x2c], 9
jl 0x5036cf
xor eax, eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xc
jge 0x5036fe
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
jmp 0x5036fe
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.0040aba0
jne 0x50371b
mov eax, 0x95
sub eax, dword [0x53595c]
mov dword [0x535a00], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50373d
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00409c54
ret