Function at 0x18004c910
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d0
mov rax, qword [0x180079798]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea ebp, [r8 + 0x1c8]
mov dword [rsp + 0x68], r8d
mov qword [rsp + 0x58], rcx
mov rsi, rdx
mov dword [rsp + 0x48], ebp
mov r15d, r8d
mov rdx, rcx
cmp r8d, ebp
jae case.0x18004c9b1.4
mov r13, qword [rsp + 0x80]
lea r12d, [r8 - 0x80]
mov ebp, dword [rsp + 0x6c]
lea r8, [0x180000000]
mov r14, qword [rsp + 0x80]
xor ebx, ebx
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x50], r12d
lea r9d, [rbx + 0x72]
nop
cmp r12d, 0xde
ja case.default.0x18004c9b1
movzx eax, byte [r8 + r12 + 0x4cdf8]
mov ecx, dword [r8 + rax*4 + 0x4cdac]
add rcx, r8
jmp rcx
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x88], rbx
call qword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov word [rsp + 0x60], ax
jmp 0x18004cd16
mov word [rsp + 0x9d], r9w
jmp case.0x18004c9b1.18
mov dword [rsp + 0x4c], 1
jmp case.0x18004c9b1.18
mov rdx, qword [0x1800ba070]
cmp rdx, qword [0x1800ba078]
je 0x18004ca11
mov rax, qword [rsi]
mov qword [rdx], rax
add qword [0x1800ba070], 8
jmp 0x18004cd23
mov r8, rsi
lea rcx, [0x1800ba068]
call fcn.1800035e0
jmp 0x18004cd16
mov eax, dword [rsi + 0xc]
mov dword [rsp + 0x64], eax
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0x6c], eax
jmp case.0x18004c9b1.18
lea rcx, [rsp + 0x90]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x18004ca43
movzx eax, word [0x18006f7b8]
mov word [rcx], ax
movzx eax, byte [0x18006f7ba]
mov byte [rcx + 2], al
movzx eax, word [0x18006f7bc]
mov word [rsp + 0x92], ax
movzx eax, byte [0x18006f7be]
mov byte [rsp + 0x94], al
jmp case.0x18004c9b1.18
lea rcx, [rsp + 0x90]
dec rcx
nop
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x18004ca90
movzx eax, word [0x18006f7c0]
mov word [rcx], ax
movzx eax, byte [0x18006f7c2]
mov byte [rcx + 2], al
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0x70], 0x36
jmp case.0x18004c9b1.18
mov edi, ebx
nop word [rax + rax]
mov ebx, 0x100
mov eax, ebx
sub eax, 0xfe
je 0x18004cb14
cmp eax, 2
jne 0x18004cb44
xor r9d, r9d
mov dword [rsp + 0x20], 0xbd
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1800492a0
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov edx, 0x74
xor ecx, ecx
mov r13, rax
call fcn.180013ba0
jmp 0x18004cb44
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 0xffffffff
mov edx, 0x74
xor ecx, ecx
call fcn.180013ba0
mov r9d, 0x88
mov qword [rsp + 0x20], r13
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180042c60
dec ebx
cmp ebx, 0xfd
ja 0x18004cad5
inc edi
cmp edi, 6
jl 0x18004cad0
jmp 0x18004cd14
mov byte [rsp + 0x90], 0
jmp case.0x18004c9b1.18
mov r8, qword [rsp + 0x88]
lea rax, [rsp + 0xb0]
mov edx, dword [rsp + 0x70]
xor r9d, r9d
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
movzx ecx, word [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
jmp 0x18004cd16
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18004cd16
mov rax, qword [rsi]
mov qword [rsp + 0x78], rax
jmp case.0x18004c9b1.18
movzx eax, byte [rdx]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
xor edx, edx
mov dword [rsp + 0x28], 0x104
xor r8d, r8d
xor ecx, ecx
mov byte [rsp + 0x40], al
mov qword [rsp + 0x20], rbx
call fcn.1800314d0
test rax, rax
jne 0x18004cd49
mov byte [rsp + 0x4c], al
jmp 0x18004cd16
mov r8d, 6
mov dword [rsp + 0x94], 0x78386c
lea rdx, str.16AllT
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
jmp 0x18004cd16
inc dword [rsi + 0x10]
xor r8d, r8d
mov rdx, rsi
mov ecx, 0xfc
call fcn.180028180
test eax, eax
jne 0x18004cc8b
mov edx, dword [rsp + 0x64]
mov ecx, 0x11d
nop dword [rax]
mov eax, ecx
sub eax, 0x11d
je 0x18004cc76
sub eax, 1
je 0x18004cc69
cmp eax, 1
je case.0x18004c9b1.4
jmp 0x18004cc81
mov eax, dword [rsp + 0x6c]
mov dword [rsi + 0x10], eax
mov dword [rsp + 0x4c], ebx
jmp 0x18004cc81
mov rax, qword [rsp + 0x78]
mov qword [rsi], rax
mov dword [rsi + 0xc], edx
inc ecx
cmp ecx, 0x120
jb 0x18004cc50
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x18004cd16
mov r15, qword [rsp + 0x78]
mov r12d, eax
nop
mov rdi, qword [r15]
test rdi, rdi
je 0x18004cd00
nop dword [rax + rax]
mov ebx, 0x74
mov eax, ebx
sub eax, 0x72
je 0x18004cce8
sub eax, 1
je 0x18004ccd9
cmp eax, 1
jne 0x18004ccf4
mov rcx, qword [rdi]
mov r14, qword [rdi + 8]
call qword [rsi + 0x18]
xor edx, edx
div dword [rsi + 0xc]
mov ebp, edx
jmp 0x18004ccf4
mov rax, qword [rsi]
mov ecx, ebp
mov rcx, qword [rax + rcx*8]
mov qword [rdi + 8], rcx
jmp 0x18004ccf4
mov rax, qword [rsi]
mov ecx, ebp
mov qword [rax + rcx*8], rdi
mov rdi, r14
dec ebx
cmp ebx, 0x71
ja 0x18004ccb5
test rdi, rdi
jne 0x18004ccb0
add r15, 8
sub r12, 1
jne 0x18004cca0
mov r15d, dword [rsp + 0x68]
mov r12d, dword [rsp + 0x50]
xor ebx, ebx
lea r8, [0x180000000]
mov r9d, 0x72
mov rdx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x48]
add r15d, 0x18
add r12d, 0x18
mov dword [rsp + 0x68], r15d
mov dword [rsp + 0x50], r12d
cmp r15d, eax
jb 0x18004c990
jmp case.0x18004c9b1.4
mov byte [rsp + 0x4c], 1
jmp case.0x18004c9b1.4
mov byte [rsp + 0x40], 5
jmp 0x18004cd5c
mov byte [rsp + 0x40], 2
xor r9d, r9d
mov dword [rsp + 0x20], 0x5b
lea r8, [rsp + 0x40]
mov rdx, rsi
xor ecx, ecx
call fcn.18003aa90
mov byte [rsp + 0x4c], al
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800596f0
mov rbx, qword [rsp + 0x220]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret