Function at 0x5be680
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
lea ebp, [esp - 0x40]
sub esp, 0x40
push 0xffffffffffffffff
push 0x74eeca
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x8bb040]
xor eax, ebp
mov dword [ebp + 0x3c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp + 8], ebx
mov dword [ebp], ebx
mov dword [ebx], 0x8243a0
mov dword [ebx + 4], 0
mov dword [ebp - 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov word [ebx + 0x5c], 0x100
mov byte [ebx + 0x5e], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xbc], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0xc4], eax
mov dword [ebx + 0xc8], eax
mov dword [ebx + 0xcc], eax
mov dword [ebx + 0xd0], eax
mov dword [ebx + 0xd4], 0xf
mov byte [ebx + 0xc0], al
lea esi, [ebx + 0xd8]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
lea edi, [ebx + 0xf0]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
mov byte [ebp - 4], 0x24
lea edx, [ebp + 8]
mov dword [ebx + 0x108], eax
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x110], eax
mov dword [ebp + 8], 0x64
call fcn.0048c5a0
mov dword [ebx + 0x108], eax
mov ecx, 0x64
add eax, 0x640
mov dword [ebx + 0x110], eax
mov eax, dword [ebx + 0x108]
nop
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
add eax, 0x10
sub ecx, 1
jne 0x5be8f0
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x114], ecx
mov dword [ebx + 0x118], ecx
mov dword [ebx + 0x11c], ecx
mov dword [ebx + 0x120], ecx
mov dword [ebx + 0x124], ecx
mov ecx, dword [ebx + 0x108]
cmp ecx, eax
je 0x5be947
mov dword [ebx + 0x10c], ecx
push 6
push str.Sound
mov ecx, esi
mov byte [ebp - 4], 0x25
call fcn.004851c0
push 9
push str.Joystick
mov ecx, esi
call fcn.004851c0
push 9
push 0x823f64
mov ecx, esi
call fcn.004851c0
push 7
push 0x823f5c
mov ecx, esi
call fcn.004851c0
push 7
push str.Images
mov ecx, esi
call fcn.004851c0
push 3
push 0x823f50
mov ecx, esi
call fcn.004851c0
push ecx
lea ecx, [ebp - 0x13c]
call fcn.00482850
mov edx, str.Build
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x13c]
call fcn.004853b0
mov edx, str.7293
mov ecx, eax
call fcn.004853b0
mov edx, str.__using
mov ecx, eax
call fcn.004853b0
push ecx
lea ecx, [ebp - 0xa4]
mov esi, eax
call fcn.00482850
lea eax, [ebp + 8]
mov byte [ebp - 4], 0x27
push eax
call dword [sym.imp.SDL2.dll_SDL_GetVersion]
add esp, 4
lea ecx, [ebp - 0xa4]
mov edx, str.SDL
call fcn.004853b0
mov ecx, eax
movzx eax, byte [ebp + 8]
push 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_]
mov edx, 0x8068d4
mov ecx, eax
call fcn.004853b0
mov ecx, eax
movzx eax, byte [ebp + 9]
push 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_]
mov edx, 0x8068d4
mov ecx, eax
call fcn.004853b0
mov ecx, eax
movzx eax, byte [ebp + 0xa]
push 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_]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00483110
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa4], 0x775a90
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xa8], eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x775aac
call fcn.00483030
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x9c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov byte [ebp - 4], 0x28
lea edx, [ebp + 0xc]
cmp dword [ebp + 0x20], 0xf
mov ecx, esi
push dword [ebp + 0x1c]
cmova edx, dword [ebp + 0xc]
call fcn.0048b260
mov edx, 0x80afa0
mov ecx, eax
call fcn.004853b0
cmp dword [0x8cd7f0], 0xf
mov edx, 0x8cd7dc
push dword [0x8cd7ec]
cmova edx, dword [0x8cd7dc]
mov ecx, eax
call fcn.0048b260
add esp, 8
mov edx, 0x80afa4
mov ecx, eax
call fcn.004853b0
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0x26
call fcn.00481520
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x138]
call fcn.00483110
lea eax, [ebp + 0x24]
cmp edi, eax
je 0x5beb63
mov ecx, edi
call fcn.00481520
mov eax, dword [ebp + 0x24]
mov dword [edi], eax
mov eax, dword [ebp + 0x28]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x2c]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x30]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x34]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x38]
mov dword [edi + 0x14], eax
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0xf
mov byte [ebp + 0x24], 0
lea ecx, [ebp + 0x24]
call fcn.00481520
push 0x1c
call fcn.0073298e
add esp, 4
mov dword [ebp + 8], eax
mov ecx, eax
mov byte [ebp - 4], 0x29
call fcn.005c7380
mov byte [ebp - 4], 0x26
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x10], eax
test ecx, ecx
je 0x5beb97
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x18
call fcn.0073298e
mov edi, eax
mov dword [ebp + 8], edi
mov byte [ebp - 4], 0x2a
push 0x2f8
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0073298e
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
lea esi, [edi + 8]
mov byte [ebp - 4], 0x2b
push 0x2f8
mov dword [ebp + 4], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0073298e
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push 0x10
mov byte [ebp - 4], 0x2c
call fcn.0073298e
mov dword [eax + 0xc], 0x806770
add esp, 0x10
mov dword [ebp + 4], eax
lea ecx, [eax + 0xc]
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], 0x8065d0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x18], edi
test eax, eax
je 0x5bec44
push eax
call fcn.005c3ad0
call fcn.004b4780
mov dword [eax], 2
mov byte [eax + 4], 0
mov eax, dword [ebp - 0x13c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x13c], 0x775a90
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x140], eax
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x138], 0x775aac
call fcn.00483030
lea ecx, [ebp - 0x138]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x134]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3c]
xor ecx, ebp
call fcn.0073297b
lea esp, [ebp + 0x40]
pop ebp
ret