Function at 0x40c1a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444c70
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4574b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0040c010
test al, al
je 0x40c535
push 8
push str._iEnergy
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00401710
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0040df60
mov edi, eax
cmp byte [edi + 0x30], 0
je 0x40c21c
mov bl, 1
jmp 0x40c522
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 2
mov word [edi + 0x34], 0x100
mov byte [edi + 0x31], 1
mov byte [edi + 0x33], 1
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x40c25c
push 0x40
push 0x3000
push 0x1000
push 0
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
sub esp, 0x18
mov dword [edi + 0xc], eax
mov ecx, esp
mov dword [ebp - 0x4c], esp
push str.39_05_00_04_1F_04_75_20_83_3D_00_02_F9_06_01_75_05_BA_30_75_00_00_83_3D_04_02_F9_06_01_75_19_C6_87_AE_00_00_00_00_EB_10_83_3D_08_02_F9_06_01_75_07_C6_87_AE_00_00_00_01_0F_57_C9_0F_57_C0
call fcn.00408c70
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.0F_57_C9_0F_57_C0
call fcn.00408c70
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push str.0F_B7_88_____0F_57_C9_0F_57_C0_F2_0F_2A_CA
call fcn.00408c70
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402830
push dword [edi + 0xc]
lea eax, [edi + 0x68]
push ecx
push 0x6f90000
push eax
call fcn.00402910
push 7
push str.iPlayer
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.0040deb0
mov eax, dword [eax + 0xc]
add eax, 0x400
push eax
push 0x41f0400
lea eax, [edi + 0x68]
push eax
call fcn.00402ae0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
jb 0x40c313
push dword [ebp - 0x28]
call fcn.0042b3e8
add esp, 4
sub esp, 0x18
lea ecx, [ebx + 0x2c]
push edi
call fcn.00410d40
test al, al
jne 0x40c3c4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x44], esp
push str.39_05_00_04_84_09_75_20_83_3D_00_02_FA_0A_01_75_05_B9_30_75_00_00_83_3D_04_02_FA_0A_01_75_19_C6_87_AE_00_00_00_00_EB_10_83_3D_08_02_FA_0A_01_75_07_C6_87_AE_00_00_00_01_0F_57_C9_0F_57_C0
call fcn.00408c70
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.0F_57_C9_0F_57_C0
call fcn.00408c70
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push str.0F_B7_90_____0F_57_C9_0F_57_C0_F2_0F_2A_C9_F2_0F_59_0D_____F2_0F_2A_C2_66_0F_2F_C1_72__83_3D
call fcn.00408c70
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402830
push dword [edi + 0xc]
lea esi, [edi + 0x68]
push ecx
push 0xafa0000
push esi
call fcn.00402910
push str.iPlayer
lea ecx, [ebp - 0x28]
call fcn.00408c70
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.0040deb0
mov eax, dword [eax + 0xc]
add eax, 0x400
push eax
push 0x9840400
push esi
call fcn.00402ae0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
jb 0x40c3c4
push dword [ebp - 0x28]
call fcn.0042b3e8
add esp, 4
push 1
push 0x450268
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push eax
add esi, 0x200
call fcn.0040deb0
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x20], 1
mov dword [eax + 0x24], 0
mov byte [eax + 0x34], 1
mov byte [eax + 0x32], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x40c431
push dword [ebp - 0x28]
call fcn.0042b3e8
add esp, 4
push 1
push 0x45026c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
mov byte [ebp - 4], 8
lea eax, [ebp - 0x28]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push eax
add esi, 0x204
call fcn.0040deb0
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x20], 1
mov dword [eax + 0x24], 0
mov byte [eax + 0x34], 1
mov byte [eax + 0x32], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x40c49e
push dword [ebp - 0x28]
call fcn.0042b3e8
add esp, 4
push 1
push 0x450270
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
mov byte [ebp - 4], 9
lea eax, [ebp - 0x28]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push eax
add esi, 0x208
call fcn.0040deb0
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x20], 1
mov dword [eax + 0x24], 0
mov byte [eax + 0x34], 1
mov byte [eax + 0x32], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x40c50b
push dword [ebp - 0x28]
call fcn.0042b3e8
add esp, 4
sub esp, 0xc
lea eax, [ebp - 0x40]
mov ecx, ebx
push 7
sub esp, 8
push 0
push eax
call fcn.0040c8c0
mov bl, al
cmp dword [ebp - 0x2c], 0x10
jb 0x40c533
push dword [ebp - 0x40]
call fcn.0042b3e8
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret