Function at 0x515980
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c9b8
push 0x52b248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
push ebx
call fcn.005163e0
add esp, 4
test al, al
je 0x5159d5
push 0x2030
push str.Spider_Man_Error
push str.Please_insert_the_Spider_Man_CD_ROM__select_OK__and_restart_the_game.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0052a101
call fcn.00515680
mov dword [0x2e0988c], ebx
mov edi, 0x280
mov dword [0x568154], edi
mov dword [0x6b78e4], edi
mov esi, 0x1e0
mov dword [0x568158], esi
mov dword [0x6b78e8], esi
call fcn.00515250
mov byte [0x2e09814], al
cmp dword [ebp + 0xc], ebx
jne 0x515a86
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 0x5152b0
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3c], ebx
push 0x65
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x38], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x34], eax
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], str.Spiderman_PC
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x515a89
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 8]
test byte [0x2e0988c], 1
push 0
push ebx
push 0
push 0
je 0x515aa6
push esi
push edi
push 0
push 0
push 0x10c00000
jmp 0x515abf
push 1
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call esi
push eax
push 0
call esi
push eax
push 0
push 0
push 0x90000000
push str.Spiderman_PC
push str.Spiderman_PC
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x515afd
push str.Unable_to_create_application_window__r_n
call fcn.004015b0
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [0x2e098c0], esi
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push 0
call dword [sym.imp.USER32.dll_SetCursor]
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
push 0
push 0
push 0
mov ecx, dword [0x2e098c0]
push ecx
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
je 0x515ba4
push 0
push 0
mov eax, dword [0x2e098c0]
push eax
lea ecx, [ebp - 0x70]
push ecx
call edi
test eax, eax
je 0x515ba4
cmp eax, 0xffffffff
je 0x515ba4
mov eax, dword [ebp - 0x6c]
cmp eax, 0x104
je 0x515b89
cmp eax, 0x105
je 0x515b89
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
mov ecx, dword [0x2e098c0]
push ecx
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x515b4b
call fcn.00510fe0
push 2
push ebx
push esi
call fcn.004fde90
add esp, 0xc
mov al, byte [0x562d64]
test al, al
jne 0x515bdf
mov al, byte [0x2e09814]
test al, al
jne 0x515bdf
push 0x10
push str.SpideyPC_Fatal_Error
push str.Your_machine_does_not_support_MMX_or_have_3D_accelerator_hardware_so_this_game_can_not_run.
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x515cbe
mov dword [ebp - 4], 0
test byte [0x2e0988c], 2
je 0x515c18
push 0x10
push str.Spiderman_Error
push str.RENDERTEST_flag_not_supported_anymore_
mov eax, dword [0x2e098c0]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.005001b0
mov dword [ebp - 4], 0xffffffff
jmp 0x515cbe
call fcn.00455c90
mov dword [ebp - 4], 0xffffffff
jmp 0x515cbe
call fcn.00505960
call fcn.00510fc0
call fcn.005001b0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0
push 0
mov eax, dword [0x2e098c0]
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
call esi
test eax, eax
je 0x515d65
push 0
push 0
mov edx, dword [0x2e098c0]
push edx
lea eax, [ebp - 0x9c]
push eax
call edi
test eax, eax
je 0x515d65
cmp eax, 0xffffffff
je 0x515d65
mov eax, dword [ebp - 0x98]
cmp eax, 0x104
je 0x515d4c
cmp eax, 0x105
je 0x515d4c
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
mov eax, dword [0x2e098c0]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call esi
test eax, eax
jne 0x515d01
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10