Function at 0x140008e10
Capabilities:
Get common file path
Write file on windows

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 - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1400cf070]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r12, rcx
xor r13d, r13d
mov qword [0x1400d2170], r13
mov dword [0x1400d2178], r13d
lea rcx, [0x1400c11f0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.Wow64DisableWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r15d, [r13 + 1]
test rax, rax
je 0x140008e92
mov dword [0x1400d2178], r15d
lea rcx, [0x1400d2170]
call rax
call fcn.140001a00
mov rcx, rax
test rax, rax
je 0x140009469
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, str.FFFFFFFFEEEEEEEEAAAAAAAABBBBBBBB
mov r14, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x140008ed8
movzx edx, dx
lea rcx, [rsp + 0x58]
call fcn.140002900
jmp 0x140008ef7
mov rax, r14
nop dword [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x140008ee0
mov r8d, eax
lea rcx, [rsp + 0x58]
call fcn.140002a90
nop
lea rcx, [rsp + 0x58]
call fcn.14001d0a0
mov rdi, qword [rsp + 0x58]
cmp dword [rdi - 0x10], 2
jg 0x140008f20
lea rcx, [rdi - 0x18]
call fcn.140008980
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
jmp 0x140008f9a
mov rcx, qword [rdi - 0x18]
test rcx, rcx
je 0x140008f37
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x140008f51
call fcn.140001a00
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rax, rax
je 0x14000945e
mov rax, qword [rcx]
mov r8d, r15d
mov edx, 2
call qword [rax]
test rax, rax
je 0x140009474
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
cmp dword [rbx - 0xc], 2
jl 0x140009453
mov dword [rbx - 0x10], 2
mov byte [rbx + 2], 0
mov r9d, 2
mov r8, rdi
mov edx, r9d
mov rcx, rbx
call fcn.1400015f0
nop
mov r8, rbx
lea rdx, str.dump_sa_s
lea rcx, [rsp + 0x58]
call fcn.140002730
nop
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140008fc9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
call fcn.140001a00
mov rcx, rax
test rax, rax
je 0x14000945e
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x50], rax
call fcn.140001a00
mov rcx, rax
test rax, rax
je 0x14000947a
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, str.spkd113
cmp rdx, 0x10000
jae 0x140009028
movzx edx, dx
lea rcx, [rsp + 0x48]
call fcn.140002900
jmp 0x140009047
mov rax, r14
nop dword [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x140009030
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.140002a90
nop
call fcn.140001a00
mov rcx, rax
test rax, rax
je 0x140009485
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x60], rax
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r9, qword [rsp + 0x58]
lea r8, [rbp - 0x50]
lea rdx, str._sdrivers_s.sys
lea rcx, [rsp + 0x50]
call fcn.140002730
lea r8, [rbp - 0x50]
lea rdx, str._sdriversdump_sa.sys
lea rcx, [rsp + 0x60]
call fcn.140002730
mov rsi, qword [rsp + 0x60]
mov ecx, r15d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
or eax, ecx
jge 0x1400090d9
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400025c0
mov rsi, qword [rsp + 0x60]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
cmp eax, 0xffffffff
je 0x14000915c
lea rdx, str._bus2345_
lea rcx, [0x1400c05c8]
call fcn.14001d3c0
mov rbx, qword [rsp + 0x48]
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x14000911f
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1400025c0
mov rbx, qword [rsp + 0x48]
mov ecx, r15d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
or eax, ecx
jge 0x14000913d
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400025c0
mov rsi, qword [rsp + 0x60]
mov r8, rbx
mov rdx, rsi
call fcn.140009490
test eax, eax
jne 0x1400092a5
lea rcx, [0x1400c05e0]
jmp 0x140009299
mov rdi, qword [rsp + 0x50]
mov ecx, r15d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
or eax, ecx
jge 0x14000917f
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400025c0
mov rdi, qword [rsp + 0x50]
mov r8, rdi
lea rdx, str._bus2345_
lea rcx, [0x1400c05f8]
call fcn.14001d3c0
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140009352
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x68]
mov r8d, 0x38950
lea rdx, [0x1400878b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1400d2178], 0
je 0x14000922f
lea rcx, [0x1400c1220]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.Wow64RevertWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000922f
mov dword [0x1400d2178], r13d
mov rcx, qword [0x1400d2170]
call rax
lea rdx, str._bus2345_
lea rcx, [0x1400c0638]
call fcn.14001d3c0
mov rbx, qword [rsp + 0x48]
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x140009265
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1400025c0
mov rbx, qword [rsp + 0x48]
mov ecx, r15d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
or eax, ecx
jge 0x140009283
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400025c0
mov rdi, qword [rsp + 0x50]
mov r8, rbx
mov rdx, rdi
call fcn.140009490
test eax, eax
jne 0x1400092a5
lea rcx, [0x1400c0648]
lea rdx, str._bus2345_
call fcn.14001d3c0
sub r15d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, r15d
jge 0x1400092c2
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1400025c0
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, r12
call fcn.140009730
test rax, rax
je 0x1400092e5
lea rdx, str._bus2345_
lea rcx, [0x1400c0660]
call fcn.14001d3c0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
xor edx, edx
mov rcx, r12
call fcn.140009730
mov qword [rsp + 0x38], r13
lea rcx, [rsp + 0x6c]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x40
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x228004
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea r8, [rsp + 0x70]
lea rdx, str._bus2345_
lea rcx, [0x1400c0718]
call fcn.14001d3c0
jmp 0x1400093aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._bus2345_
lea rcx, [0x1400c0610]
call fcn.14001d3c0
cmp dword [0x1400d2178], 0
je 0x1400093aa
lea rcx, [0x1400c1220]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.Wow64RevertWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400093aa
mov dword [0x1400d2178], r13d
mov rcx, qword [0x1400d2170]
call rax
nop
lea rdx, [rsi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400093c5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400093e5
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
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140009405
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
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140009423
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140073640
lea r11, [rsp + 0x1d0]
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, 0x80070057
call fcn.140001860
int3
mov ecx, 0x80004005
call fcn.140001860
nop
mov ecx, 0x80004005
call fcn.140001860
nop
call fcn.140002720
nop
mov ecx, 0x80004005
call fcn.140001860
nop
mov ecx, 0x80004005
call fcn.140001860
int3