Function at 0x10001aa70
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Print debug messages
Register raw input devices
Set current directory
Terminate process

Disassembly:
mov word [rsp + rcx*2 + 0x310], r13w
lea rcx, [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, str.ErrorLog
lea rcx, [0x1000a0600]
call fcn.1000033ec
mov esi, 0x18
mov rcx, rsi
call fcn.100002580
lea r14d, [rsi - 8]
cmp rax, r13
je 0x10002cd46
mov dword [rax], r13d
mov dword [rax + 4], r13d
mov dword [rax + 8], r14d
mov qword [rax + 0x10], r13
jmp 0x100001055
mov qword [0x10009e1d0], rax
mov rcx, rax
call fcn.10000a0c0
lea r9, str.Initializing_Virtual_FS
lea r15, str.Engine.cpp
mov r8, r15
mov edx, 0x469
mov ecx, r14d
call fcn.100002c98
mov rdx, qword [0x10009e158]
mov qword [rsp + 0x20], rdx
lea r9, str.Project_name_localized_to:__s
mov r8, r15
mov edx, 0x472
mov ecx, r14d
call fcn.100002c98
lea rcx, [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [rsp + 0x310]
mov qword [rsp + 0x20], rdx
lea r9, str.Using_working_directory:__s
mov r8, r15
mov edx, 0x476
mov ecx, r14d
call fcn.100002c98
lea r9, str.Initializing_GDI
mov r8, r15
mov edx, 0x47a
mov ecx, r14d
call fcn.100002c98
mov dword [rsp + 0x80], ebp
mov qword [rsp + 0x88], r13
mov dword [rsp + 0x94], r13d
mov dword [rsp + 0x90], ebp
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x80]
lea rcx, [0x10009fb80]
call sub.gdiplus.dll_GdiplusStartup
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.10001a0a8
mov ecx, 0x2868
call fcn.100002580
mov qword [rsp + 0x48], rax
cmp rax, r13
je 0x10002cd4e
xor edx, edx
mov rcx, rax
call fcn.10001af20
jmp 0x10000115b
mov qword [0x10009e198], rax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.100002c10
nop
lea r9, str.input_
mov r8b, byte [0x10009f9f7]
lea rdx, [rsp + 0x48]
mov rcx, qword [0x10009e198]
call fcn.10001b154
cmp al, r13b
sete dil
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_free
cmp dil, r13b
jne 0x10002cd56
call fcn.100019804
cmp al, r13b
je 0x10002cdd8
mov edi, 0xc
cmp byte [0x10009e052], r13b
jne 0x10002cdf7
lea r9, str.Adding_system_events
mov r8, r15
mov edx, 0x4d5
mov ecx, r14d
call fcn.100002c98
lea rdx, [0x100047434]
mov ecx, r12d
call fcn.10001c114
lea rdx, [0x10004749c]
mov ecx, 4
call fcn.10001c114
lea rdx, [0x1000474d4]
mov ecx, 5
call fcn.10001c114
lea rdx, [0x100047468]
mov ecx, 3
call fcn.10001c114
lea rdx, [0x100047508]
mov ecx, 6
call fcn.10001c114
lea rdx, [0x10004753c]
mov ecx, 7
call fcn.10001c114
lea rdx, [0x100047570]
mov ecx, 8
call fcn.10001c114
lea rdx, [0x1000475a8]
mov ecx, 9
call fcn.10001c114
lea rdx, [0x1000475e0]
mov ecx, 0xa
call fcn.10001c114
lea rdx, [0x100047618]
mov ecx, 0xb
call fcn.10001c114
lea rdx, [0x10004764c]
mov ecx, ebp
call fcn.10001c114
lea rdx, [0x100047728]
mov ecx, 0xd
call fcn.10001c114
lea rdx, [0x100047694]
mov ecx, edi
call fcn.10001c114
lea rdx, [0x10004775c]
mov ecx, 0xe
call fcn.10001c114
lea rdx, [0x100047790]
mov ecx, 0xf
call fcn.10001c114
lea rdx, [0x100009114]
mov ecx, r14d
call fcn.10001c114
lea rdx, [0x100009154]
mov ecx, 0x11
call fcn.10001c114
lea rdx, [0x1000477d0]
mov ecx, 0x12
call fcn.10001c114
lea rdx, [0x100047804]
mov ecx, 0x13
call fcn.10001c114
lea rdx, [0x100047838]
mov ecx, 0x14
call fcn.10001c114
lea rdx, [0x10004786c]
mov ecx, 0x15
call fcn.10001c114
lea rdx, [0x1000478a0]
mov ecx, 0x16
call fcn.10001c114
lea rdx, [0x10000b4a8]
mov ecx, 0x17
call fcn.10001c114
lea rdx, [0x1000473cc]
mov ecx, esi
call fcn.10001c114
lea rdx, [0x1000478d4]
mov ecx, 0x19
call fcn.10001c114
lea rdx, [0x100047908]
mov ecx, 0x1a
call fcn.10001c114
lea rdx, [0x10004793c]
mov ecx, 0x1b
call fcn.10001c114
lea rdx, [0x100047970]
mov ecx, 0x1c
call fcn.10001c114
lea rdx, [0x1000479a4]
mov ecx, 0x1d
call fcn.10001c114
lea rdx, [0x1000479dc]
mov ecx, 0x1e
call fcn.10001c114
lea rdx, [0x100047a4c]
mov ecx, 0x1f
call fcn.10001c114
lea rdx, [0x100047a84]
mov edi, 0x20
mov ecx, edi
call fcn.10001c114
lea rdx, [0x100047abc]
lea ecx, [rdi + 1]
call fcn.10001c114
lea rdx, [0x100047af4]
lea ecx, [rdi + 2]
call fcn.10001c114
lea rdx, [0x100047400]
lea ecx, [rdi + 5]
call fcn.10001c114
lea rdx, [0x100047a14]
lea ecx, [rdi + 3]
call fcn.10001c114
lea r9, str.Registering_Node_Types
mov r8, r15
mov edx, 0x500
mov ecx, r14d
call fcn.100002c98
lea rdx, [0x10000d0fc]
lea rcx, str.Button
call fcn.10001e3fc
lea rdx, [0x10000e9a8]
lea rcx, str.Label
call fcn.10001e3fc
lea rdx, [0x10000cbc8]
lea rcx, str.Base
call fcn.10001e3fc
mov r8, rsi
xor edx, edx
lea rcx, [0x10009f990]
call sub.msvcrt.dll_memset
mov byte [0x10009e058], bpl
lea rdx, [0x10000b738]
lea rcx, str.Sprite
call fcn.10001e3fc
lea rdx, [0x10004b604]
lea rcx, str.Emitter
call fcn.10001e3fc
lea rdx, [0x10004bcb0]
lea rcx, str.Shot
call fcn.10001e3fc
lea rdx, [0x10004be60]
lea rcx, str.Number
call fcn.10001e3fc
lea r9, str.Initializing_Timekeeping
mov r8, r15
mov edx, 0x50b
mov ecx, r14d
call fcn.100002c98
call fcn.10001bf48
cmp al, r13b
je 0x10002ce93
lea rax, [fcn.100012ed8]
mov qword [0x10009e240], rax
lea r9, str.Initializing_ResourceManager
mov r8, r15
mov edx, 0x518
mov ecx, r14d
call fcn.100002c98
mov ecx, 0x80
call fcn.100002580
cmp rax, r13
je 0x10002ceb2
mov rcx, rax
call fcn.10001bff8
jmp 0x100001554
mov qword [0x10009e1e0], rax
mov rcx, rax
call fcn.10000a0c0
mov rcx, qword [0x10009e1e0]
call fcn.10001da24
cmp al, r13b
je 0x10002ceba
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov rax, qword [0x10009e170]
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x7c], r13b
mov dword [rsp + 0x78], edi
mov byte [rsp + 0x7d], r13b
mov rcx, qword [0x10009e180]
mov rax, qword [rcx]
lea r8, [rsp + 0x74]
lea rdx, [rsp + 0x70]
call qword [rax + 0x18]
cmp byte [0x10009fb74], r13b
jne 0x10002ced9
lea r9, str.Initializing_RenderManager
mov r8, r15
mov edx, 0x533
mov ecx, r14d
call fcn.100002c98
mov ecx, 0xd8
call fcn.100002580
cmp rax, r13
je 0x10002cef2
mov rcx, rax
call fcn.10001be10
jmp 0x1000015fb
mov qword [0x10009e1b8], rax
mov rcx, rax
call fcn.10000a0c0
lea rdx, [rsp + 0x68]
mov rcx, qword [0x10009e1b8]
call fcn.10001f97c
cmp al, r13b
je 0x10002cefa
lea r9, str.Initializing_Audio
mov r8, r15
mov edx, 0x53e
mov ecx, r14d
call fcn.100002c98
mov ecx, 0x38
call fcn.100002580
cmp rax, r13
je 0x10002cf19
mov dword [rax + 0x20], r13d
mov dword [rax + 0x24], r13d
mov dword [rax + 0x28], r14d
mov qword [rax + 0x30], r13
mov qword [rax + 0x10], r13
mov dword [rax + 0x1c], r13d
mov dword [rax + 0x18], r12d
mov ecx, 0x64
mov dword [rax + 8], ecx
mov dword [rax], ecx
mov dword [rax + 4], ecx
jmp 0x100001679
mov qword [0x10009e1c0], rax
mov rcx, rax
call fcn.10000a0c0
mov rcx, qword [0x10009e1c0]
call fcn.10001fd94
cmp al, r13b
je 0x10002cf21
lea r9, str.Initializing_XNA_Common_Controller
mov r8, r15
mov edx, 0x54a
mov ecx, r14d
call fcn.100002c98
mov ecx, 0x90
call fcn.100002580
cmp rax, r13
je 0x10002cf40
xor r9d, r9d
mov r8b, byte [0x10009e052]
mov rdx, qword [0x10009e168]
mov rcx, rax
call fcn.10001ce60
mov rdi, rax
jmp 0x1000016e5
mov qword [0x10009e178], rdi
cmp qword [rdi + 8], r13
jne 0x10002cf48
mov byte [rdi + 0x14], bpl
lea rax, [rdi + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, rdi
lea r8, [0x10001ce50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 8], rax
lea r9, str.Initializing_Timer
mov r8, r15
mov edx, 0x551
mov ecx, r14d
call fcn.100002c98
mov ecx, 0x50
call fcn.100002580
mov rdi, rax
cmp rax, r13
je 0x10002cf56
mov esi, 0x40
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rdi], rax
mov r12d, 0x200
mov rcx, r12
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rdi + 8], rax
mov dword [rdi + 0x10], r13d
mov dword [rdi + 0x14], r14d
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rdi + 0x18], rax
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rdi + 0x20], rax
mov dword [rdi + 0x28], r13d
mov dword [rdi + 0x2c], r14d
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rdi + 0x30], rax
mov rcx, r12
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rdi + 0x38], rax
mov dword [rdi + 0x40], r13d
mov dword [rdi + 0x44], r14d
jmp 0x1000017bf
mov qword [0x10009e1d8], rdi
mov rcx, rdi
call fcn.10000a0c0
lea r9, str.Loading_Fonts
mov r8, r15
mov edx, 0x55c
mov ecx, r14d
call fcn.100002c98
lea rdx, str.xmlFonts.xml
mov rcx, qword [0x10009e1d0]
call fcn.10000adb0
cmp rax, r13
jne 0x10002cf5e
lea r9, str.No_Font_Xml_Found
mov r8, r15
mov edx, 0x592
mov ecx, r14d
call fcn.100002c98
lea r9, str.Registering_for_session_notification
mov r8, r15
mov edx, 0x597
mov ecx, r14d
call fcn.100002c98
xor edx, edx
mov rcx, qword [0x10009e168]
call sub.WTSAPI32.dll_WTSRegisterSessionNotification
lea rdx, str.engine.xml
mov rcx, qword [0x10009e1d0]
call fcn.10000adb0
mov rdi, rax
mov byte [0x10009e050], bpl
lea r9, str.Engine_Initialization_Complete:_Initializing_Game_Code.
mov r8, r15
mov edx, 0x59f
mov ecx, r14d
call fcn.100002c98
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x60]
cmp al, r13b
je 0x10002d086
mov byte [0x10009e050], r13b
cmp rdi, r13
je 0x1000018ac
or r8d, 0xffffffff
lea rdx, str._PauseOnLostFocus
mov rcx, rdi
call fcn.10000a6d0
cmp eax, r13d
setg byte [0x10009e04e]
call fcn.100013240
mov qword [0x10009e188], r13
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x50]
cmp rax, r13
je 0x1000018ed
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x50]
mov rdi, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov qword [0x10009e188], rax
mov byte [0x10009e04b], r13b
lea rcx, [0x10009fb80]
call qword [rsp + 0x98]
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_PeekMessageW]
cmp eax, r13d
jne 0x100002e63
call fcn.100001e90
jmp 0x100001902
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, r13d
je 0x100028678
mov rdx, qword [0x10009e188]
cmp rdx, r13
je 0x100002eac
lea r8, [rsp + 0xb0]
mov rcx, qword [0x10009e168]
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
cmp eax, r13d
jne 0x100001902
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x100001902
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x720
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x10009e100]
xor rax, rsp
mov qword [rsp + 0x710], rax
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
xor r8d, r8d
xor edx, edx
call fcn.100019ec4
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x20]
mov rdi, rax
xor eax, eax
or r14, 0xffffffffffffffff
mov rcx, r14
repne scasw ax, word [rdi]
not rcx
lea ebp, [rax + 1]
sub rcx, rbp
lea edi, [rcx + 0x18]
lea r12d, [rax + 2]
mov rax, r12
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.100002be0
mov rsi, rax
xor r13d, r13d
cmp rax, r13
je 0x10002cc57
lea r8, str.LocalOberon_
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_wcscpy_s
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x20]
mov r8, rax
mov rdx, rdi
mov rcx, rsi
call sub.msvcrt.dll_wcscat_s
lea r8, str._Singleton
mov rdx, rdi
mov rcx, rsi
call sub.msvcrt.dll_wcscat_s
mov r8, rsi
mov edx, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
mov rcx, rsi
call sub.msvcrt.dll_free
cmp rdi, r13
je 0x10002cc5e
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x10002cc6c
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [rsp + 0x60], r13d
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r8, rax
mov r15d, 5
mov eax, dword [rsp + 0x60]
cmp eax, ebp
jg 0x10002ccd8
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov sil, r13b
mov qword [rsp + 0x48], r13
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x100083068]
mov r8d, ebp
xor edx, edx
lea rcx, [0x100083058]
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, r13d
jl 0x10001acf9
mov edi, 0x104
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x100]
xor r8d, r8d
xor edx, edx
lea rcx, [0x100082f18]
call sub.SHELL32.dll_SHGetFolderPathEx
cmp eax, r13d
jl 0x10001acf9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0xa8]
mov r11, rax
mov rdx, rdi
lea rcx, [rsp + 0x100]
cmp word [rcx], r13w
je 0x10001ac48
add rcx, r12
sub rdx, rbp
jne 0x10001ac3a
cmp rdx, r13
je 0x10001acf9
mov rcx, rdi
sub rcx, rdx
sub rdi, rcx
lea rax, [rsp + rcx*2 + 0x100]
mov r8d, r13d
je 0x10002cd1e
lea rdx, [rdi + rcx + 0x7ffffefb]
sub r11, rax
cmp rdx, r13
je 0x10001ac97
movzx ecx, word [r11 + rax]
cmp cx, r13w
je 0x10001ac97
mov word [rax], cx
add rax, r12
sub rdi, rbp
sub rdx, rbp
cmp rdi, r13
jne 0x10001ac76
cmp rdi, r13
je 0x10002cd1e
mov word [rax], r13w
cmp r8d, r13d
jl 0x10001acf9
lea rcx, [rsp + 0x100]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [0x10009e160], rax
cmp rax, r13
je 0x10001acf9
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, r13d
je 0x10001acf9
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov rdx, qword [0x10009e160]
call qword [rax + 0x30]
cmp eax, r13d
jl 0x10001acf9
movzx esi, sil
cmp dword [rsp + 0x40], r13d
cmovne esi, ebp
mov rcx, qword [rsp + 0x48]
cmp rcx, r13
je 0x10001ad09
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp sil, r13b
je 0x10002cd2c
mov ecx, 8
call fcn.100002580
cmp rax, r13
je 0x10002cd35
mov qword [rax], r13
mov qword [0x10009e190], rax
jmp 0x10001ad31
lea rcx, [0x100047d68]
call qword [sym.imp.msvcrt.dll_int____cdecl___unsigned_long_long_unsigned___int64_____cdecl__set_new_handler_int____cdecl___unsigned_long_long_unsigned___int64___]
mov ecx, ebp
call qword [sym.imp.msvcrt.dll_int___cdecl__set_new_mode_int_]
mov qword [0x10009e180], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x20]
mov rcx, rax
call fcn.1000025b4
mov qword [0x10009e158], rax
mov r8d, 0x200
lea rdx, [rsp + 0x310]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [rax - 1]
movsxd rdx, ecx
cmp ecx, eax
ja 0x100001009
lea rdx, [rsp + rdx*2 + 0x310]
cmp word [rdx], 0x2f
je section..text
cmp word [rdx], 0x5c
je section..text
dec ecx
sub rdx, r12
cmp ecx, eax
jbe 0x10001ad91
jmp 0x10002cd41
mov rcx, qword [0x10009fb80]
call qword [rsp + 0xa0]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x90]
xor ecx, ecx
call fcn.1000286a0
int3
xor al, al
jmp 0x10002d0a5
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x20]
mov rcx, rax
call fcn.1000025b4
mov rdi, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rsi, r13
je 0x10002ccca
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsIconic]
cmp eax, r13d
je 0x10002ccb8
mov edx, 0xa
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rsi
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add r8, 8
dec eax
mov r9d, eax
mov al, byte [0x10009e052]
xor edx, edx
lea rdi, str._mce
mov rsi, qword [r8]
mov rcx, r15
repe cmpsw word [rsi], word [rdi]
je 0x10002cd00
sbb edx, edx
sbb edx, r14d
movzx eax, al
cmp edx, r13d
cmove eax, ebp
mov byte [0x10009e052], al
add r8, 8
sub r9, rbp
je 0x10001aba8
jmp 0x10002cce7
sub rax, r12
mov r8d, 0x8007007a
jmp 0x10001aca0
mov ecx, r15d
call fcn.1000286a0
int3
mov qword [0x10009e190], r13
jmp 0x10001ad31
jmp 0x100001009
mov rax, r13
jmp 0x100001055
mov rax, r13
jmp 0x10000115b
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov edx, 0x37c
lea rcx, [rsp + 0xe0]
call fcn.100003810
nop
mov rdi, qword [rax + 0x10]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov r8, rax
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.10001f17c
nop
mov rcx, qword [rsp + 0xf0]
call sub.msvcrt.dll_free
mov byte [rsp + 0x30], bpl
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 0xfffe
mov r8d, ebp
xor edx, edx
mov ecx, 0x385
call fcn.100051f7c
xor ecx, ecx
call fcn.1000286a0
nop
jmp 0x10003e010
lea r9, str.Window_Creation_Failed
mov r8, r15
mov edx, 0x4ae
mov ecx, r14d
call fcn.100002c98
xor ecx, ecx
call fcn.1000286a0
int3
lea r9, str.Initializing_MCE_Dialog
mov r8, r15
mov edx, 0x4bb
mov ecx, r14d
call fcn.100002c98
xor ecx, ecx
call fcn.100051e30
cmp byte [0x10009e052], r13b
je 0x1000011d1
lea r9, str.Registering_for_raw_input__for_remote_control
mov r8, r15
mov edx, 0x4c4
mov ecx, r14d
call fcn.100002c98
mov word [rsp + 0x48], di
mov word [rsp + 0x4a], bp
mov dword [rsp + 0x4c], r13d
mov rax, qword [0x10009e168]
mov qword [rsp + 0x50], rax
mov r8d, r14d
mov edx, ebp
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
cmp eax, r13d
jne 0x1000011d1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea r9, str.Register_failed__winerror__d
mov r8, r15
mov edx, 0x4cf
mov ecx, r14d
call fcn.100002c98
nop
jmp 0x1000011d1
lea r9, str.Failed_to_initialize_timekeeping
mov r8, r15
mov edx, 0x50e
mov ecx, r14d
call fcn.100002c98
xor ecx, ecx
call fcn.1000286a0
int3
mov rax, r13
jmp 0x100001554
lea r9, str.Failed_to_initialize_ResourceManager
mov r8, r15
mov edx, 0x51c
mov ecx, r14d
call fcn.100002c98
xor ecx, ecx
call fcn.1000286a0
int3
mov eax, dword [rsp + 0x70]
add eax, eax
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x74]
add eax, eax
mov dword [rsp + 0x74], eax
jmp 0x1000015c7
mov rax, r13
jmp 0x1000015fb
lea r9, str.Failed_to_initialize_RenderManager
mov r8, r15
mov edx, 0x537
mov ecx, r14d
call fcn.100002c98
xor ecx, ecx
call fcn.1000286a0
int3
mov rax, r13
jmp 0x100001679
lea r9, str.Failed_to_initialize_Audio
mov r8, r15
mov edx, 0x542
mov ecx, r14d
call fcn.100002c98
xor ecx, ecx
call fcn.1000286a0
int3
mov rdi, r13
jmp 0x1000016e5
mov rcx, rdi
call fcn.1000296dc
nop
jmp 0x1000016f6
mov rdi, r13
jmp 0x1000017bf
lea r8, [rsp + 0x40]
lea rdx, str._Font
mov rcx, rax
call fcn.10000badc
mov r12, rax
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x20], ecx
lea r9, str._d_Fonts_Found
mov r8, r15
mov edx, 0x567
mov ecx, r14d
call fcn.100002c98
mov ebp, r13d
cmp dword [rsp + 0x40], r13d
jbe 0x10002d074
mov rsi, r12
mov rcx, qword [rsi]
call fcn.10000b9f0
mov rdi, rax
mov qword [rsp + 0x20], rax
lea r9, str.Loading_Font:__s
mov r8, r15
mov edx, 0x56c
mov ecx, r14d
call fcn.100002c98
mov rcx, rdi
call qword [sym.imp.GDI32.dll_AddFontResourceW]
cmp eax, r13d
jne 0x10002d000
mov qword [rsp + 0x20], rdi
lea r9, str.Couldnt_add_font:__s
mov r8, r15
mov edx, 0x584
mov ecx, r14d
call fcn.100002c98
mov rcx, rdi
call sub.msvcrt.dll_free
jmp 0x10002d064
mov eax, dword [0x10009e350]
inc eax
mov dword [0x10009e350], eax
mov ecx, dword [0x10009e354]
cmp eax, ecx
jbe 0x10002d057
add ecx, dword [0x10009e358]
mov dword [0x10009e354], ecx
mov edx, ecx
shl rdx, 3
mov rcx, qword [0x10009e360]
call qword [sym.imp.msvcrt.dll_realloc]
mov rdx, rax
cmp rax, r13
jne 0x10002d048
xor ecx, ecx
call fcn.10000a0c0
jmp 0x10002d064
mov qword [0x10009e360], rax
mov eax, dword [0x10009e350]
jmp 0x10002d05e
mov rdx, qword [0x10009e360]
dec eax
mov qword [rdx + rax*8], rdi
inc ebp
add rsi, 8
cmp ebp, dword [rsp + 0x40]
jb 0x10002cfa5
mov rcx, r12
call sub.msvcrt.dll_free
mov ebp, 1
jmp 0x100001818
lea r9, str.Game_code_initialization_failed.
mov r8, r15
mov edx, 0x5a2
mov ecx, r14d
call fcn.100002c98
xor ecx, ecx
call fcn.1000286a0
int3
mov rcx, qword [rsp + 0x710]
xor rcx, rsp
call fcn.1000024e0
lea r11, [rsp + 0x720]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x10003e036
xor eax, eax
jmp 0x10003e08f
mov ecx, 0x20
call fcn.100002580
mov rbx, rax
test rax, rax
je 0x10003e06c
and qword [rbx + 8], 0
and dword [rbx + 0x10], 0
and dword [rbx + 0x14], 0
lea rax, [0x10007ca80]
mov dword [rbx + 0x18], 1
mov byte [rbx + 0x1c], 1
mov qword [rbx], rax
jmp 0x10003e06e
xor ebx, ebx
mov rax, qword [rbx]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x70]
test al, al
jne 0x10003e08c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
jmp 0x10003e032
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret