Function at 0x413e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c193
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x45f4b0]
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 - 0x88]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
call fcn.0040a2f0
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00415de0
mov edi, eax
cmp byte [edi + 0x2c], 0
je 0x413ed8
mov bl, 1
jmp 0x41419d
push 0xe7
push str.83_BF_m_playerState_00_75_34_8B_87_m_charHealth_85_C0_74_1A_83_3D_00_02_A4_16_01_75_0D_C7_40_m_iHealth_63_00_00_00_C6_40_m_bImmortal_01_EB_04_C6_40_m_bImmortal_00_83_3D_04_02_A4_16_01_75_07_B8_01_00_00_00_EB_07_0F_B6_87_m_bInHiding
lea ecx, [ebp - 0x70]
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 2
mov word [edi + 0x30], 0x100
mov byte [edi + 0x2d], 1
mov byte [edi + 0x2f], 1
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.0040a2f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push 0x14
push str.0F_B6_87_m_bInHiding
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.0040a2f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
push 0x1d
push str.0F_B6_87_m_bInHiding_85_C0_75
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.0040a2f0
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x58]
mov dword [edi], 0
cmp ecx, eax
je 0x413f86
push 0xffffffffffffffff
push 0
push eax
call fcn.00409f00
lea ecx, [edi + 0x4c]
lea eax, [ebp - 0x40]
cmp ecx, eax
je 0x413f9a
push 0xffffffffffffffff
push 0
push eax
call fcn.00409f00
lea esi, [edi + 0x64]
lea eax, [ebp - 0x70]
cmp esi, eax
je 0x413fb0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00409f00
cmp dword [ebp - 0x44], 0x10
jb 0x413fc1
push dword [ebp - 0x58]
call fcn.00431bdf
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x413fe4
push dword [ebp - 0x40]
call fcn.00431bdf
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x41400b
push dword [ebp - 0x70]
call fcn.00431bdf
add esp, 4
push 4
push str.MiCharacterPlayer
push str.m_bInHiding
mov ecx, edi
call fcn.0040b5c0
push 4
push str.MiCharacterPlayer
push str.m_playerState
mov ecx, edi
call fcn.0040b5c0
push 4
push str.MiCharacterPlayer
push str.m_charHealth
mov ecx, edi
call fcn.0040b5c0
push 1
push str.MiCharacterHealthPlayer
push str.m_bImmortal
mov ecx, edi
call fcn.0040b5c0
push 1
push str.MiCharacterHealthPlayer
push str.m_iHealth
mov ecx, edi
call fcn.0040b5c0
push str.MiCharacterPlayer:bIsVisible
call fcn.004028e0
test eax, eax
je 0x414089
push eax
mov dword [edi + 0x10], eax
call fcn.00402ac0
mov ecx, dword [edi + 0x10]
add ecx, eax
mov dword [edi + 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
sub esp, 8
mov dword [edi + 0xc], eax
push esi
call fcn.0040bb10
push 1
push 0x457f10
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040a2f0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push eax
add esi, 0x200
call fcn.00415d30
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 - 0x14], 0x10
jb 0x41411d
push dword [ebp - 0x28]
call fcn.00431bdf
add esp, 4
push 1
push 0x457f14
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040a2f0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push eax
add esi, 0x204
call fcn.00415d30
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 - 0x14], 0x10
jb 0x41418a
push dword [ebp - 0x28]
call fcn.00431bdf
add esp, 4
sub esp, 0x18
lea eax, [ebp - 0x88]
mov ecx, ebx
push eax
call fcn.004143e0
mov bl, al
cmp dword [ebp - 0x74], 0x10
jb 0x4141b1
push dword [ebp - 0x88]
call fcn.00431bdf
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.00431be4
mov esp, ebp
pop ebp
ret