Function at 0x1400836b0
Capabilities:
Read file on windows

Disassembly:
mov byte [rsp + 8], cl
push rbp
push rdi
sub rsp, 0x6c8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x116
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
movzx ecx, byte [rsp + 0x6e8]
mov rax, qword [0x1401a7008]
xor rax, rbp
mov qword [rbp + 0x688], rax
lea rcx, [0x1401b9255]
call fcn.14007a304
mov rax, qword [0x1401aa6f0]
mov qword [rbp + 8], rax
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x64], 0x100000
mov byte [rbp + 0x104], 0
movzx eax, byte [rbp + 0x6b0]
test eax, eax
jne 0x140083767
movzx eax, byte [0x1401aa77e]
test eax, eax
jne 0x140083767
mov eax, dword [rbp + 0x64]
mov r8d, eax
xor edx, edx
mov rcx, qword [0x1401aa780]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140083751
jmp 0x140083767
xor edx, edx
mov eax, dword [rbp + 0x64]
mov ecx, 2
div ecx
mov dword [rbp + 0x64], eax
xor eax, eax
cmp eax, 1
jne 0x14008372f
mov eax, 1
mov word [rbp + 0xe4], ax
jmp 0x140083786
movzx eax, word [rbp + 0xe4]
inc ax
mov word [rbp + 0xe4], ax
movzx eax, word [rbp + 0xe4]
movzx ecx, word [0x1401aa77a]
cmp eax, ecx
jg 0x14008398b
movzx eax, byte [rbp + 0x6b0]
test eax, eax
jne 0x140083986
movzx eax, byte [0x1401aa77e]
test eax, eax
jne 0x140083986
mov rax, qword [rbp + 8]
mov ecx, dword [rax + 4]
call fcn.140078bdf
mov qword [rbp + 0x48], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, qword [rbp + 8]
mov eax, dword [rax + 8]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
je 0x14008397c
mov eax, dword [rbp + 0x64]
cmp dword [rbp + 0x84], eax
jbe 0x14008380c
mov eax, dword [rbp + 0x64]
mov dword [rbp + 0x684], eax
jmp 0x140083818
mov eax, dword [rbp + 0x84]
mov dword [rbp + 0x684], eax
mov eax, dword [rbp + 0x684]
mov dword [rbp + 0xc4], eax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xa4]
mov r8d, dword [rbp + 0xc4]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [rbp + 0x124], al
movzx eax, byte [rbp + 0x124]
test eax, eax
je 0x14008386c
mov eax, dword [rbp + 0xa4]
cmp dword [rbp + 0xc4], eax
je 0x140083913
lea rax, [rbp + 0x150]
mov rdi, rax
xor eax, eax
mov ecx, 0x80
rep stosb byte [rdi], al
mov rax, qword [rbp + 8]
add rax, 0xc
mov rcx, rax
call fcn.140078743
mov word [rbp + 0x404], ax
movzx eax, word [rbp + 0x404]
mov rcx, qword [rbp + 8]
add rcx, 0xc
mov r8d, eax
lea rdx, [rbp + 0x150]
call qword [sym.imp.USER32.dll_OemToCharBuffW]
lea rax, [rbp + 0x150]
mov qword [rbp + 0x428], rax
lea rax, [0x1401aa70e]
mov qword [rbp + 0x430], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rbp + 0x428]
mov r8d, eax
mov edx, 0xc0054004
lea rcx, [rbp + 0x1f0]
call fcn.14007907b
movzx eax, al
test eax, eax
je 0x14008390a
lea rdx, [rbp + 0x1f0]
mov ecx, 0xc0054023
call fcn.14007826b
mov byte [rbp + 0x104], 1
jmp 0x14008397c
mov edx, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0x28]
call fcn.140084810
mov byte [rbp + 0x104], al
movzx eax, byte [0x1401aa77f]
test eax, eax
je 0x14008394e
movsxd rax, dword [rbp + 0xc4]
mov rcx, qword [0x1401aa6d8]
add rcx, rax
mov rax, rcx
mov qword [0x1401aa6d8], rax
mov eax, dword [rbp + 0xc4]
mov ecx, dword [rbp + 0x84]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x84], eax
movzx eax, byte [rbp + 0x104]
test eax, eax
jne 0x14008397c
cmp dword [rbp + 0x84], 0
jne 0x1400837f6
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140083775
cmp qword [rbp + 0x28], 0
je 0x1400839a5
mov r8, qword [rbp + 0x28]
xor edx, edx
mov rcx, qword [0x1401aa780]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [0x1401aa6f0], 0
je 0x1400839c5
mov r8, qword [0x1401aa6f0]
xor edx, edx
mov rcx, qword [0x1401aa780]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [0x1401aa6f0], 0
xor eax, eax
mov word [0x1401aa77a], ax
movzx eax, byte [rbp + 0x104]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x140172310]
call fcn.140079a35
mov eax, edi
mov rcx, qword [rbp + 0x688]
xor rcx, rbp
call fcn.140078919
lea rsp, [rbp + 0x698]
pop rdi
pop rbp
ret