Function at 0x180035c30
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xd70
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0xda0], rbx
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0xd60], rax
mov rbx, rdx
mov rsi, rcx
xor ebp, ebp
mov dword [rsp + 0x58], ebp
lea ecx, [rbp + 8]
call fcn.18009a960
test rax, rax
je 0x180035c84
lea rcx, [rsp + 0x20]
mov qword [rax], rcx
jmp 0x180035c87
mov rax, rbp
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.1800273f0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x80], socket
mov qword [rsp + 0x78], rbp
mov byte [rsp + 0x68], 0
lea r8, [rsp + 0x60]
mov rdx, rbx
lea rcx, [rsp + 0xa8]
call fcn.1800351d0
nop
cmp qword [rsp + 0x80], 0x10
jb 0x180035ce1
mov rcx, qword [rsp + 0x68]
call fcn.18009a864
mov qword [rsp + 0x80], socket
mov qword [rsp + 0x78], rbp
mov byte [rsp + 0x68], 0
cmp qword [rsp + 0xc0], 0
jne 0x180035dc4
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.180032240
nop
cmp qword [rsp + 0xc8], 8
jb 0x180035d2c
mov rcx, qword [rsp + 0xb0]
call fcn.18009a864
mov qword [rsp + 0xc8], 7
mov qword [rsp + 0xc0], rbp
mov word [rsp + 0xb0], bp
mov rax, qword [rsp + 0x48]
mov rbx, qword [rax]
mov qword [rax], rax
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], rax
mov qword [rsp + 0x50], rbp
mov rcx, qword [rsp + 0x48]
cmp rbx, rcx
je 0x180035da8
nop dword [rax + rax]
mov rdi, qword [rbx]
cmp qword [rbx + 0x30], 8
jb 0x180035d83
mov rcx, qword [rbx + 0x18]
call fcn.18009a864
mov qword [rbx + 0x30], 7
mov qword [rbx + 0x28], rbp
mov word [rbx + 0x18], bp
mov rcx, rbx
call fcn.18009a864
mov rbx, rdi
mov rcx, qword [rsp + 0x48]
cmp rdi, rcx
jne 0x180035d70
call fcn.18009a864
mov qword [rsp + 0x48], rbp
mov rcx, qword [rsp + 0x20]
call fcn.18009a864
mov rax, rsi
jmp 0x18003609f
mov word [rsp + 0x320], bp
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x322]
call fcn.18009e990
lea rdx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae rdx, qword [rsp + 0xb0]
mov r8d, 0x104
lea rcx, [rsp + 0x320]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rsp + 0x320]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov word [rax], bp
lea rcx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x88], rcx
lea rax, [rsp + 0x20]
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub eax, 0xf
mov dword [rsp + 0x98], eax
lea rdi, [rsp + 0x320]
lea rax, [fcn.1800360d0]
test rax, rax
je 0x180035fe8
movzx eax, word [rsp + 0x322]
cmp ax, 0x3a
je 0x180035ed9
cmp ax, 0x5c
je 0x180035ed9
mov word [rsp + 0x950], bp
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x952]
call fcn.18009e990
lea rdx, [rsp + 0x950]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0x950]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdi, [rsp + 0x950]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180035fe8
test al, 0x10
je 0x180035fe8
mov rdx, rdi
lea rcx, [rsp + 0x530]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1800d1804]
lea rcx, [rsp + 0x530]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x530]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180035fe8
nop dword [rax]
lea rdx, [0x1800d34d8]
lea rcx, [rsp + 0xfc]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180035fc6
lea rdx, [0x1800d1a48]
lea rcx, [rsp + 0xfc]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180035fc6
cmp dword [rsp + 0xd0], 0xffffffff
je 0x180035fc6
mov rdx, rdi
lea rcx, [rsp + 0x740]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0xfc]
lea rcx, [rsp + 0x740]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [rsp + 0xd0], 0x10
jne 0x180035fc6
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x740]
call fcn.1800360d0
test eax, eax
je 0x180035fdf
lea rdx, [rsp + 0xd0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180035f40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.180032240
nop
cmp qword [rsp + 0xc8], 8
jb 0x18003600e
mov rcx, qword [rsp + 0xb0]
call fcn.18009a864
mov qword [rsp + 0xc8], 7
mov qword [rsp + 0xc0], rbp
mov word [rsp + 0xb0], bp
mov rax, qword [rsp + 0x48]
mov rbx, qword [rax]
mov qword [rax], rax
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], rax
mov qword [rsp + 0x50], rbp
mov rcx, qword [rsp + 0x48]
cmp rbx, rcx
je 0x180036088
nop dword [rax]
mov rdi, qword [rbx]
cmp qword [rbx + 0x30], 8
jb 0x180036063
mov rcx, qword [rbx + 0x18]
call fcn.18009a864
mov qword [rbx + 0x30], 7
mov qword [rbx + 0x28], rbp
mov word [rbx + 0x18], bp
mov rcx, rbx
call fcn.18009a864
mov rbx, rdi
mov rcx, qword [rsp + 0x48]
cmp rdi, rcx
jne 0x180036050
call fcn.18009a864
mov qword [rsp + 0x48], rbp
mov rcx, qword [rsp + 0x20]
call fcn.18009a864
mov rax, rsi
mov rcx, qword [rsp + 0xd60]
xor rcx, rsp
call fcn.180099fe0
mov rbx, qword [rsp + 0xda0]
add rsp, 0xd70
pop rdi
pop rsi
pop rbp
ret