Function at 0x140033c70
Capabilities:
Read .ini file
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2640]
mov eax, 0x2740
call fcn.1400f9a20
sub rsp, rax
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rbp + 0x2630], rax
mov rsi, rcx
lea rbx, [0x140208860]
mov r12, r8
mov rcx, rbx
mov rdi, rdx
call fcn.14008cbb0
lea rcx, [rbp + 0x630]
xor edx, edx
call fcn.14002c5a0
lea rdx, str.OpenIndex
lea rcx, [0x140182e78]
mov r9, rbx
mov r8d, 1
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea rdx, str.UseNewDlg
lea rcx, [0x140182e78]
mov r9, rbx
xor r8d, r8d
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
mov dword [rsp + 0x50], eax
call fcn.140059780
mov rcx, qword [0x1401fbba0]
lea r8, [rbp + 0x420]
mov r9d, 0x104
mov edx, 0x466
mov r15, rax
call qword [sym.imp.USER32.dll_LoadStringW]
lea rcx, [rbp]
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
mov dword [r12], ebx
call fcn.1400f9ab0
cmp word [rdi], bx
jne 0x140033d87
lea rax, [0x140208860]
lea r9, [rbp]
lea r8, [0x140182e70]
mov qword [rsp + 0x28], rax
lea rdx, str.OpenDir
lea rcx, [0x140182e78]
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x140033da1
lea rcx, [rbp]
sub rcx, rdi
nop
movzx eax, word [rdi]
lea rdi, [rdi + 2]
mov word [rcx + rdi - 2], ax
test ax, ax
jne 0x140033d90
call fcn.1400ed6c0
mov edi, dword [rsp + 0x50]
test eax, eax
cmove edi, ebx
mov dword [rsp + 0x50], edi
test edi, edi
je 0x140033e14
lea rax, [rsp + 0x50]
lea r9, [rbp + 0x630]
lea r8, [rbp]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x420]
mov rdx, r15
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r13d
call fcn.140039a40
test eax, eax
jns 0x140033ef6
cmp dword [rsp + 0x50], 0x3e7
jne 0x140033f8f
mov edi, ebx
lea rcx, [rbp + 0x210]
xor edx, edx
mov r8d, 0x208
call fcn.1400f9ab0
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x98
call fcn.1400f9ab0
mov rax, qword [0x1401fbba0]
mov dword [rsp + 0x60], 0x98
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0x630]
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x210]
mov dword [rbp - 0x74], r14d
mov qword [rbp - 0x70], rax
lea rax, [rbp]
mov dword [rbp - 0x68], 0x104
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x420]
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x48], rax
test edi, edi
je 0x140033e9f
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rbx
mov eax, 0x80004
jmp 0x140033eb7
lea rax, [0x140033440]
mov qword [rbp - 0x20], 0x404
mov qword [rbp - 0x28], rax
mov eax, 0x80064
bts eax, 0x17
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x30], rbx
mov dword [rbp - 0x40], eax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
jne 0x140033f2d
mov edi, dword [rsp + 0x50]
mov eax, 0x3e7
cmp qword [rbp - 0x30], rax
cmove edi, eax
mov dword [rsp + 0x50], edi
cmp edi, eax
je 0x140033db3
jmp 0x140033f8f
lea rdx, [rbp]
mov r8d, 3
mov rcx, rsi
call fcn.1400ed200
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r8d, dword [rsp + 0x54]
lea rdx, [0x140182ce0]
lea rcx, [rbp]
call fcn.1400f98c8
lea r8, [rbp]
jmp 0x140033f6f
mov eax, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x70]
mov dword [r12], eax
sub rsi, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rsi + rcx - 2], ax
test ax, ax
jne 0x140033f40
mov r8d, dword [rbp - 0x74]
lea rdx, [0x140182ce0]
lea rcx, [rbp + 0x210]
call fcn.1400f98c8
lea r8, [rbp + 0x210]
lea r9, [0x140208860]
lea rdx, str.OpenIndex
lea rcx, [0x140182e78]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 0x2630]
xor rcx, rsp
call fcn.1400f9a80
mov rbx, qword [rsp + 0x2788]
add rsp, 0x2740
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret