Function at 0x4e9dc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp], str.SDL_WINDOWID
call sym.OpenBOR.elf_SDL_getenv
mov ebx, eax
mov dword [0x5eab58], 0
mov dword [0x5eab68], 0
mov dword [0x5eab78], 0
mov dword [0x5eab5c], 0
mov dword [0x5eab6c], 0
mov dword [0x5eab7c], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sym.OpenBOR.elf_SDL_RegisterApp
xor eax, eax
test ebx, ebx
setne al
mov dword [0x5e815c], eax
test eax, eax
je 0x4e9ea4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0053cca0
mov dword [0x5e812c], eax
test eax, eax
je 0x4ea130
mov dword [esp + 4], 0xfffffffc
mov dword [esp], eax
call sub.USER32.dll_GetWindowLongA
sub esp, 8
mov dword [0x5e8b28], eax
mov dword [esp + 8], 0x4e55f8
mov dword [esp + 4], 0xfffffffc
mov eax, dword [0x5e812c]
mov dword [esp], eax
call sub.USER32.dll_SetWindowLongA
sub esp, 0xc
jmp 0x4e9f2a
mov eax, dword [0x5e8120]
mov dword [esp + 0x2c], 0
mov edx, dword [0x5e8128]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xca0000
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.USER32.dll_CreateWindowExA
sub esp, 0x30
mov dword [0x5e812c], eax
test eax, eax
je 0x4ea143
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x5e8b38
mov dword [esp + 4], 0x700
mov eax, dword [0x5e8128]
mov dword [esp], eax
call dword [0x71fd58]
sub esp, 0x10
test eax, eax
jne 0x4ea205
mov dword [0x5e8b48], 0
mov ebx, dword [str.keyboard]
test ebx, ebx
je 0x4ea105
mov edi, 0x54aec4
xor esi, esi
nop
mov eax, dword [0x5e8b38]
mov edx, dword [eax]
mov dword [esp + 0xc], 0
lea ecx, [ebp - 0x1c]
mov dword [esp + 8], ecx
mov ecx, dword [edi]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
test eax, eax
jne 0x4ea16f
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
lea ecx, [esi + 0x5eab58]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x59d1e0
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push ecx
test ebx, ebx
jne 0x4ea156
mov ebx, dword [0x5e812c]
mov dword [esp], ebx
call sub.USER32.dll_GetParent
push edx
mov edx, ebx
mov ebx, eax
test eax, eax
jne 0x4e9fe4
mov eax, dword [esi + 0x5eab58]
mov ecx, dword [eax]
mov ebx, dword [edi + 8]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [ecx + 0x34]
sub esp, 0xc
test eax, eax
jne 0x4ea188
mov eax, dword [esi + 0x5eab58]
mov edx, dword [eax]
mov ecx, dword [edi + 4]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x2c]
sub esp, 8
test eax, eax
jne 0x4ea1a1
mov dword [ebp - 0x30], 0x14
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x200
mov eax, dword [esi + 0x5eab58]
mov edx, dword [eax]
lea ecx, [ebp - 0x30]
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
test eax, eax
jne 0x4ea1ba
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateEventA
sub esp, 0x10
mov dword [esi + 0x5eab68], eax
test eax, eax
je 0x4ea1d3
mov edx, dword [esi + 0x5eab58]
mov ecx, dword [edx]
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [ecx + 0x30]
sub esp, 8
test eax, eax
jne 0x4ea1ec
mov eax, dword [edi + 0x10]
mov dword [esi + 0x5eab78], eax
mov eax, dword [esi + 0x5eab58]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x1c]
push eax
inc dword [0x5e8b48]
mov eax, dword [edi + 0x14]
add edi, 0x18
add esi, 4
test eax, eax
jne 0x4e9f7c
mov dword [0x5eab98], 0
mov dword [esp], 0x17
call sub.USER32.dll_GetSystemMetrics
push ebx
mov dword [0x5e86f8], eax
call fcn.004e6158
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp], str.Couldnt_get_user_specified_window
call sym.OpenBOR.elf_SDL_SetError
mov eax, 0xffffffff
jmp 0x4ea128
mov dword [esp], str.Couldnt_create_window
call sym.OpenBOR.elf_SDL_SetError
mov eax, 0xffffffff
jmp 0x4ea128
mov edx, ebx
mov eax, str.DirectInputDevice::QueryInterface
call fcn.004e93b0
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edx, eax
mov eax, str.DirectInput::CreateDevice
call fcn.004e93b0
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edx, eax
mov eax, str.DirectInputDevice::SetCooperativeLevel
call fcn.004e93b0
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edx, eax
mov eax, str.DirectInputDevice::SetDataFormat
call fcn.004e93b0
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edx, eax
mov eax, str.DirectInputDevice::SetProperty
call fcn.004e93b0
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp], str.Couldnt_create_DirectInput_event
call sym.OpenBOR.elf_SDL_SetError
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edx, eax
mov eax, str.DirectInputDevice::SetEventNotification
call fcn.004e93b0
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edx, eax
mov eax, str.DirectInputCreate
call fcn.004e93b0
or eax, 0xffffffff
jmp 0x4ea128