Function at 0x140003d20
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x900
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0x950], rbx
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0x8f0], rax
mov r15, rdx
mov qword [rsp + 0x80], rdx
mov r14, rcx
mov qword [rsp + 0x78], rcx
call fcn.140075174
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x140003d8b
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
call fcn.140075174
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140003db9
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x50]
mov rdx, r15
mov rcx, r14
call fcn.140003780
mov rbp, qword [rsp + 0x50]
lea rsi, [rbp - 0x18]
lea rbx, [rdi - 0x18]
or r12, 0xffffffffffffffff
cmp rsi, rbx
je 0x140003ea9
cmp dword [rbx + 0x10], 0
jl 0x140003e93
mov rcx, qword [rsi]
cmp rcx, qword [rbx]
jne 0x140003e93
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rsi + 0x10], 0
jl 0x140003e29
cmp rax, qword [rsi]
jne 0x140003e29
mov rdi, rsi
lock add dword [rsi + 0x10], 1
jmp 0x140003e68
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rsi + 8]
call qword [rax]
mov rdi, rax
test rax, rax
jne 0x140003e45
call fcn.140006b60
int3
mov eax, dword [rsi + 8]
mov dword [rdi + 8], eax
mov eax, dword [rsi + 8]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
lea r8, [rsi + 0x18]
add rdx, rdx
lea rcx, [rdi + 0x18]
call fcn.14009d1a0
mov eax, r12d
lock xadd dword [rbx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140003e83
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
add rdi, 0x18
mov qword [rsp + 0x58], rdi
mov rbp, qword [rsp + 0x50]
jmp 0x140003ea9
mov r8d, dword [rbp - 0x10]
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.140006a00
mov rdi, qword [rsp + 0x58]
cmp dword [rdi - 0x10], 0
jl 0x1400045c4
lea rdx, [0x1400e87a8]
mov rcx, rdi
call fcn.14009c5e0
test rax, rax
je 0x1400045c4
sub rax, rdi
sar rax, 1
cmp eax, 0xffffffff
je 0x1400045c4
mov ecx, dword [rdi - 0x10]
lea eax, [rcx - 1]
lea r13, [0x1400e86b8]
test eax, eax
js 0x140003f11
cmp eax, ecx
jg 0x140003f11
cdqe
lea rcx, [rdi + rax*2]
mov rdx, r13
call fcn.14009c5e0
test rax, rax
je 0x140003f11
sub rax, rdi
sar rax, 1
cmp eax, 0xffffffff
jne 0x140003fa2
xor eax, eax
mov rcx, r12
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov rbx, r13
sub rbx, rbp
sar rbx, 1
mov r14d, dword [rbp - 0x10]
lea edi, [r14 + rcx - 1]
mov edx, 1
sub edx, dword [rsi + 0x10]
mov eax, dword [rsi + 0xc]
sub eax, edi
or eax, edx
jge 0x140003f57
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140006b70
mov rbp, qword [rsp + 0x50]
cmp rbx, r14
ja 0x140003f61
lea r13, [rbp + rbx*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rbp + r14*2]
mov r9, rdx
mov r8, r13
call fcn.14009d1a0
test edi, edi
js 0x1400045b9
cmp edi, dword [rbp - 0xc]
jg 0x1400045b9
mov dword [rbp - 0x10], edi
movsxd rax, edi
mov word [rbp + rax*2], 0
mov r14, qword [rsp + 0x78]
mov r15, qword [rsp + 0x80]
mov r8, rbp
lea rdx, [0x1400e87b0]
lea rcx, [rsp + 0x58]
call fcn.140007750
lea rdx, [rsp + 0x90]
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14000401c
lea rdx, [rdi - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140003ff2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x1400045fc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400045fc
call fcn.140075174
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14000403b
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x68], rax
nop
lea r9, [rsp + 0xbc]
mov r8, rbp
lea rdx, [0x1400e87b8]
lea rcx, [rsp + 0x68]
call fcn.140007750
mov rbx, qword [rsp + 0x68]
cmp dword [rbx - 8], 1
jle 0x140004089
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.140006670
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140004478
xor eax, eax
mov rcx, r12
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x14000445c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400040c0
test al, 0x10
je 0x1400040c0
mov al, 1
jmp 0x1400040c2
xor al, al
movzx eax, al
test eax, eax
je 0x14000445c
lea rsi, [rsp + 0xbc]
lea rdi, [0x1400e87c4]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x14000445c
lea rsi, [rsp + 0xbc]
lea rdi, [0x1400e87c8]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x14000445c
cmp byte [r14 + 0x141], 0
je 0x1400043a6
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x140004139
cmp rax, qword [rbx - 0x18]
jne 0x140004139
lea rdi, [rbx - 0x18]
lock add dword [rbx - 8], 1
jmp 0x140004175
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
je 0x1400044d3
mov ecx, dword [rbx - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rbx - 0x10]
add ecx, 1
movsxd rdx, ecx
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.14009d1a0
lea rcx, [rdi + 0x18]
mov qword [rsp + 0x70], rcx
lea rax, [rsp + 0x4f0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6f0]
xor r8d, r8d
xor edx, edx
call fcn.14009d9d0
lea rdx, [rsp + 0x4f0]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x6f0]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x2e0]
call fcn.14009d270
call fcn.140075174
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x1400044c8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x2e0]
lea rax, [rsp + 0x2e0]
test rax, 0xffffffffffff0000
jne 0x14000422b
movzx edi, cx
mov ecx, edi
call fcn.140076014
test rax, rax
je 0x14000432b
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140056a00
jmp 0x14000432b
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x2e0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x1400042a1
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14000432b
cmp dword [rdx + 0x10], eax
jge 0x140004272
cmp dword [rsi - 0xc], eax
jl 0x1400044b2
mov dword [rsi - 0x10], eax
mov word [rsi], ax
jmp 0x14000432b
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000428a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x60], rax
jmp 0x14000432b
mov ebx, dword [rsi - 0x10]
lea rbp, [rsp + 0x2e0]
sub rbp, rsi
sar rbp, 1
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400042d4
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140006b70
mov rsi, qword [rsp + 0x60]
cmp rbp, rbx
ja 0x1400042f4
movsxd rax, edi
lea rbx, [rax + rax]
lea r8, [rsi + rbp*2]
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.14009ce60
jmp 0x140004311
movsxd rax, edi
lea rbx, [rax + rax]
mov r9, rbx
lea r8, [rsp + 0x2e0]
mov rdx, rbx
mov rcx, rsi
call fcn.14009d1a0
test edi, edi
js 0x1400044bd
cmp edi, dword [rsi - 0xc]
jg 0x1400044bd
mov dword [rsi - 0x10], edi
mov word [rbx + rsi], 0
mov dword [rsp + 0x28], r12d
mov byte [rsp + 0x20], 0
mov r9, r15
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.140005910
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000436d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000439a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
jmp 0x1400043b9
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
jmp 0x1400043b9
mov r8, r15
lea rdx, [rsp + 0xbc]
mov rcx, r14
call fcn.140004c80
mov r8d, 0xf000
mov rdx, r15
mov rcx, r14
call fcn.1400760f4
and eax, 0xfffff000
cmp eax, 0x2000
jne 0x14000445c
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0xf000
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8d, [r9 + 8]
mov rdx, r15
mov rcx, r14
call fcn.140076130
mov r9, r15
mov edx, 0x110a
mov r8d, 4
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
test rax, rax
je 0x14000445c
mov rdx, rdi
mov rcx, r14
call fcn.1400031a0
mov r9, rdi
mov edx, 0x110a
mov r8d, 1
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
test rax, rax
jne 0x140004431
xor eax, eax
mov rcx, r12
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x1400045ae
jmp 0x14000447a
xor ecx, ecx
cmp ecx, dword [rbx - 0xc]
jg 0x1400045ae
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], 0
lea rdx, [rsp + 0x90]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140004542
test r13, r13
je 0x1400044d9
jmp 0x140004050
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
nop
mov ecx, 0x80004005
call fcn.140001000
nop
call fcn.140006b60
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400044f6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140004518
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x1400045fc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400045fc
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140004569
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000458b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x1400045fc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400045fc
mov ecx, 0x80070057
call fcn.140001000
nop
mov ecx, 0x80070057
call fcn.140001000
nop
lea rdx, [rdi - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400045e1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lock xadd dword [rsi + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x1400045fc
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0x8f0]
xor rcx, rsp
call fcn.14009cca0
mov rbx, qword [rsp + 0x950]
add rsp, 0x900
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret