Function at 0x140041630
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x14030a918]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov r12, rcx
xor r15d, r15d
mov r8d, 0xff
lea rdx, [rbp + 0x1e0]
lea rcx, str._PROGRAMFILES_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8d, 0xff
lea rdx, [rbp + 0x3e0]
lea rcx, str._PROGRAMFILES_X86__
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041c2c
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1e0]
lea rdi, [r15 - 1]
cmp rax, 0x10000
jae 0x1400416eb
lea rax, [rbp + 0x1e0]
movzx edx, ax
lea rcx, [rsp + 0x28]
call fcn.140010ac0
jmp 0x140041714
lea rcx, [rbp + 0x1e0]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400416f5
mov r8d, eax
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x28]
call fcn.140002aa8
nop
lea rbx, str.dotnet_sharedMicrosoft.WindowsDesktop.App
mov rax, rdi
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x140041720
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140005abc
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041c37
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x3e0]
cmp rax, 0x10000
jae 0x14004177f
lea rax, [rbp + 0x3e0]
movzx edx, ax
lea rcx, [rsp + 0x20]
call fcn.140010ac0
jmp 0x1400417af
lea rcx, [rbp + 0x3e0]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140041790
mov r8d, eax
lea rdx, [rbp + 0x3e0]
lea rcx, [rsp + 0x20]
call fcn.140002aa8
nop
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400417b2
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140005abc
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
lea rsi, vtable.srl::Version.0
lea r13, vtable.srl::Value.0
cmp rax, 0xffffffffffffffff
je 0x1400419c4
test byte [rbp - 0x70], 0x10
je 0x1400419a6
mov qword [rsp + 0x60], rsi
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041c21
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rcx, [rbp - 0x44]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140041830
mov r8d, eax
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x68]
call fcn.140002aa8
nop
call fcn.140010210
test rax, rax
je 0x140041c4d
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x68]
lea rax, [rdx - 1]
cmp rax, 0xfffe
ja 0x14004188c
movzx edx, dx
lea rcx, [rsp + 0x30]
call fcn.140010ac0
jmp 0x1400418b8
test rdx, rdx
jne 0x140041895
xor eax, eax
jmp 0x1400418aa
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400418a0
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140002aa8
nop
mov rsi, qword [rsp + 0x30]
lea rcx, [rsi - 0x18]
call fcn.140002c68
add rax, 0x18
mov qword [rsp + 0x40], rax
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041c42
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140002bd8
mov edx, 0x2c
lea rcx, [rsp + 0x48]
call fcn.14003ef70
mov rbx, qword [rsp + 0x48]
mov r9, rbx
mov r8d, r15d
mov edx, 0x117a6
mov rcx, qword [r12]
call fcn.14001dce0
inc r15d
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041942
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041961
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x14004197c
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004199a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x60], r13
lea rsi, vtable.srl::Version.0
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400417f6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rbp - 0x70]
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140041bb1
test byte [rbp - 0x70], 0x10
je 0x140041b8f
mov qword [rsp + 0x70], rsi
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041c21
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rcx, [rbp - 0x44]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140041a20
mov r8d, eax
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x78]
call fcn.140002aa8
nop
call fcn.140010210
test rax, rax
je 0x140041c63
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x78]
lea rax, [rdx - 1]
cmp rax, 0xfffe
ja 0x140041a7c
movzx edx, dx
lea rcx, [rsp + 0x38]
call fcn.140010ac0
jmp 0x140041aa8
test rdx, rdx
jne 0x140041a85
xor eax, eax
jmp 0x140041a9a
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140041a90
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.140002aa8
nop
mov rsi, qword [rsp + 0x38]
lea rcx, [rsi - 0x18]
call fcn.140002c68
add rax, 0x18
mov qword [rsp + 0x50], rax
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140041c58
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.140002bd8
mov edx, 0x2c
lea rcx, [rsp + 0x58]
call fcn.14003ef70
mov rbx, qword [rsp + 0x58]
mov r9, rbx
mov r8d, r15d
mov edx, 0x117a6
mov rcx, qword [r12]
call fcn.14001dce0
inc r15d
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041b32
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041b51
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x140041b6c
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041b8a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x70], r13
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140041bac
lea rsi, vtable.srl::Version.0
jmp 0x1400419e3
mov rbx, qword [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041bd5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140041bf1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.1402117c0
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
int3