Function at 0x140126410
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x288
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [0x140e26de8], rcx
mov rcx, r8
mov qword [0x140e269c8], rdx
mov dword [0x140e26df8], r9d
call fcn.140125e20
lea rdx, [rsp + 0x140]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x140]
call fcn.14014ab30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [0x140e269b8]
lea rdx, [0x140e269e0]
call fcn.140123b60
test eax, eax
je 0x1401264a2
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x288
ret
mov qword [rsp + 0x298], rbp
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x140545844]
mov ebp, eax
sub ebp, dword [0x140e26e08]
test ecx, ecx
jne 0x140126777
mov qword [rsp + 0x290], rbx
mov qword [rsp + 0x2a8], rsi
mov qword [rsp + 0x280], rdi
mov qword [rsp + 0x278], r12
mov qword [rsp + 0x270], r13
mov qword [rsp + 0x268], r14
mov qword [rsp + 0x260], r15
lea r12, [0x140546560]
lea r13, [0x1403cb570]
xor r15d, r15d
lea r14, [0x140545870]
nop word [rax + rax]
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140126580
nop
cmp dword [rsp + 0x38], 0x12
je 0x140126734
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageA]
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140126540
mov ecx, dword [0x140545844]
test ecx, ecx
jne 0x14012673f
nop
call qword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
sub esi, dword [0x140e26e08]
mov ebx, esi
sub ebx, ebp
cmp dword [0x140545868], r15d
je 0x1401265c0
mov edi, 5
cmp ebx, edi
jge 0x1401265e8
mov ecx, edi
sub ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401265e4
cmp dword [0x140545718], r15d
je 0x1401265df
mov edi, dword [0x140546168]
cmp ebx, edi
jge 0x1401265e8
mov ecx, edi
sub ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401265e4
mov edi, 1
cmp ebx, edi
jl 0x140126590
mov ecx, ebx
call fcn.140125a20
cmp dword [0x140545868], r15d
jne 0x14012667b
mov r8d, dword [0x140545d7c]
cmp dword [0x140e26e0c], r15d
cmovne r8d, r15d
mov dword [0x140545d7c], r8d
cmp r8d, dword [0x1405458d8]
je 0x140126722
test r8d, r8d
jne 0x140126642
mov rcx, r15
nop word [rax + rax]
movzx eax, byte [rcx + r12]
inc rcx
mov byte [rsp + rcx + 0x5f], al
test al, al
jne 0x140126630
jmp 0x140126656
lea rdx, str.__d___s
lea rcx, [rsp + 0x60]
mov r9, r12
call sub.MSVCR90.dll_sprintf
mov rcx, qword [0x140e26e00]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov r11d, dword [0x140545d7c]
mov dword [0x1405458d8], r11d
jmp 0x140126722
mov rdx, r13
mov ecx, 0x31c
call qword [0x140546638]
mov r11, r15
nop dword [rax]
movzx eax, byte [r11 + r13]
inc r11
mov byte [rsp + r11 + 0x5f], al
test al, al
jne 0x140126690
lea rcx, [rsp + 0x60]
mov rdx, r14
call sub.MSVCR90.dll__stricmp
test eax, eax
je 0x140126722
cmp byte [rsp + 0x60], r15b
je 0x1401266d7
lea r9, [rsp + 0x60]
lea rdx, str._s____s
lea rcx, [rsp + 0xd0]
mov r8, r12
call sub.MSVCR90.dll_sprintf
jmp 0x1401266ee
lea rdx, str._s___Dedicated_Server
lea rcx, [rsp + 0xd0]
mov r8, r12
call sub.MSVCR90.dll_sprintf
mov rcx, qword [0x140e26e00]
lea rdx, [rsp + 0xd0]
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov r11, r15
nop word [rax + rax]
movzx eax, byte [rsp + r11 + 0x60]
inc r11
mov byte [r11 + r14 - 1], al
test al, al
jne 0x140126710
mov ecx, dword [0x140545844]
mov ebp, esi
test ecx, ecx
je 0x140126520
jmp 0x14012673f
mov ecx, 1
mov dword [0x140545844], ecx
mov r14, qword [rsp + 0x268]
mov r13, qword [rsp + 0x270]
mov r12, qword [rsp + 0x278]
mov rdi, qword [rsp + 0x280]
mov rsi, qword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x290]
mov r15, qword [rsp + 0x260]
dec ecx
call fcn.140125ba0
call fcn.14014a910
mov eax, dword [rsp + 0x40]
mov rbp, qword [rsp + 0x298]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x288
ret