Function at 0x140082570
Capabilities:
Check os version
Enumerate files on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x740
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0x730], rax
mov r15, rcx
mov qword [rsp + 0x78], rcx
mov rbx, qword [rcx + 0x178]
xor ebp, ebp
test rbx, rbx
je 0x140082662
mov rax, qword [rbx]
cmp dword [rax + 0x174], 4
jl 0x140082662
call fcn.14009d5e8
mov r11, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x1400825f6
mov ecx, 0x80004005
call fcn.1400034f0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rax, [0x1400fb278]
mov qword [rsp + 0x20], rax
lea r9, str.CreateInfFileInfo
lea r8, str.CSetupApp
lea rdx, str.private__s::_s__s_
lea rcx, [rsp + 0x48]
call fcn.14000a800
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14002f200
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140082662
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor r13w, r13w
mov word [rsp + 0x40], r13w
nop
mov rax, qword [r15 + 0x150]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140083004
cmp r13w, word [rcx + 0x10]
jae 0x140083004
mov rbx, qword [r15 + 0x148]
mov dword [rsp + 0x90], 0x11c
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x14008272c
mov rcx, rbp
nop
nop
cmp dword [rdx + rcx*4], 0x80000000
jne 0x140082720
test rcx, rcx
jne 0x1400826d9
mov eax, dword [rsp + 0xa0]
mov dword [rdx], eax
jmp 0x140082720
cmp rcx, 1
jne 0x1400826eb
mov eax, dword [rsp + 0x94]
mov dword [rdx + 4], eax
jmp 0x140082720
cmp rcx, 2
jne 0x1400826fd
mov eax, dword [rsp + 0x98]
mov dword [rdx + 8], eax
jmp 0x140082720
cmp rcx, 3
jne 0x14008270f
mov eax, dword [rsp + 0x9c]
mov dword [rdx + 0xc], eax
jmp 0x140082720
cmp rcx, 4
jne 0x140082720
movzx eax, word [rsp + reloc.OLEAUT32.dll_OleTranslateColor]
mov dword [rdx + 0x10], eax
add rcx, 1
cmp rcx, 5
jl 0x1400826c0
jmp 0x140082790
mov rcx, qword [rbx + 0x190]
mov edx, 8
lea r8d, [rdx + 0xc]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x78], rax
test rax, rax
je 0x140082790
mov ecx, dword [rsp + 0xa0]
mov dword [rax], ecx
mov rcx, qword [rbx + 0x78]
mov eax, dword [rsp + 0x94]
mov dword [rcx + 4], eax
mov rcx, qword [rbx + 0x78]
mov eax, dword [rsp + 0x98]
mov dword [rcx + 8], eax
mov rcx, qword [rbx + 0x78]
mov eax, dword [rsp + 0x9c]
mov dword [rcx + 0xc], eax
movzx ecx, word [rsp + reloc.OLEAUT32.dll_OleTranslateColor]
mov rax, qword [rbx + 0x78]
mov dword [rax + 0x10], ecx
mov rdi, qword [rbx + 0x78]
mov rbx, qword [r15 + 0x148]
mov dword [rsp + 0x1b0], 0x11c
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x14008282c
mov rcx, rbp
cmp dword [rdx + rcx*4], 0x80000000
jne 0x140082820
test rcx, rcx
jne 0x1400827d9
mov eax, dword [rsp + 0x1c0]
mov dword [rdx], eax
jmp 0x140082820
cmp rcx, 1
jne 0x1400827eb
mov eax, dword [rsp + 0x1b4]
mov dword [rdx + 4], eax
jmp 0x140082820
cmp rcx, 2
jne 0x1400827fd
mov eax, dword [rsp + 0x1b8]
mov dword [rdx + 8], eax
jmp 0x140082820
cmp rcx, 3
jne 0x14008280f
mov eax, dword [rsp + 0x1bc]
mov dword [rdx + 0xc], eax
jmp 0x140082820
cmp rcx, 4
jne 0x140082820
movzx eax, word [rsp + 0x2c4]
mov dword [rdx + 0x10], eax
add rcx, 1
cmp rcx, 5
jl 0x1400827c0
jmp 0x140082890
mov rcx, qword [rbx + 0x190]
mov edx, 8
lea r8d, [rdx + 0xc]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x78], rax
test rax, rax
je 0x140082890
mov ecx, dword [rsp + 0x1c0]
mov dword [rax], ecx
mov rcx, qword [rbx + 0x78]
mov eax, dword [rsp + 0x1b4]
mov dword [rcx + 4], eax
mov rcx, qword [rbx + 0x78]
mov eax, dword [rsp + 0x1b8]
mov dword [rcx + 8], eax
mov rcx, qword [rbx + 0x78]
mov eax, dword [rsp + 0x1bc]
mov dword [rcx + 0xc], eax
movzx ecx, word [rsp + 0x2c4]
mov rax, qword [rbx + 0x78]
mov dword [rax + 0x10], ecx
mov rax, qword [rbx + 0x78]
mov dword [rsp + 0x30], 0x104
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov word [rsp + 0x20], r13w
mov r9d, dword [rdi + 8]
mov r8d, dword [rax + 4]
lea rdx, [rsp + 0x520]
mov rcx, qword [r15 + 0x150]
call fcn.1400766b0
test eax, eax
je 0x140082fe8
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov word [rsp + 0x58], r13w
mov r14d, ebp
mov rax, qword [r15 + 0x150]
mov rcx, qword [rax + 0x10]
movzx esi, r13w
test rsi, rsi
js 0x140082923
mov rax, qword [rcx + 0x10]
cmp rsi, rax
jge 0x140082923
test rsi, rsi
js 0x140082ff8
cmp rsi, rax
jge 0x140082ff8
mov rax, qword [rcx + 8]
mov rcx, qword [rax + rsi*8]
jmp 0x140082926
mov rcx, rbp
test rcx, rcx
je 0x140082962
mov eax, 0x7fffffff
mov edx, ebp
cmp word [rcx], 0
je 0x140082944
add rcx, 2
sub rax, 1
jne 0x140082932
jmp 0x140082949
test rax, rax
jne 0x140082953
mov edx, 0x80070057
mov r9, rbp
jmp 0x14008295c
mov r9d, 0x7fffffff
sub r9, rax
test edx, edx
jns 0x140082970
jmp 0x140082967
mov edx, 0x80070057
mov r9, rbp
test edx, edx
cmovs r9, rbp
mov ecx, 0x7fffffff
lea rax, [rsp + 0x520]
nop
cmp word [rax], 0
je 0x140082992
add rax, 2
sub rcx, 1
jne 0x140082980
jmp 0x1400829a2
test rcx, rcx
je 0x1400829a2
mov r8d, 0x7fffffff
sub r8, rcx
jmp 0x1400829a5
mov r8, rbp
mov rax, qword [r15 + 0x148]
mov rcx, qword [rax + 0x100]
cmp dword [rcx - 0x10], 0
je 0x1400829f4
test rcx, rcx
je 0x1400829f4
mov eax, 0x7fffffff
mov edx, ebp
cmp word [rcx], 0
je 0x1400829d7
add rcx, 2
sub rax, 1
jne 0x1400829c5
jmp 0x1400829dc
test rax, rax
jne 0x1400829e6
mov edx, 0x80070057
mov rcx, rbp
jmp 0x1400829ee
mov ecx, 0x7fffffff
sub rcx, rax
test edx, edx
jns 0x140082a02
jmp 0x1400829f9
mov edx, 0x80070057
mov rcx, rbp
test edx, edx
cmovs rcx, rbp
lea eax, [rcx + r8]
lea edi, [rax + r9 + 0x104]
movsxd rbx, edi
lea r8, [rbx + rbx]
mov rcx, qword [r15 + 0x140]
mov r12, rbp
test r8, r8
je 0x140082a35
mov edx, 8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
mov rcx, qword [r15 + 0x150]
mov rax, qword [rcx + 0x10]
test rsi, rsi
js 0x140082a6a
mov rcx, qword [rax + 0x10]
cmp rsi, rcx
jge 0x140082a6a
test rsi, rsi
js 0x140082ffe
cmp rsi, rcx
jge 0x140082ffe
mov rax, qword [rax + 8]
mov rdx, qword [rax + rsi*8]
jmp 0x140082a6d
mov rdx, rbp
test edi, edi
je 0x140082abf
cmp rbx, 0x7fffffff
ja 0x140082abf
mov rcx, r12
mov r8d, 0x7ffffffe
sub r8, rbx
sub rdx, r12
nop
nop
lea rax, [rbx + r8]
test rax, rax
je 0x140082ab1
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140082ab1
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x140082a90
jmp 0x140082ab6
test rbx, rbx
jne 0x140082aba
sub rcx, 2
mov word [rcx], 0
mov rcx, r12
call fcn.14002ad10
mov r8, qword [r15 + 0x148]
test byte [r8], 0x80
je 0x140082af6
mov r8, qword [r8 + 0x100]
cmp dword [r8 - 0x10], 0
cmove r8, rbp
mov r9d, edi
mov rdx, r12
mov rcx, qword [r15 + 0x140]
call fcn.1400120c0
lea rdx, [rsp + 0x520]
mov rcx, r12
call fcn.14002ae40
cmp dword [rsp + 0x50], 0
je 0x140082cb3
lea rdx, [rsp + 0x2d0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140082c7a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, r12
cmp word [r12], 0
je 0x140082b54
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
cmp word [rax], 0
jne 0x140082b40
cmp r12, rax
ja 0x140082b86
movzx ecx, word [rax]
cmp cx, 0x2f
je 0x140082b86
cmp cx, 0x5c
je 0x140082b86
cmp cx, 0x3a
je 0x140082b86
cmp rax, r12
je 0x140082b81
mov rdx, rax
mov rcx, r12
call qword [sym.imp.USER32.dll_CharPrevW]
cmp r12, rax
jbe 0x140082b54
jmp 0x140082b86
mov rbp, r12
jmp 0x140082b92
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rbp, rax
mov rbx, qword [rsp + 0x68]
test rbx, rbx
jne 0x140082bde
lea ecx, [rbx + 0x30]
call fcn.140091360
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140082bd7
mov rcx, rax
call fcn.1400aa430
nop
lea rax, method.CPtrArray.virtual_0
mov qword [rbx], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [rbx + 0x28], rax
jmp 0x140082bd9
xor ebx, ebx
mov qword [rsp + 0x68], rbx
test rbp, rbp
je 0x140082c68
mov ecx, 0x3fffffff
mov rax, rbp
nop
cmp word [rax], 0
je 0x140082c02
add rax, 2
sub rcx, 1
jne 0x140082bf0
jmp 0x140082c68
test rcx, rcx
je 0x140082c68
mov eax, 0x3fffffff
sub rax, rcx
lea rdi, [rax + rax + 2]
test rdi, rdi
jle 0x140082c68
mov r8, rdi
mov edx, 8
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140082c68
mov r9, rdi
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.1400cd500
test eax, eax
jne 0x140082c59
mov r8, rsi
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
call fcn.1400aa678
jmp 0x140082c68
mov r8, rsi
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call fcn.14002ad10
mov qword [rsp + 0x60], rax
jmp 0x140082f29
mov rbx, qword [r15 + 0x150]
mov rax, qword [rbx]
test rax, rax
je 0x140082fe8
cmp qword [rax + rsi*8], 0
je 0x140082ca7
mov rcx, qword [rax + rsi*8]
test rcx, rcx
je 0x140082ca7
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rbx]
mov qword [rax + rsi*8], rbp
jmp 0x140082fe8
mov qword [rsp + 0x60], r12
test r12, r12
je 0x140082cf9
mov ecx, 0x7fffffff
mov rax, r12
mov r8d, ebp
cmp word [rax], 0
je 0x140082cda
add rax, 2
sub rcx, 1
jne 0x140082cc8
jmp 0x140082cdf
test rcx, rcx
jne 0x140082cea
mov r8d, 0x80070057
mov rdx, rbp
jmp 0x140082cf2
mov edx, 0x7fffffff
sub rdx, rcx
test r8d, r8d
jns 0x140082d09
jmp 0x140082cff
mov r8d, 0x80070057
mov rdx, rbp
test r8d, r8d
cmovs rdx, rbp
mov ecx, 0x7fffffff
lea rax, str..inf
cmp word [rax], 0
je 0x140082d27
add rax, 2
sub rcx, 1
jne 0x140082d15
jmp 0x140082d36
test rcx, rcx
je 0x140082d36
mov eax, 0x7fffffff
sub rax, rcx
jmp 0x140082d39
mov rax, rbp
lea eax, [rax + rdx + 0x104]
movsxd r8, eax
add r8, r8
mov rcx, qword [r15 + 0x140]
mov r13, rbp
mov qword [rsp + 0x48], rbp
je 0x140082d6d
mov edx, 8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
mov qword [rsp + 0x48], rax
mov edx, 0x7fffffff
mov rcx, r13
sub r12, r13
nop
nop
lea r8, [rdx - 1]
test r8, r8
je 0x140082da4
movzx eax, word [rcx + r12]
test ax, ax
je 0x140082da4
mov word [rcx], ax
add rcx, 2
mov rdx, r8
test r8, r8
jne 0x140082d80
jmp 0x140082da9
test rdx, rdx
jne 0x140082dad
sub rcx, 2
mov word [rcx], 0
lea rdx, str..inf
mov rcx, r13
call fcn.14002ae40
lea rdx, [rsp + 0x2d0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140082f00
xor r15d, r15d
lea r13, method.CPtrArray.virtual_0
nop
nop
test byte [rsp + 0x2d0], 0x10
jne 0x140082ed4
mov rbx, qword [rsp + 0x68]
test rbx, rbx
jne 0x140082e44
lea ecx, [rbx + 0x30]
call fcn.140091360
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140082e3c
mov rcx, rax
call fcn.1400aa430
nop
mov qword [rbx], r13
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [rbx + 0x28], rax
jmp 0x140082e3f
mov rbx, r15
mov qword [rsp + 0x68], rbx
mov ecx, 0x3fffffff
lea rax, [rsp + 0x2fc]
cmp word [rax], 0
je 0x140082e63
add rax, 2
sub rcx, 1
jne 0x140082e51
jmp 0x140082ece
test rcx, rcx
je 0x140082ece
mov eax, 0x3fffffff
sub rax, rcx
lea rdi, [rax + rax + 2]
test rdi, rdi
jle 0x140082ece
mov r8, rdi
mov edx, 8
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140082ece
mov r9, rdi
lea r8, [rsp + 0x2fc]
mov rdx, rdi
mov rcx, rax
call fcn.1400cd500
test eax, eax
jne 0x140082ebf
mov r8, rsi
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
call fcn.1400aa678
jmp 0x140082ece
mov r8, rsi
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r14d, 1
lea rdx, [rsp + 0x2d0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140082df0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x78]
mov rcx, qword [r15 + 0x140]
test r13, r13
je 0x140082f1a
mov r8, r13
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
je 0x140082fdc
movzx r13d, word [rsp + 0x40]
mov rdi, qword [r15 + 0x148]
cmp qword [rdi + 0x58], 0
jne 0x140082f7d
mov ecx, 0x30
call fcn.140091360
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140082f74
mov rcx, rax
call fcn.1400aa430
nop
lea rax, method.CPtrArray.virtual_0
mov qword [rbx], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [rbx + 0x28], rax
jmp 0x140082f79
xor eax, eax
mov rbx, rax
mov qword [rdi + 0x58], rbx
mov rbx, qword [rdi + 0x58]
mov edx, 8
lea r8d, [rdx + 0x10]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140082fe6
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetElement
lea r8, [rsp + 0x58]
mov rdx, r9
mov rcx, rax
call fcn.1400cd500
test eax, eax
jne 0x140082fc9
mov r8, rdi
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
call fcn.1400aa678
xor ebp, ebp
jmp 0x140082fe8
mov r8, rdi
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebp, ebp
jmp 0x140082fe8
mov r13w, word [rsp + 0x40]
xor ebp, ebp
jmp 0x140082fe8
xor ebp, ebp
add r13w, 1
mov word [rsp + 0x40], r13w
jmp 0x140082670
call fcn.1400a0610
int3
call fcn.1400a0610
int3
mov dword [rsp + 0x20], ebp
lea r9, [0x1400fb428]
lea r8, str.CreateInfFileInfo
lea rdx, str.CSetupApp
mov rcx, r15
call fcn.140081270
xor eax, eax
mov rcx, qword [rsp + 0x730]
xor rcx, rsp
call fcn.1400cd6e0
lea r11, [rsp + 0x740]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret