Function at 0x140123b60
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov eax, dword [0x140e269b8]
xor ebx, ebx
mov dword [0x140545858], eax
lea rax, [0x140e269e0]
mov dword [0x140545868], ebx
mov byte [0x140545c70], bl
mov dword [0x1405456f0], ebx
mov dword [0x1405456f4], ebx
mov qword [0x140545c68], rax
mov byte [0x140546170], bl
mov dword [0x140e2699c], ebx
mov dword [0x140e269bc], ebx
mov dword [0x140545d7c], ebx
mov dword [0x1405458d8], ebx
call fcn.140123430
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
call fcn.140250d70
lea ecx, [rbx + 1]
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
call qword [sym.imp.WINMM.dll_timeGetTime]
lea edx, [rbx + 1]
mov ecx, 0xd3b8
mov dword [0x140e26e08], eax
call fcn.140290de0
lea rdx, [0x140110ee0]
lea ecx, [rbx + 2]
call fcn.14019b5e0
cmp dword [0x140545868], ebx
je 0x140123df2
mov rdx, rbx
lea rcx, [0x140000000]
nop word [rax + rax]
movzx eax, byte [rdx + rcx + 0x31cde8]
inc rdx
mov byte [rdx + rcx + 0x54655f], al
test al, al
jne 0x140123c30
mov rdx, rbx
nop dword [rax]
movzx eax, byte [rdx + rcx + 0x31cdf8]
inc rdx
mov byte [rdx + rcx + 0x545bff], al
test al, al
jne 0x140123c50
mov rdx, rbx
nop dword [rax]
movzx eax, byte [rdx + rcx + 0x31c1e8]
inc rdx
mov byte [rsp + rdx + 0x8f], al
test al, al
jne 0x140123c70
mov rdx, rbx
nop dword [rax]
movzx eax, byte [rdx + rcx + 0x31cde8]
inc rdx
mov byte [rsp + rdx + 0xff], al
test al, al
jne 0x140123c90
lea rax, [0x1401115f0]
lea r9, [rsp + 0x30]
lea r8, str.compatibility
lea rdx, str.windows
lea rcx, str.core.ini
mov byte [0x1405458e0], bl
mov qword [0x140546638], rax
mov dword [rsp + 0x30], ebx
call fcn.14026e720
cmp dword [rsp + 0x30], ebx
je 0x140123dae
lea r8, [rsp + 0x38]
mov edx, 5
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x140123dae
mov rcx, qword [rsp + 0x38]
lea rdx, [0x1405458e0]
mov qword [rsp + 0x2a0], rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1405458e0]
repne scasb al, byte [rdi]
mov rax, qword [str.PiBoSo_]
lea rcx, [0x1405458e0]
mov qword [rdi - 1], rax
movzx eax, byte [0x1403289d0]
mov byte [rdi + 7], al
call sub.MSVCR90.dll__mkdir
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1405458e0]
lea r8, [rsp + 0x100]
repne scasb al, byte [rdi]
xor edx, edx
nop
movzx eax, byte [r8 + rdx]
inc rdx
mov byte [rdi + rdx - 2], al
test al, al
jne 0x140123d70
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1405458e0]
repne scasb al, byte [rdi]
movzx eax, word [0x1403289d4]
lea rcx, [0x1405458e0]
mov word [rdi - 1], ax
call sub.MSVCR90.dll__mkdir
mov rdi, qword [rsp + 0x2a0]
mov ecx, 3
call fcn.140147290
lea rcx, [rsp + 0x90]
mov edx, 0x1207
call fcn.140290f70
call fcn.140122eb0
test eax, eax
je 0x140123de8
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 0x2c]
call fcn.140025730
test eax, eax
je 0x14012437c
mov eax, 1
jmp 0x140124384
xor eax, eax
lea r9, [rsp + 0x50]
lea r8, str.colormipmaps
lea rdx, str.hacks
lea rcx, str.core.ini
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call fcn.14026e720
lea r9, [rsp + 0x58]
lea r8, str.nopbuffer
lea rdx, str.hacks
lea rcx, str.core.ini
call fcn.14026e720
lea r9, [rsp + 0x54]
lea r8, str.norendertotexture
lea rdx, str.hacks
lea rcx, str.core.ini
call fcn.14026e720
lea r9, [rsp + 0x60]
lea r8, str.nopbo
lea rdx, str.hacks
lea rcx, str.core.ini
call fcn.14026e720
lea r9, [rsp + 0x5c]
lea r8, str.nofbo
lea rdx, str.hacks
lea rcx, str.core.ini
call fcn.14026e720
lea r9, [rsp + 0x64]
lea r8, str.novbo
lea rdx, str.hacks
lea rcx, str.core.ini
call fcn.14026e720
lea r9, [rsp + 0x68]
lea r8, str.force32ib
lea rdx, str.hacks
lea rcx, str.core.ini
call fcn.14026e720
lea r9, [rsp + 0x6c]
lea r8, str.interleavedvb
lea rdx, str.hacks
lea rcx, str.core.ini
call fcn.14026e720
lea r9, [rsp + 0x70]
lea r8, str.interleavedvbpadding
lea rdx, str.hacks
lea rcx, str.core.ini
call fcn.14026e720
lea r9, [rsp + 0x74]
lea r8, str.mapvb
lea rdx, str.hacks
lea rcx, str.core.ini
call fcn.14026e720
lea r9, [rsp + 0x30]
lea r8, [0x140328af8]
lea rdx, str.framerate
lea rcx, str.core.ini
mov dword [rsp + 0x30], 0xc8
call fcn.14026e720
mov ecx, dword [rsp + 0x30]
lea eax, [rcx - 0xa]
cmp eax, 0x3de
ja 0x140123f97
mov eax, 0x3e8
mov dword [0x140545718], 1
cdq
idiv ecx
mov dword [0x140546168], eax
jmp 0x140123f9d
mov dword [0x140545718], ebx
mov eax, dword [str.JPEG]
lea rcx, [rsp + 0x80]
lea r9, [rsp + 0x80]
mov dword [rcx], eax
movzx eax, byte [0x140328b10]
lea r8, str.format
mov byte [rcx + 4], al
lea rdx, str.screenshot
lea rcx, str.core.ini
mov dword [0x140545728], ebx
mov dword [rsp + 0x20], 0xa
call fcn.14026e3c0
lea rdx, str.TARGA
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll__stricmp
test eax, eax
jne 0x140124007
mov dword [0x140545c64], ebx
jmp 0x140124069
lea rdx, [0x140328b2c]
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll__stricmp
test eax, eax
jne 0x140124027
mov dword [0x140545c64], ebx
jmp 0x140124069
lea rdx, str.JPEG
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll__stricmp
test eax, eax
jne 0x14012404b
mov dword [0x140545c64], 1
jmp 0x140124069
lea rdx, [0x140328b30]
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll__stricmp
mov dword [0x140545c64], 1
lea r9, [0x1405459ec]
lea r8, str.width
lea rdx, [0x140328b3c]
lea rcx, str.core.ini
mov byte [0x140545730], bl
call fcn.14026e720
lea r9, [0x140545d74]
lea r8, str.height
lea rdx, [0x140328b3c]
lea rcx, str.core.ini
call fcn.14026e720
lea r9, [0x140545720]
lea r8, str.multisample
lea rdx, [0x140328b3c]
lea rcx, str.core.ini
call fcn.14026e720
lea r9, [rsp + 0x4c]
lea r8, str.monitor
lea rdx, str.display
lea rcx, str.core.ini
mov dword [rsp + 0x4c], ebx
call fcn.14026e720
lea r9, [rsp + 0x170]
lea r8, str.setup
lea rdx, str.display
lea rcx, str.core.ini
mov byte [rsp + 0x170], bl
mov dword [rsp + 0x20], 0x104
call fcn.14026e3c0
mov edx, dword [0x140545700]
test edx, edx
je 0x140124191
sub edx, 1
je 0x140124169
sub edx, 1
je 0x140124154
cmp edx, 1
jne 0x140124191
call fcn.140243470
test eax, eax
jne 0x140124191
mov dword [0x140545834], 2
jmp 0x140124191
call fcn.140240c80
test eax, eax
jne 0x140124191
mov dword [0x140545834], 1
jmp 0x140124191
call fcn.140240c80
test eax, eax
je 0x140124187
call fcn.140243470
test eax, eax
jne 0x140124191
mov dword [0x140545834], 2
jmp 0x140124191
mov dword [0x140545834], 1
lea rcx, [rsp + 0x50]
call fcn.14022c3c0
mov edx, dword [rsp + 0x4c]
mov rcx, qword [0x140e26de8]
lea r8, [rsp + 0x170]
call fcn.1402428e0
test eax, eax
jne 0x140123de8
lea r9, [rsp + 0x40]
lea r8, str.ffupdateperiod
lea rdx, str.input
lea rcx, str.core.ini
mov dword [rsp + 0x40], 0xa
call fcn.14026e720
lea r9, [rsp + 0x44]
lea r8, str.ledsupdateperiod
lea rdx, str.input
lea rcx, str.core.ini
mov dword [rsp + 0x44], 0x1e
call fcn.14026e720
lea r9, [rsp + 0x48]
lea r8, str.ffspring
lea rdx, str.input
lea rcx, str.core.ini
mov dword [rsp + 0x48], ebx
call fcn.14026e720
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
mov rcx, qword [0x140e26de8]
lea rdx, str.joysticks.cfg
mov qword [rsp + 0x20], rdx
mov edx, dword [rsp + 0x40]
call fcn.14027da80
call fcn.14027ddb0
call fcn.14026fc00
mov qword [0x140540d28], rbx
call fcn.140110ca0
lea rcx, [0x14052fba0]
xor edx, edx
mov r8d, 0x11170
mov dword [0x140e269c0], ebx
call sub.MSVCR90.dll_memset
mov rdx, rbx
lea rcx, [0x140000000]
nop dword [rax]
movzx eax, byte [rdx + rcx + 0x31cde8]
inc rdx
mov byte [rdx + rcx + 0x54655f], al
test al, al
jne 0x140124290
mov rdx, rbx
nop dword [rax]
movzx eax, byte [rcx + rdx + 0x31cdf8]
inc rdx
mov byte [rdx + rcx + 0x545bff], al
test al, al
jne 0x1401242b0
mov rdx, rbx
nop dword [rax]
movzx eax, byte [rdx + rcx + 0x31c1e8]
inc rdx
mov byte [rsp + rdx + 0x8f], al
test al, al
jne 0x1401242d0
mov rdx, rbx
nop dword [rax]
movzx eax, byte [rdx + rcx + 0x31cde8]
inc rdx
mov byte [rsp + rdx + 0xff], al
test al, al
jne 0x1401242f0
lea rax, [0x1401115f0]
lea r9, [rsp + 0x38]
lea r8, str.compatibility
lea rdx, str.windows
lea rcx, str.core.ini
mov byte [0x1405458e0], bl
mov qword [0x140546638], rax
mov dword [rsp + 0x38], ebx
call fcn.14026e720
cmp dword [rsp + 0x38], ebx
je 0x140124350
lea rcx, [rsp + 0x100]
call fcn.1401231d0
mov ecx, 3
call fcn.140147290
lea rcx, [rsp + 0x90]
mov edx, 0x1207
call fcn.140290f70
mov ecx, dword [0x1405456f4]
xor r8d, r8d
xor edx, edx
jmp 0x140123ddb
mov dword [0x140545844], ebx
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x290
pop rbx
ret