Function at 0x180122cc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1f0
mov rax, qword [0x180161180]
xor rax, rsp
mov qword [rsp + 0x1e8], rax
mov dword [rsp + 0x98], 0x78
mov qword [rsp + 0x90], 0xffffffffffffffff
mov dword [rsp + 0x1c0], 0
mov byte [rsp + 0xb0], 0
lea rdi, [rsp + 0xb1]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea r8, [0x18005f6c8]
lea rdx, [0x18005fa70]
mov ecx, 1
call fcn.1801276b0
nop
mov rax, qword [rsp + 0x200]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x200]
lea r8, [0x18005fa38]
lea rdx, [0x18005fa70]
mov ecx, 2
call fcn.1801276b0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x200]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0xffffffffffffffff
jne 0x180122ded
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x200]
lea r8, [0x18005f9b0]
lea rdx, [0x18005fa70]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180123067
lea rdi, [rsp + 0xb0]
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x200]
mov qword [rsp + 0x1c8], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x1d8], rax
mov rax, qword [rsp + 0x1c8]
movzx eax, byte [rax]
mov byte [rsp + 0x1e0], al
mov rcx, qword [rsp + 0x1d0]
movzx eax, byte [rsp + 0x1e0]
mov byte [rcx], al
mov rax, qword [rsp + 0x1c8]
add rax, 1
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x1d0]
add rax, 1
mov qword [rsp + 0x1d0], rax
cmp byte [rsp + 0x1e0], 0
jne 0x180122e2e
lea rcx, [rsp + 0xb0]
call fcn.1800eb220
lea rdx, [0x18005f9a8]
lea rcx, [rsp + 0xb0]
call fcn.1800eae7c
test rax, rax
je 0x180122eed
mov dword [rsp + 0x98], 0
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x200]
lea r8, [0x18005f960]
lea rdx, [0x18005fa70]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180123067
lea rdi, [rsp + 0x60]
xor eax, eax
mov ecx, 0x2c
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x1c0]
mov r8d, 0x2c
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180122f8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0x2c
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x90]
lea r8, [0x18005f910]
lea rdx, [0x18005fa70]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180123067
mov eax, dword [rsp + 0x1c0]
cmp rax, 0x2c
je 0x18012300f
mov dword [rsp + 0x98], 0x3e4
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x40], 0x2c
mov eax, dword [rsp + 0x1c0]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0x2c
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x90]
lea r8, [0x18005f8a0]
lea rdx, [0x18005fa70]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180123067
lea rcx, [rsp + 0x60]
call fcn.180127990
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
je 0x18012305c
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x60]
lea r8, [0x18005f850]
lea rdx, [0x18005fa70]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180123067
mov dword [rsp + 0x98], 0
cmp qword [rsp + 0x90], 0xffffffffffffffff
je 0x180123080
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1801230c0
lea r8, [0x18005f618]
lea rdx, [0x18005fa70]
mov ecx, 1
call fcn.1801276b0
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x1e8]
xor rcx, rsp
call fcn.1800eb430
add rsp, 0x1f0
pop rdi
ret