Function at 0x1400dbef0
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
cmp word [0x140645310], 0
lea r15, [0x140645310]
jne 0x1400dc2f6
xor esi, esi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r9b, 1
lea r8, [rbp - 0x30]
mov rcx, rax
lea rdx, str._basedir
call fcn.1400bd1d0
mov eax, dword [rbp - 0x28]
test eax, eax
je 0x1400dc035
cmp eax, 1
je 0x1400dc035
lea r9, [0x14028d690]
mov dword [rsp + 0x20], 1
lea r8, [0x140282880]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
call fcn.140026ef0
mov rbx, rax
lea rax, [rbp - 0x30]
cmp rax, rbx
je 0x1400dbfb1
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400dbf97
call fcn.1400556b0
mov rcx, qword [rbx]
mov qword [rbp - 0x30], rcx
mov qword [rbx], rsi
mov eax, dword [rbx + 8]
mov dword [rbp - 0x28], eax
mov eax, dword [rbx + 0xc]
mov dword [rbp - 0x24], eax
mov qword [rbx + 8], rsi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400dbfbf
call fcn.1400556b0
mov edx, dword [rbp - 0x28]
lea ebx, [rdx - 1]
test edx, edx
jg 0x1400dbfcb
mov ebx, esi
test edx, edx
mov eax, esi
setle al
inc eax
add eax, edx
mov dword [rbp - 0x28], eax
cmp eax, dword [rbp - 0x24]
jle 0x1400dbfe7
lea rcx, [rbp - 0x30]
call fcn.1400197d0
mov rax, qword [rbp - 0x30]
mov edx, 0x2f
movsxd rcx, ebx
lea rbx, [0x140280be0]
mov word [rax + rcx*2], dx
mov rax, qword [rbp - 0x30]
mov word [rax + rcx*2 + 2], si
mov rcx, r15
cmp dword [rbp - 0x28], esi
cmovne rbx, qword [rbp - 0x30]
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400dc020
jmp 0x1400dc2e8
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
mov rdi, 0xffffffffffffffff
test rax, rax
je 0x1400dc0af
lea rax, str._BaseFromWorkingDir
mov r14, rdi
inc r14
cmp word [rax + r14*2], si
jne 0x1400dc054
movzx ecx, word [rbx]
dec r14d
add rbx, 2
test cx, cx
je 0x1400dc0af
nop dword [rax]
movzx eax, cx
sub eax, 0x61
cmp eax, 0x1a
sbb ax, ax
and ax, 0x20
sub cx, ax
cmp cx, 0x2d
jne 0x1400dc0a3
movsxd r8, r14d
lea rdx, [0x14029f612]
mov rcx, rbx
call fcn.140041f80
test eax, eax
je 0x1400dc313
movzx ecx, word [rbx]
add rbx, 2
test cx, cx
jne 0x1400dc070
lea r8, [rbp + 0x20]
mov ecx, 6
lea rdx, [fcn.1400dbef0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov rcx, qword [rbp + 0x20]
mov r8d, 0x200
test eax, eax
mov rdx, r15
cmove rcx, qword [0x140644ff0]
mov qword [rbp + 0x20], rcx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [0x140645310], si
mov edx, esi
mov ecx, esi
mov dword [rbp - 0x38], edx
mov dword [rbp - 0x34], ecx
mov qword [rbp - 0x40], rsi
je 0x1400dc146
mov rbx, rdi
inc rbx
cmp word [r15 + rbx*2], cx
jne 0x1400dc100
inc ebx
test ebx, ebx
jle 0x1400dc121
mov edx, ebx
lea rcx, [rbp - 0x40]
call fcn.140019a30
mov ecx, dword [rbp - 0x34]
mov edx, dword [rbp - 0x38]
lea eax, [rbx + rdx]
mov dword [rbp - 0x38], eax
cmp eax, ecx
jle 0x1400dc134
lea rcx, [rbp - 0x40]
call fcn.1400197d0
mov rcx, qword [rbp - 0x40]
mov rdx, r15
movsxd r8, ebx
add r8, r8
call fcn.140038f30
lea r9, [0x14028d690]
mov dword [rsp + 0x20], 1
lea r8, [0x140282880]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x40]
call fcn.140026ef0
mov rbx, rax
lea rax, [rbp - 0x40]
cmp rax, rbx
je 0x1400dc19d
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400dc183
call fcn.1400556b0
mov rcx, qword [rbx]
mov qword [rbp - 0x40], rcx
mov qword [rbx], rsi
mov eax, dword [rbx + 8]
mov dword [rbp - 0x38], eax
mov eax, dword [rbx + 0xc]
mov dword [rbp - 0x34], eax
mov qword [rbx + 8], rsi
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400dc1ab
call fcn.1400556b0
cmp dword [rbp - 0x38], esi
lea rbx, [0x140280be0]
mov rcx, rbx
mov rdx, r15
cmovne rcx, qword [rbp - 0x40]
sub rdx, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rcx + rdx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400dc1d0
mov rax, rdi
inc rax
cmp word [r15 + rax*2], si
jne 0x1400dc1e3
test eax, eax
jle 0x1400dc222
dec eax
movsxd rcx, eax
test eax, eax
jle 0x1400dc222
lea rdx, [r15 - 2]
lea rdx, [rdx + rcx*2]
movzx r8d, word [rdx]
cmp r8w, 0x2f
je 0x1400dc222
cmp r8w, 0x5c
je 0x1400dc222
dec eax
dec rcx
sub rdx, 2
test rcx, rcx
jg 0x1400dc202
cdqe
add rax, rax
cmp rax, 0x400
jae 0x1400dc465
mov word [rax + r15], si
mov ecx, esi
cmp word [0x140645310], si
mov dword [rbp - 0x14], ecx
mov qword [rbp - 0x20], rsi
mov dword [rbp - 0x18], esi
je 0x1400dc298
nop dword [rax]
inc rdi
cmp word [r15 + rdi*2], cx
jne 0x1400dc250
inc edi
test edi, edi
jle 0x1400dc271
mov edx, edi
lea rcx, [rbp - 0x20]
call fcn.140019a30
mov ecx, dword [rbp - 0x14]
mov esi, dword [rbp - 0x18]
lea eax, [rdi + rsi]
mov dword [rbp - 0x18], eax
cmp eax, ecx
jle 0x1400dc286
mov edx, esi
lea rcx, [rbp - 0x20]
call fcn.1400197d0
mov rcx, qword [rbp - 0x20]
mov rdx, r15
movsxd r8, edi
add r8, r8
call fcn.140038f30
lea rcx, [rbp - 0x20]
call fcn.1400bf270
cmp dword [rbp - 0x18], 0
mov rdx, r15
mov rcx, qword [rbp - 0x20]
cmovne rbx, rcx
sub rdx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rbx + rdx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400dc2c0
test rcx, rcx
je 0x1400dc2da
call fcn.1400556b0
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400dc2e8
call fcn.1400556b0
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400dc2f6
call fcn.1400556b0
lea r11, [rsp + 0x70]
mov rax, r15
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rax, [rbx - 2]
test rax, rax
je 0x1400dc0af
mov rdx, r15
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp word [0x140645310], si
mov edx, esi
mov ecx, esi
mov dword [rbp - 0x38], edx
mov dword [rbp - 0x34], ecx
mov qword [rbp - 0x40], rsi
je 0x1400dc38b
inc rdi
cmp word [r15 + rdi*2], cx
jne 0x1400dc345
inc edi
test edi, edi
jle 0x1400dc366
mov edx, edi
lea rcx, [rbp - 0x40]
call fcn.140019a30
mov ecx, dword [rbp - 0x34]
mov edx, dword [rbp - 0x38]
lea eax, [rdx + rdi]
mov dword [rbp - 0x38], eax
cmp eax, ecx
jle 0x1400dc379
lea rcx, [rbp - 0x40]
call fcn.1400197d0
mov rcx, qword [rbp - 0x40]
mov rdx, r15
movsxd r8, edi
add r8, r8
call fcn.140038f30
lea r9, [0x14028d690]
mov dword [rsp + 0x20], 1
lea r8, [0x140282880]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.140026ef0
mov rbx, rax
lea rax, [rbp - 0x40]
cmp rax, rbx
je 0x1400dc3e2
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400dc3c8
call fcn.1400556b0
mov rcx, qword [rbx]
mov qword [rbp - 0x40], rcx
mov qword [rbx], rsi
mov eax, dword [rbx + 8]
mov dword [rbp - 0x38], eax
mov eax, dword [rbx + 0xc]
mov dword [rbp - 0x34], eax
mov qword [rbx + 8], rsi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400dc3f0
call fcn.1400556b0
mov edx, dword [rbp - 0x38]
lea ebx, [rdx - 1]
test edx, edx
jg 0x1400dc3fc
mov ebx, esi
test edx, edx
mov eax, esi
setle al
inc eax
add eax, edx
mov dword [rbp - 0x38], eax
cmp eax, dword [rbp - 0x34]
jle 0x1400dc418
lea rcx, [rbp - 0x40]
call fcn.1400197d0
mov rax, qword [rbp - 0x40]
mov edx, 0x2f
movsxd rcx, ebx
lea rbx, [0x140280be0]
mov word [rax + rcx*2], dx
mov rdx, r15
mov rax, qword [rbp - 0x40]
mov word [rax + rcx*2 + 2], si
cmp dword [rbp - 0x38], esi
mov rcx, qword [rbp - 0x40]
cmovne rbx, rcx
sub rdx, rbx
nop dword [rax]
movzx eax, word [rbx]
mov word [rdx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400dc450
jmp 0x1400dc2de
call fcn.14025ee00
int3