Function at 0x4072b0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4584
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x572b90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 4], 0
mov dword [edi + 4], vtable.Entity.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi], vtable.Player.1.0
mov dword [edi + 4], vtable.Player.0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0x42c80000
mov dword [edi + 0x2c], 0xc3fa0000
mov dword [edi + 0x30], 0xc37a0000
mov dword [edi + 0x34], 0xc18c0000
mov dword [edi + 0x38], 0x43fa0000
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 4
mov dword [edi + 0x44], 4
mov dword [edi + 0x48], 0x3f400000
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0x44200000
mov dword [edi + 0x54], 0x43480000
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
lea eax, [edi + 0x70]
mov dword [edi + 0x70], 0
mov dword [ebp - 0x4c], eax
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
lea eax, [edi + 0x88]
mov dword [edi + 0x7c], 0x42b40000
mov dword [edi + 0x80], 0x44160000
mov byte [edi + 0x84], 0
mov dword [ebp - 0x2c], eax
mov dword [eax], 0
mov dword [edi + 0x8c], 0x3e4ccccd
mov dword [edi + 0x90], 3
mov byte [edi + 0x98], 1
mov dword [edi + 0x9c], 0
mov byte [ebp - 4], 8
push 0x110
mov byte [edi + 0xa0], 0
call fcn.004c0775
mov esi, eax
mov dword [ebp - 0x24], esi
push 0x110
push 0
push esi
mov byte [ebp - 4], 9
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00418970
mov ecx, eax
mov byte [ebp - 4], 8
lea eax, [edi + 8]
lea edx, [ebp - 0x90]
mov dword [ebp - 0x50], eax
cmp eax, edx
je 0x407467
mov edx, dword [eax]
mov dword [eax], ecx
test edx, edx
je 0x407471
mov eax, dword [edx]
mov ecx, edx
jmp 0x40746d
test ecx, ecx
je 0x407471
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x28
call fcn.004c0775
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00419410
mov esi, eax
mov byte [ebp - 4], 8
add edi, 0xc
lea eax, [ebp - 0x94]
cmp edi, eax
je 0x4074b5
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
mov dword [edi], esi
test eax, eax
je 0x4074cb
mov ecx, eax
call fcn.004194d0
push 0x28
push dword [ebp - 0x20]
jmp 0x4074c3
test esi, esi
je 0x4074cb
mov ecx, esi
call fcn.004194d0
push 0x28
push esi
call fcn.004c07a5
add esp, 8
push str.Textures_Player_PlayerSpriteSheet.png
lea ecx, [ebp - 0x48]
call fcn.004052c0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xb
mov ecx, dword [edi]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x48]
push eax
movups xmmword [ebp - 0x64], xmm0
call fcn.00419ee0
test al, al
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x34]
sete al
mov byte [ebp - 0x15], al
cmp ecx, 0x10
jb 0x407537
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40752a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40752a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004c07a5
mov al, byte [ebp - 0x15]
add esp, 8
test al, al
je 0x40754e
push str.Player_texture_load_failure
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00403d50
add esp, 8
mov esi, dword [ebp - 0x50]
push 0
push dword [edi]
mov ecx, dword [esi]
call fcn.00418ad0
mov ecx, dword [esi]
sub esp, 8
add ecx, 4
mov dword [esp + 4], 0x41200000
mov dword [esp], 0x40400000
call fcn.00419150
mov ecx, dword [esi]
sub esp, 8
add ecx, 4
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x40000000
call fcn.00419270
mov eax, dword [ebp - 0x28]
sub esp, 8
mov ecx, dword [esi]
add ecx, 4
movss xmm0, dword [eax + 0x54]
movss dword [esp + 4], xmm0
movss xmm0, dword [eax + 0x50]
movss dword [esp], xmm0
call fcn.004191b0
mov edi, dword [esi]
push 0x54
call fcn.004c0775
mov esi, eax
mov dword [ebp - 0x24], esi
push 0x54
push 0
push esi
mov byte [ebp - 4], 0xc
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
push dword [ebp + 8]
push edi
call fcn.004096a0
mov byte [ebp - 4], 8
lea edx, [ebp - 0x98]
mov esi, dword [ebp - 0x28]
mov ecx, eax
lea eax, [esi + 0x4c]
cmp eax, edx
je 0x407607
mov edx, dword [eax]
mov dword [eax], ecx
test edx, edx
je 0x407611
mov eax, dword [edx]
mov ecx, edx
jmp 0x40760d
test ecx, ecx
je 0x407611
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x20]
call fcn.00408ee0
mov ecx, eax
lea edx, [esi + 0x58]
cmp edx, ecx
je 0x407638
mov eax, dword [ecx]
mov dword [ecx], 0
mov ecx, dword [edx]
mov dword [edx], eax
test ecx, ecx
je 0x407638
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x407645
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, esi
call fcn.004085c0
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], 0
push 0x20
call fcn.004c0775
add esp, 4
mov dword [ebp - 0x9c], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 0xd
movups xmmword [eax], xmm0
mov ecx, eax
movups xmmword [eax + 0x10], xmm0
call fcn.00433620
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 8]
je 0x407694
xor esi, esi
mov dword [ecx], eax
add dword [edi + 4], 4
jmp 0x4076a3
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, edi
call fcn.00409380
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 8
test esi, esi
je 0x4076bd
mov ecx, esi
call fcn.00433790
push 0x20
push esi
call fcn.004c07a5
add esp, 8
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x88]
lea eax, [esi + 1]
mov edx, eax
mov dword [ebp - 0x24], eax
call fcn.00408d40
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x74]
mov eax, ecx
mov edx, dword [ebp - 0x78]
sub eax, edx
cmp eax, 0x1b
jb 0x407770
cmp ecx, 0x10
lea esi, [ebp - 0x88]
lea eax, [edx + 0x1b]
cmovae esi, dword [ebp - 0x88]
mov dword [ebp - 0x78], eax
cmp esi, 0x569e23
jae 0x407728
lea eax, [esi + edx]
cmp eax, str.Sounds_Player_shotgun_shoot
jb 0x407728
cmp esi, str.Sounds_Player_shotgun_shoot
ja 0x40771e
xor edi, edi
jmp 0x40772d
mov edi, esi
sub edi, str.Sounds_Player_shotgun_shoot
jmp 0x40772d
mov edi, 0x1b
lea eax, [edx + 1]
push eax
lea ecx, [esi + 0x1b]
push esi
push ecx
call sub.VCRUNTIME140.dll_memmove
push edi
push str.Sounds_Player_shotgun_shoot
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x1b
lea ecx, [esi + edi]
sub eax, edi
push eax
lea eax, [edi + 0x569e23]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x88]
mov esi, dword [ebp - 0x1c]
add esp, 0x24
jmp 0x407789
push 0x1b
sub esp, 8
mov byte [ebp - 0x70], 0
lea ecx, [ebp - 0x88]
push dword [ebp - 0x70]
push 0x1b
call fcn.00409550
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x38], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
sub eax, edx
cmp eax, 4
jb 0x4077f4
cmp dword [ebp - 0x34], 0x10
lea eax, [edx + 4]
mov dword [ebp - 0x38], eax
cmovae ecx, dword [ebp - 0x48]
mov eax, dword [str..ogg]
mov dword [ecx + edx], eax
lea eax, [ebp - 0x48]
mov byte [ecx + edx + 4], 0
jmp 0x407809
push 4
push str..ogg
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
push 4
call fcn.00409220
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x58], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x5c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0x11
lea eax, [esi*4]
mov ecx, dword [edi]
add ecx, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ecx]
call fcn.00433b40
test al, al
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x58]
sete byte [ebp - 0x15]
cmp ecx, 0x10
jb 0x40789b
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407891
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407524
push ecx
push edx
call fcn.004c07a5
add esp, 8
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
cmp ecx, 0x10
jb 0x4078e5
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4078db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407524
push ecx
push edx
call fcn.004c07a5
add esp, 8
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp ecx, 0x10
jb 0x407932
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407928
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407524
push ecx
push edx
call fcn.004c07a5
add esp, 8
cmp byte [ebp - 0x15], 0
je 0x407962
push str._load_failure_n
push esi
push str.Shotgun_shoot_
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00403d50
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00403d50
add esp, 8
push 0xc
call fcn.004c0775
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0x12
xorps xmm0, xmm0
movq qword [eax], xmm0
mov ecx, eax
mov dword [eax + 8], 0
call fcn.00433dc0
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x13
mov esi, dword [ebp - 0x28]
mov edx, dword [esi + 0x68]
cmp edx, dword [esi + 0x6c]
je 0x4079a4
xor ecx, ecx
mov dword [edx], eax
add dword [esi + 0x68], 4
jmp 0x4079b4
lea eax, [ebp - 0x20]
push eax
push edx
lea ecx, [esi + 0x64]
call fcn.004069a0
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x4079c2
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edi]
mov ecx, dword [esi + 0x64]
push dword [eax + edx]
mov ecx, dword [ecx + edx]
call fcn.00433ed0
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], esi
cmp esi, 3
jl 0x407656
mov eax, dword [ebp - 0x28]
push 0x11c
mov byte [eax + 0x1c], 1
call fcn.004c0775
mov esi, eax
mov dword [ebp - 0x54], esi
push 0x11c
push 0
push esi
mov byte [ebp - 4], 0x14
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push 0x1e
push ecx
mov ecx, esi
mov dword [esp], 0
call fcn.00418ce0
mov edi, eax
mov esi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], esi
push ecx
mov byte [ebp - 4], 0x15
mov ecx, edi
mov dword [esp], 0x40400000
call fcn.00418e60
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx]
add ecx, 4
call fcn.00418f30
push eax
lea ecx, [edi + 4]
call fcn.00419240
push 0xff0000aa
lea ecx, [ebp - 0x54]
call fcn.0041a7c0
push eax
mov ecx, edi
call fcn.0041c410
lea eax, [ebp - 0x64]
mov ecx, edi
push eax
call fcn.0041c3e0
mov ecx, edi
movss xmm0, dword [eax + 4]
lea eax, [ebp - 0x40]
push eax
movss dword [ebp - 0x24], xmm0
call fcn.0041c3e0
mov ecx, edi
movss xmm0, dword [eax]
movss dword [ebp - 0x30], xmm0
call fcn.00418e50
fadd dword [ebp - 0x24]
push ecx
mov ecx, edi
fstp dword [esp]
call fcn.00418e50
fadd dword [ebp - 0x30]
push ecx
lea ecx, [edi + 4]
fstp dword [esp]
call fcn.00419150
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
cmp edx, eax
je 0x407ad3
mov ecx, dword [edx]
xor esi, esi
mov dword [ebp - 0x14], esi
mov eax, edi
mov dword [edx], eax
test ecx, ecx
je 0x407ad3
mov eax, dword [ecx]
push 1
call dword [eax]
mov edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov dword [edi + 0x94], eax
mov byte [edi + 0x98], 1
call fcn.00409080
mov ecx, eax
lea edx, [edi + 0x9c]
cmp edx, ecx
je 0x407b10
mov eax, dword [ecx]
mov dword [ecx], 0
mov ecx, dword [edx]
mov dword [edx], eax
test ecx, ecx
je 0x407b10
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x407b1d
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
je 0x407b29
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c0767
mov esp, ebp
pop ebp
ret 4