Function at 0x140050f34
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x610
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14010bfc0]
xor rax, rsp
mov qword [rsp + 0x600], rax
mov rbp, r9
mov r12d, r8d
mov dword [rsp + 0x58], r8d
mov rdi, rdx
mov rsi, rcx
mov r13, qword [rsp + 0x670]
mov qword [rsp + 0x70], r13
test rdx, rdx
je 0x140051022
lea rdx, [0x1400d276c]
mov rcx, rdi
call fcn.140099250
test rax, rax
jne 0x140050fb7
lea rdx, [0x1400c985c]
mov rcx, rdi
call fcn.140099250
test rax, rax
je 0x140051022
cmp qword [rsi + 0x2d0], 0
je 0x140051022
mov rax, qword [rsi + 0x2c8]
mov rbx, qword [rax]
mov r11, qword [rsi + 0x2a0]
test r11, r11
jne 0x140050fe1
call fcn.14009861c
xor r11d, r11d
jmp 0x140050fe4
mov r11, qword [r11]
cmp rbx, qword [r11 + 0x28]
jne 0x140050fef
call fcn.14009861c
mov rcx, rdi
call fcn.1400980d0
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, qword [rbx + 0x28]
xor edx, edx
lea rcx, [rbx + 0x10]
call fcn.140005d88
test eax, eax
jne 0x140051022
cmp r12d, dword [rsi + 8]
jne 0x140051022
mov eax, 1
jmp 0x1400517d7
mov dword [rsi + 8], r12d
test rdi, rdi
je 0x1400510c3
lea rdx, [0x1400d276c]
mov rcx, rdi
call fcn.140099250
test rax, rax
jne 0x140051057
lea rdx, [0x1400c985c]
mov rcx, rdi
call fcn.140099250
test rax, rax
je 0x1400510c3
cmp qword [rsi + 0x2d0], 0
je 0x1400510c3
mov rax, qword [rsi + 0x2c8]
mov rbx, qword [rax]
mov r11, qword [rsi + 0x2a0]
test r11, r11
jne 0x140051081
call fcn.14009861c
xor r11d, r11d
jmp 0x140051084
mov r11, qword [r11]
cmp rbx, qword [r11 + 0x28]
jne 0x14005108f
call fcn.14009861c
mov rcx, rdi
call fcn.1400980d0
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, qword [rbx + 0x28]
xor edx, edx
lea rcx, [rbx + 0x10]
call fcn.140005d88
test eax, eax
jne 0x1400510c3
mov rax, qword [rsi]
mov rdx, r13
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x1400517d7
lea rcx, [rsi + 0x268]
call fcn.140007328
lea rcx, [rsi + 0x2a0]
call fcn.140007328
lea rcx, [rsi + 0x230]
call fcn.140007328
lea rcx, [rsi + 0x2d8]
call fcn.140007328
lea rcx, [rsi + 0x310]
call fcn.140007328
test rbp, rbp
je 0x140051120
mov rcx, rbp
call fcn.1400980d0
lea rcx, [rsi + 0x370]
mov r8, rax
mov rdx, rbp
call fcn.14000352c
jmp 0x140051142
lea rcx, [0x1400c49dc]
call fcn.1400980d0
lea rcx, [rsi + 0x370]
mov r8, rax
lea rdx, [0x1400c49dc]
call fcn.14000352c
mov rax, qword [rsi + 0x220]
mov rbx, qword [rax]
mov qword [rsp + 0x68], rbx
mov rbp, qword [rsi + 0x1f0]
mov qword [rsp + 0x60], rbp
mov r12d, 1
mov r15, qword [rsi + 0x220]
test rbp, rbp
je 0x140051178
cmp rbp, qword [rsi + 0x1f0]
je 0x14005117d
call fcn.14009861c
cmp rbx, r15
je 0x14005124f
test rbp, rbp
jne 0x140051195
call fcn.14009861c
xor r11d, r11d
jmp 0x140051199
mov r11, qword [rbp]
cmp rbx, qword [r11 + 0x30]
jne 0x1400511a4
call fcn.14009861c
cmp qword [rbx + 0x38], 0x10
jb 0x1400511b1
mov r15, qword [rbx + 0x20]
jmp 0x1400511b5
lea r15, [rbx + 0x20]
test rbp, rbp
jne 0x1400511c4
call fcn.14009861c
xor r11d, r11d
jmp 0x1400511c8
mov r11, qword [rbp]
cmp rbx, qword [r11 + 0x30]
jne 0x1400511d3
call fcn.14009861c
mov rax, qword [rbx + 0x40]
cmp qword [rax + 0xa0], 0x10
jb 0x1400511ea
mov r8, qword [rax + 0x88]
jmp 0x1400511f1
lea r8, [rax + 0x88]
mov r9, r15
lea rdx, str.Deleting__s_for_key__s_n
lea rcx, [0x14010f570]
call fcn.14004b9f0
test rbp, rbp
jne 0x140051216
call fcn.14009861c
xor r11d, r11d
jmp 0x14005121a
mov r11, qword [rbp]
cmp rbx, qword [r11 + 0x30]
jne 0x140051225
call fcn.14009861c
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140051236
mov rax, qword [rcx]
mov edx, r12d
call qword [rax]
lea rcx, [rsp + 0x60]
call fcn.14004fe58
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
jmp 0x140051163
mov rdx, qword [rsi + 0x220]
mov rdx, qword [rdx + 8]
lea rcx, [rsi + 0x1f0]
call fcn.140050920
mov r11, qword [rsi + 0x220]
mov qword [r11 + 8], r11
xor r15d, r15d
mov qword [rsi + 0x228], r15
mov rax, qword [rsi + 0x220]
mov qword [rax], rax
mov rax, qword [rsi + 0x220]
mov qword [rax + 0x10], rax
mov byte [rsp + 0x3e0], r15b
mov ebx, 0x103
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x3e1]
call fcn.1400988d0
lea r14d, [rbx + 1]
mov edx, r14d
lea rcx, [rsp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp rdi, r15
je 0x14005163e
lea rdx, [0x1400d276c]
mov rcx, rdi
call fcn.140099250
cmp rax, r15
jne 0x1400515bb
lea rdx, [0x1400c985c]
mov rcx, rdi
call fcn.140099250
cmp rax, r15
jne 0x1400515bb
mov byte [rsp + 0x1c0], r15b
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x1c1]
call fcn.1400988d0
mov byte [rsp + 0x2d0], r15b
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x2d1]
call fcn.1400988d0
mov r8d, r14d
lea rdx, [rsp + 0x2d0]
xor ecx, ecx
call fcn.140054f00
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x2d0]
lea r8, [0x1400c63b8]
mov rdx, r14
lea rcx, [rsp + 0x1c0]
call fcn.14009841c
mov edx, r14d
lea rcx, [rsp + 0x1c0]
call fcn.14001dc18
cmp eax, r15d
je 0x140051410
mov qword [rsp + 0x50], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x48], r15
mov byte [rsp + 0x38], r15b
lea rcx, [rsp + 0x1c0]
call fcn.1400980d0
mov r8, rax
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x30]
call fcn.14000352c
nop
mov rax, qword [rsi + 0x2c8]
mov rdi, qword [rax]
lea r9, [rsp + 0x30]
mov r8, qword [rdi + 8]
mov rdx, rdi
lea rcx, [rsi + 0x2a0]
call fcn.14000739c
mov rbx, rax
mov rdx, r12
lea rcx, [rsi + 0x2a0]
call fcn.1400064b0
mov qword [rdi + 8], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rbx
cmp qword [rsp + 0x50], 0x10
jb 0x1400517bd
mov rcx, qword [rsp + 0x38]
call fcn.14006127c
jmp 0x1400517bd
lea rdx, [rsp + 0x2d0]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x2d0]
lea r8, [0x1400c63b8]
mov rdx, r14
lea rcx, [rsp + 0x1c0]
call fcn.14009841c
mov edx, r14d
lea rcx, [rsp + 0x1c0]
call fcn.14001dc18
cmp eax, r15d
je 0x1400514ee
mov qword [rsp + 0x50], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x48], r15
mov byte [rsp + 0x38], r15b
lea rcx, [rsp + 0x1c0]
call fcn.1400980d0
mov r8, rax
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x30]
call fcn.14000352c
nop
mov rax, qword [rsi + 0x2c8]
mov rdi, qword [rax]
lea r9, [rsp + 0x30]
mov r8, qword [rdi + 8]
mov rdx, rdi
lea rcx, [rsi + 0x2a0]
call fcn.14000739c
mov rbx, rax
mov rdx, r12
lea rcx, [rsi + 0x2a0]
call fcn.1400064b0
mov qword [rdi + 8], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rbx
cmp qword [rsp + 0x50], 0x10
jb 0x1400517bd
mov rcx, qword [rsp + 0x38]
call fcn.14006127c
jmp 0x1400517bd
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x3e0]
lea r8, [0x1400c63b8]
mov rdx, r14
lea rcx, [rsp + 0x1c0]
call fcn.14009841c
mov edx, r14d
lea rcx, [rsp + 0x1c0]
call fcn.14001dc18
cmp eax, r15d
je 0x1400517bd
mov qword [rsp + 0x50], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x48], r15
mov byte [rsp + 0x38], r15b
lea rcx, [rsp + 0x1c0]
call fcn.1400980d0
mov r8, rax
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x30]
call fcn.14000352c
nop
mov rax, qword [rsi + 0x2c8]
mov rdi, qword [rax]
lea r9, [rsp + 0x30]
mov r8, qword [rdi + 8]
mov rdx, rdi
lea rcx, [rsi + 0x2a0]
call fcn.14000739c
mov rbx, rax
mov rdx, r12
lea rcx, [rsi + 0x2a0]
call fcn.1400064b0
mov qword [rdi + 8], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rbx
cmp qword [rsp + 0x50], 0x10
jb 0x1400517bd
mov rcx, qword [rsp + 0x38]
call fcn.14006127c
jmp 0x1400517bd
mov qword [rsp + 0x50], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x48], r15
mov byte [rsp + 0x38], r15b
mov rcx, rdi
call fcn.1400980d0
mov r8, rax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000352c
nop
mov rdi, qword [rsi + 0x2c8]
lea r9, [rsp + 0x30]
mov r8, qword [rdi + 8]
mov rdx, rdi
lea rcx, [rsi + 0x2a0]
call fcn.14000739c
mov rbx, rax
mov rdx, r12
lea rcx, [rsi + 0x2a0]
call fcn.1400064b0
mov qword [rdi + 8], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rbx
cmp qword [rsp + 0x50], 0x10
jb 0x1400517bd
mov rcx, qword [rsp + 0x38]
call fcn.14006127c
jmp 0x1400517bd
lea r9, [rsp + 0x3e0]
lea r8, str._shp_ins__.dat
mov rdx, r14
lea rcx, [rsp + 0x4f0]
call fcn.14009841c
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400517bd
test byte [rsp + 0x80], 0x10
jne 0x14005179a
mov byte [rsp + 0x1c0], r15b
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x1c1]
call fcn.1400988d0
lea r11, [rsp + 0xac]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x3e0]
lea r8, [0x1400c63b8]
mov rdx, r14
lea rcx, [rsp + 0x1c0]
call fcn.14009841c
mov byte [rsp + 0x2d0], r15b
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x2d1]
call fcn.1400988d0
xor r9d, r9d
lea r8, [rsp + 0x2d0]
mov edx, r14d
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov qword [rsp + 0x50], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x48], r15
mov byte [rsp + 0x38], r15b
lea rcx, [rsp + 0x2d0]
call fcn.1400980d0
mov r8, rax
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x30]
call fcn.14000352c
nop
mov rdi, qword [rsi + 0x2c8]
lea r9, [rsp + 0x30]
mov r8, qword [rdi + 8]
mov rdx, rdi
lea rcx, [rsi + 0x2a0]
call fcn.14000739c
mov rbx, rax
mov rdx, r12
lea rcx, [rsi + 0x2a0]
call fcn.1400064b0
mov qword [rdi + 8], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rbx
cmp qword [rsp + 0x50], 0x10
jb 0x140051795
mov rcx, qword [rsp + 0x38]
call fcn.14006127c
mov ebx, 0x103
jmp 0x14005179a
mov ebx, 0x103
lea rdx, [rsp + 0x80]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, r15d
jne 0x140051680
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
test byte [rsp + 0x58], r12b
je 0x1400517d4
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x1400517d7
mov eax, r12d
mov rcx, qword [rsp + 0x600]
xor rcx, rsp
call fcn.140061100
mov rbx, qword [rsp + 0x660]
add rsp, 0x610
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret