Function at 0x4157d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e95b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4634b0]
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.iPlayer
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.0040ba70
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00418550
mov esi, eax
cmp byte [esi + 0x2c], 0
je 0x41583f
mov bl, 1
jmp 0x415a6b
push 0x4c
push str.A3_00_04_C1_01_83_3D_00_02_C1_01_01_75_0C_FF_B0_BasicHpMax_8F_80_HP_8B_80_HP
lea ecx, [ebp - 0x58]
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 2
mov word [esi + 0x30], 0x100
mov byte [esi + 0x2d], 1
mov byte [esi + 0x2f], 1
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.0040ba70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push 8
push str.8B_80_HP
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.0040ba70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push 0x17
push str.8B_80_HP_50_DB_04_24_D9
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040ba70
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
mov dword [esi], 0
cmp ecx, eax
je 0x4158ea
push 0xffffffffffffffff
push 0
push eax
call fcn.0040b680
lea ecx, [esi + 0x4c]
lea eax, [ebp - 0x40]
cmp ecx, eax
je 0x4158fe
push 0xffffffffffffffff
push 0
push eax
call fcn.0040b680
lea edi, [esi + 0x64]
lea eax, [ebp - 0x58]
cmp edi, eax
je 0x415914
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.0040b680
cmp dword [ebp - 0x14], 0x10
jb 0x415925
push dword [ebp - 0x28]
call fcn.00434302
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x415948
push dword [ebp - 0x40]
call fcn.00434302
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x41596f
push dword [ebp - 0x58]
call fcn.00434302
add esp, 4
push ecx
push str.PlayerController2D
push 0x45adf8
mov ecx, esi
call fcn.0040cd40
push ecx
push str.PlayerController2D
push str.BasicHpMax
mov ecx, esi
call fcn.0040cd40
mov ecx, dword [0x468c60]
push str.HPController:Update
call fcn.004028e0
test eax, eax
je 0x4159b8
push eax
mov dword [esi + 0x10], eax
call fcn.00402bc0
mov ecx, dword [esi + 0x10]
add ecx, eax
mov dword [esi + 0x14], ecx
mov eax, dword [ebx + 0x6c]
push 0x40
push 0x3000
push 0x800
push 0
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push eax
push ecx
push 0x1c10000
push edi
mov dword [esi + 0xc], eax
call fcn.0040d2b0
push 1
push 0x45ae1c
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
call fcn.0040ba70
mov byte [ebp - 4], 4
lea eax, [ebp - 0x88]
mov esi, dword [esi + 0xc]
mov ecx, ebx
push eax
add esi, 0x200
call fcn.004184a0
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x1c], 1
mov dword [eax + 0x20], 0
mov byte [eax + 0x30], 1
mov byte [eax + 0x2e], 0
mov dword [eax], 2
cmp dword [ebp - 0x74], 0x10
jb 0x415a5b
push dword [ebp - 0x88]
call fcn.00434302
add esp, 4
sub esp, 0x18
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.00416990
mov bl, al
cmp dword [ebp - 0x5c], 0x10
jb 0x415a7c
push dword [ebp - 0x70]
call fcn.00434302
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.00434307
mov esp, ebp
pop ebp
ret