Function at 0x40c4a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x45a4b8]
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
push 7
push str.iBattle
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.0040f650
mov edi, eax
cmp dword [edi + 0x28], 0
je 0x40c512
mov esi, 1
jmp 0x40c84b
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 2
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 1
mov dword [edi + 0x2c], 1
mov dword [edi + 0x34], 1
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x40c560
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 0x179
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.53_83_3D_00_02_1B_03_01_75_14_8A_9E_E5_01_00_00_88_9E_E4_01_00_00_31_DB_89_9E_DC_01_00_00_83_3D_04_02_1B_03_01_75_0C_8A_9E_F1_01_00_00_88_9E_F0_01_00_00_83_3D_08_02_1B_03_01_75_0C_8B_9E_F8_01_00_00_89_9E_F4_01_00_00_83_3D_0C_02_1B_03_01_75_0A_C7_86_28_01_00_00_0F_27_00_00_83_3D_10_02_1B_03_01_75_13_83_BE_FC_01_00_00_00_74_0A_C7_86_FC_01_00_00_0F_27_00_00_5B_8B_80_28_01_00_00
mov byte [ecx], 0
call fcn.00401710
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0x11
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.8B_80_28_01_00_00
mov byte [ecx], 0
call fcn.00401710
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0x44
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.8B_80_28_01_00_00_3D_0F_27_00_00_76_09_B8_0F_27_00_00_EB_02_33_C0_E8
mov byte [ecx], 0
call fcn.00401710
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.004026f0
push dword [edi + 0xc]
lea eax, [edi + 0x74]
push ecx
push 0x31b0000
push eax
call fcn.00402960
push 1
push str.23456
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], 3
lea eax, [ebp - 0x28]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push eax
add esi, 0x200
call fcn.0040f5a0
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 0
mov dword [eax + 0x38], 1
mov dword [eax + 0x30], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x40c66a
push dword [ebp - 0x28]
call fcn.0042d411
add esp, 4
push 1
push 0x45221c
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], 4
lea eax, [ebp - 0x28]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push eax
add esi, 0x204
call fcn.0040f5a0
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 0
mov dword [eax + 0x38], 1
mov dword [eax + 0x30], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x40c6dd
push dword [ebp - 0x28]
call fcn.0042d411
add esp, 4
push 1
push 0x452220
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], 5
lea eax, [ebp - 0x28]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push eax
add esi, 0x208
call fcn.0040f5a0
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 0
mov dword [eax + 0x38], 1
mov dword [eax + 0x30], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x40c750
push dword [ebp - 0x28]
call fcn.0042d411
add esp, 4
push 1
push 0x452224
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], 6
lea eax, [ebp - 0x28]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push eax
add esi, 0x20c
call fcn.0040f5a0
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 0
mov dword [eax + 0x38], 1
mov dword [eax + 0x30], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x40c7c3
push dword [ebp - 0x28]
call fcn.0042d411
add esp, 4
push 1
push 0x452228
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, 0x210
call fcn.0040f5a0
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 0
mov dword [eax + 0x38], 1
mov dword [eax + 0x30], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x40c836
push dword [ebp - 0x28]
call fcn.0042d411
add esp, 4
sub esp, 0x10
lea eax, [ebp - 0x40]
push 1
push ecx
push 1
push eax
mov ecx, ebx
call fcn.0040e4c0
mov esi, eax
cmp dword [ebp - 0x2c], 0x10
jb 0x40c85c
push dword [ebp - 0x40]
call fcn.0042d411
add esp, 4
mov eax, esi
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.0042d416
mov esp, ebp
pop ebp
ret