Function at 0x40b7c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fb10
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x44cb90]
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 edi, ecx
mov dword [ebp - 0x4c], edi
call fcn.0040b5c0
test eax, eax
je 0x40ba62
push 8
xor ebx, ebx
mov esi, 0xf
push str._iHealth
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00407c10
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.0040d6d0
mov edi, eax
cmp dword [edi + 0x24], ebx
je 0x40b84d
cmp dword [ebp - 0x34], 0x10
jb 0x40b843
mov eax, dword [ebp - 0x48]
push eax
call fcn.00427fd2
add esp, 4
mov eax, 1
jmp 0x40ba62
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x4c]
mov eax, 1
mov dword [edi + 8], ebx
mov dword [edi], ebx
mov dword [edi + 4], 2
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ecx
mov dword [edi + 0x28], eax
mov dword [edi + 0x30], eax
mov eax, dword [edx + 0x34]
cmp eax, ebx
jne 0x40b87b
xor eax, eax
jmp 0x40b892
mov eax, dword [eax + 0x1c]
push 0x40
push 0x3000
push 0x1000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x58], esp
mov dword [edi + 0xc], eax
push 0xc2
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push str.39_35_00_04_C5_0C_75_15_83_3D_00_02_C5_0C_01_75_28_C7_86_94_09_00_00_00_00_00_00_EB_1C_83_3D_00_02_03_0D_01_75_13_83_BE_94_09_00_00_00_7E_0A_C7_86_94_09_00_00_00_C0_79_44_F3_0F_5C_86_94_09_00_00
mov byte [ecx], bl
call fcn.00407c10
sub esp, 0x1c
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x54], esp
push 0x17
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push str.F3_0F_5C_86_94_09_00_00
mov byte [ecx], bl
call fcn.00407c10
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
mov byte [ebp - 4], 2
push 0x17
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push str.F3_0F_5C_86_94_09_00_00
mov byte [ecx], bl
call fcn.00407c10
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.004019f0
mov eax, dword [edi + 0xc]
lea esi, [edi + 0x74]
push eax
mov edx, 0xd030000
mov ecx, esi
call fcn.00401c20
push 7
push str.iPlayer
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00407c10
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040d6d0
mov eax, dword [eax + 0xc]
add eax, 0x200
push eax
mov ecx, 0xcc50200
call fcn.00401e00
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 0x10
jb 0x40b964
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00427fd2
add esp, 4
push 7
push str.iPlayer
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00407c10
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040d6d0
mov eax, dword [eax + 0xc]
add eax, 0x400
push eax
mov ecx, 0xcc50400
call fcn.00401e00
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 0x10
jb 0x40b9b7
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00427fd2
add esp, 4
push 1
push 0x445614
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00407c10
mov esi, dword [ebp - 0x4c]
mov byte [ebp - 4], 5
mov edi, dword [edi + 0xc]
lea edx, [ebp - 0x2c]
mov ecx, esi
add edi, 0x200
call fcn.0040d6d0
mov dword [eax + 8], edi
mov edi, 1
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x34], edi
mov dword [eax + 0x2c], ebx
mov dword [eax], 2
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 0x10
jb 0x40ba1c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00427fd2
add esp, 4
push ebx
push ebx
push ebx
push ebx
push edi
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x48]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.004080b0
mov ecx, edi
mov edx, esi
call fcn.0040c5b0
cmp dword [ebp - 0x34], 0x10
mov esi, eax
jb 0x40ba60
mov eax, dword [ebp - 0x48]
push eax
call fcn.00427fd2
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.00427fdd
mov esp, ebp
pop ebp
ret 4