Function at 0x140183cd0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1150
call fcn.1401d4c90
sub rsp, rax
mov qword [rsp + 0x1130], 0xfffffffffffffffe
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x1140], rax
mov rax, qword [rsp + 0x1160]
cmp qword [rax + 8], 0
jne 0x140183d21
xor al, al
jmp 0x1401841d9
movzx eax, byte [rsp + 0x1170]
test eax, eax
jne 0x140183d52
lea rdx, [0x14023f958]
mov rcx, qword [rsp + 0x1168]
call fcn.1400a9bbc
cmp rax, qword [rsp + 0x1168]
jne 0x140183d52
xor al, al
jmp 0x1401841d9
mov dx, 0x3a
mov rcx, qword [rsp + 0x1168]
call fcn.1400ab0cc
test rax, rax
je 0x140183d75
mov dword [rsp + 0x1138], 1
jmp 0x140183d80
mov dword [rsp + 0x1138], 0
movzx eax, byte [rsp + 0x1138]
mov byte [rsp + 0x4f0], al
mov rdx, qword [rsp + 0x1168]
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x2e0]
mov rcx, qword [rsp + 0x1160]
call fcn.140182a30
movzx edx, word [0x14023ecd4]
mov word [rsp + 0x90], dx
lea rdi, [rsp + 0x92]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x1170]
test eax, eax
je 0x140183e39
lea rax, [rsp + 0x720]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x520]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x1168]
call fcn.1400ab96c
lea rdx, [rsp + 0x720]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x520]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.1400ab9fc
jmp 0x140183eff
movzx eax, byte [rsp + 0x4f0]
test eax, eax
je 0x140183eaf
mov rcx, qword [rsp + 0x1160]
add rcx, 0x10
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
mov rdx, qword [rsp + 0x1160]
add rdx, 0x10
mov rcx, qword [rsp + 0x1168]
call fcn.1400a939c
test eax, eax
je 0x140183e7e
xor al, al
jmp 0x1401841d9
mov rcx, qword [rsp + 0x1160]
add rcx, 0x10
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov rax, qword [rsp + 0x1168]
lea rdx, [rax + rcx*2]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x140183eff
lea rdx, [0x14023f960]
mov rcx, qword [rsp + 0x1168]
call fcn.1400a9bbc
cmp rax, qword [rsp + 0x1168]
jne 0x140183ee9
mov rdx, qword [rsp + 0x1168]
add rdx, 4
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x140183eff
mov rdx, qword [rsp + 0x1168]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [rsp + 0x514], 0
mov rcx, qword [rsp + 0x1168]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x518], eax
mov r8b, 1
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x2e0]
call fcn.140182930
mov dword [rsp + 0x510], 0
movzx eax, word [rsp + 0x2d0]
mov dword [rsp + 0x50c], eax
movzx eax, word [rsp + 0x2d2]
sub eax, 1
mov dword [rsp + 0x508], eax
movzx eax, word [rsp + 0x2d6]
mov dword [rsp + 0x504], eax
movzx eax, word [rsp + 0x2d8]
mov dword [rsp + 0x500], eax
movzx eax, word [rsp + 0x2da]
mov dword [rsp + 0x4fc], eax
movzx eax, word [rsp + 0x2dc]
mov dword [rsp + 0x4f8], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x2c8], rax
cmp qword [rsp + 0x2c8], 0xffffffffffffffff
jne 0x140183feb
xor al, al
jmp 0x1401841d9
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x2a0]
call fcn.140183320
nop
mov rdx, qword [rsp + 0x1168]
lea rcx, [rsp + 0x60]
call fcn.140183320
nop
lea rcx, [rsp + 0x60]
call fcn.14000d0b0
mov rdi, rax
lea rcx, [rsp + 0x2a0]
call fcn.14000d0b0
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x40], 8
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x4f8]
mov rdx, rax
mov rcx, qword [rsp + 0x1160]
mov rcx, qword [rcx + 8]
call fcn.14005edb0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14018416d
mov rax, qword [rsp + 0x1160]
mov ecx, dword [rax + 0x21c]
add ecx, 1
mov rax, qword [rsp + 0x1160]
mov dword [rax + 0x21c], ecx
mov dword [rsp + 0x1124], 0
mov dword [rsp + 0x1120], 0
cmp dword [rsp + 0x50], 0
jne 0x14018414a
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x1124]
mov r8d, 0x800
lea rdx, [rsp + 0x920]
mov rcx, qword [rsp + 0x2c8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14018414a
mov ecx, dword [rsp + 0x1124]
mov eax, dword [rsp + 0x1120]
add eax, ecx
mov dword [rsp + 0x1120], eax
cmp dword [rsp + 0x1124], 0
je 0x140184143
mov r8d, dword [rsp + 0x1124]
lea rdx, [rsp + 0x920]
mov rcx, qword [rsp + 0x1160]
mov rcx, qword [rcx + 8]
call fcn.14005f010
mov dword [rsp + 0x50], eax
jmp 0x140184145
jmp 0x14018414a
jmp 0x1401840bf
mov rax, qword [rsp + 0x1160]
mov ecx, dword [rax + 0x224]
add ecx, dword [rsp + 0x1120]
mov rax, qword [rsp + 0x1160]
mov dword [rax + 0x224], ecx
mov rcx, qword [rsp + 0x1160]
mov rcx, qword [rcx + 8]
call fcn.14005fad0
mov rcx, qword [rsp + 0x2c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x50], 0
jne 0x1401841a0
mov dword [rsp + 0x113c], 1
jmp 0x1401841ab
mov dword [rsp + 0x113c], 0
movzx eax, byte [rsp + 0x113c]
mov byte [rsp + 0x1128], al
lea rcx, [rsp + 0x60]
call fcn.14000dac0
nop
lea rcx, [rsp + 0x2a0]
call fcn.14000dac0
mov al, byte [rsp + 0x1128]
mov rcx, qword [rsp + 0x1140]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x1150
pop rdi
ret