Function at 0x140002708
Capabilities:
Enumerate files on windows
Identify system language via api
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1260]
mov eax, 0x1360
call fcn.140013300
sub rsp, rax
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rbp + 0x1250], rax
mov rax, qword [rbp + 0x12c0]
xor r14d, r14d
mov qword [rbp - 0x80], rax
lea rax, str.clui.dll
mov qword [rsp + 0x58], rax
mov r13d, 0x400
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x70], r13
mov dword [rsp + 0x40], 0x60
test rcx, rcx
je 0x14001f335
cmp word [rcx], r14w
je 0x14001f335
mov qword [r9], r14
mov r8, rcx
or r15, 0xffffffffffffffff
lea rcx, [rbp + 0xa50]
mov r9, r15
mov edx, r13d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
jne 0x140002a1b
lea rcx, [rbp + 0xa50]
mov rax, r15
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1400027b6
cmp word [rbp + rax*2 + 0xa4e], 0x5c
je 0x1400027ed
mov r9, r15
lea r8, [0x14002fdf8]
mov rdx, r13
lea rcx, [rbp + 0xa50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
test eax, eax
jne 0x140002a1b
lea rax, [rbp + 0xa50]
mov dword [rsp + 0x30], 0x80070002
mov qword [rbp - 0x68], rax
lea rdx, [rbp + 0x228]
lea rax, [rsp + 0x58]
mov qword [rbp - 0x60], rax
lea rcx, str.VSLANG
lea rax, [rsp + 0x40]
mov qword [rbp - 0x58], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x50], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rbp - 0x38], rax
xor eax, eax
mov qword [rbp + 0x228], rax
mov dword [rbp + 0x230], eax
lea esi, [rax + 6]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 4
jbe 0x14001effc
mov rcx, qword [0x140060988]
mov r12d, 1
test rcx, rcx
jne 0x14001f027
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f060
lea rdx, str.SetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140060988], rax
test rbx, rbx
je 0x14001f060
xor r8d, r8d
lea rcx, str.VS_UNICODE_OUTPUT
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400028ea
xor r8d, r8d
xor edx, edx
mov ecx, 0x100
call rbx
test eax, eax
je 0x140002a1b
mov rcx, qword [0x140060990]
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x3c], r14d
test rcx, rcx
jne 0x14001f035
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f0f7
lea rdx, str.GetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140060990], rax
test rdi, rdi
je 0x14001f0f7
xor r8d, r8d
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x3c]
lea r12d, [r8 + 0x34]
mov ecx, r12d
call rdi
test eax, eax
je 0x140002a1b
mov ebx, dword [rsp + 0x38]
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14001f043
lea r9, [rsp + 0x38]
mov r8, rax
lea rdx, [rsp + 0x3c]
mov ecx, r12d
call rdi
test eax, eax
je 0x140002a1b
mov rbx, rsi
cmp word [rsi], r14w
je 0x140002a15
lea r9, [rsp + 0x30]
mov r8d, 0x10
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.1400025a8
mov edi, dword [rsp + 0x30]
test edi, edi
jne 0x14001f04d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x14001f0f7
xor eax, eax
mov rcx, qword [rbp + 0x1250]
xor rcx, rsp
call fcn.140011610
mov rbx, qword [rsp + 0x13a8]
add rsp, 0x1360
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edi, dword [rsp + 0x30]
jmp 0x1400029cd
mov eax, 0x80004005
jmp 0x1400029eb
lea r9, [rsp + 0x30]
mov r8d, 0xa
lea rdx, [rbp + 0x228]
lea rcx, [rbp - 0x68]
call fcn.1400025a8
cmp dword [rsp + 0x30], r14d
je 0x1400029e9
jmp 0x140002868
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rbx, rax
jmp 0x1400028b7
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rdi, rax
jmp 0x14000293d
mov eax, 0x8007000e
jmp 0x1400029eb
add rbx, 0xa
cmp word [rbx], r14w
jne 0x1400029aa
jmp 0x1400029cd
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov r8d, 0x3ff
movzx ecx, ax
and cx, r8w
lea edx, [r8 + 0xa]
cmp cx, r12w
je 0x14001f083
cmp cx, 0xd
jne 0x14001f085
mov eax, edx
mov word [rbp + 0x220], ax
lea rdi, [rbp + 0x220]
and ax, r8w
mov word [rbp + 0x224], dx
or ax, r13w
mov ebx, r14d
mov word [rbp + 0x222], ax
movzx ecx, word [rdi]
lea rdx, [rbp + 0x238]
mov r9d, 0xa
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
lea r9, [rsp + 0x30]
mov r8d, 0xa
lea rdx, [rbp + 0x238]
lea rcx, [rbp - 0x68]
call fcn.1400025a8
cmp dword [rsp + 0x30], r14d
je 0x1400029e9
add ebx, r12d
add rdi, 2
cmp ebx, 3
jb 0x14001f0ac
lea r9, [rsp + 0x30]
mov r8d, 0xa
lea rdx, str.1033
lea rcx, [rbp - 0x68]
call fcn.1400025a8
mov esi, dword [rsp + 0x30]
test esi, esi
je 0x1400029e9
mov r9, r15
lea r8, [rbp + 0xa50]
mov rdx, r13
lea rcx, [rbp + 0x250]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
jne 0x14001f32b
mov r9, r15
lea r8, [0x1400396b4]
mov rdx, r13
lea rcx, [rbp + 0x250]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
test eax, eax
jne 0x14001f32b
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x250]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, r15
jne 0x14001f196
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400029eb
movzx eax, ax
or eax, 0x80070000
jmp 0x1400029eb
lea rax, [rbp + 0xa50]
mov rdi, r15
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x14001f1a0
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14001f2fe
mov r12d, 0x2e
test byte [rbp - 0x30], 0x10
je 0x14001f30e
movzx ecx, word [rbp - 4]
sub ecx, r12d
jne 0x14001f1e2
movzx ecx, word [rbp - 2]
movzx eax, r14w
sub ecx, eax
test ecx, ecx
je 0x14001f30e
movzx ecx, word [rbp - 4]
sub ecx, r12d
jne 0x14001f206
movzx ecx, word [rbp - 2]
sub ecx, r12d
jne 0x14001f206
movzx ecx, word [rbp]
movzx eax, r14w
sub ecx, eax
test ecx, ecx
je 0x14001f30e
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 1
lea r8, [rsp + 0x34]
lea rdx, [0x1400396b8]
lea rcx, [rbp - 4]
call fcn.140003070
cmp eax, r15d
je 0x14001f30e
lea rax, [rdi + rdi]
cmp rax, 0x800
jae 0x14001f325
mov r9, r15
mov word [rbp + rax + 0x250], r14w
lea r8, [rbp - 4]
mov rdx, r13
lea rcx, [rbp + 0x250]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
test eax, eax
jne 0x14001f30e
mov r9, r15
lea r8, [0x14002fdf8]
mov rdx, r13
lea rcx, [rbp + 0x250]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
test eax, eax
jne 0x14001f30e
mov r8, qword [rsp + 0x58]
lea rcx, [rbp + 0x250]
mov r9, r15
mov rdx, r13
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
test eax, eax
jne 0x14001f30e
mov r8d, dword [rsp + 0x40]
lea rcx, [rbp + 0x250]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
test rax, rax
je 0x14001f30e
mov rax, qword [rsp + 0x60]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001f2e1
movzx eax, word [rsp + 0x34]
mov word [rcx], ax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14001f2fb
mov rdx, qword [rbp - 0x70]
lea r8, [rbp + 0x250]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov esi, r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x1400029eb
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001f1c5
jmp 0x14001f2fe
call fcn.140011740
int3
mov eax, 0x80070003
jmp 0x1400029eb
mov eax, 0x80070057
jmp 0x1400029eb