Function at 0x180023900
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
lea r15, [rdx + 4]
xor ebp, ebp
mov rsi, rcx
mov dword [rdx], ebp
mov qword [rdx + 8], rbp
lea rdx, [0x180194414]
lea rcx, [rdi + 0x10]
mov dword [r15], ebp
call fcn.180004070
lea rcx, [rdi + 0x30]
call fcn.18000a130
lea rcx, [rdi + 0x48]
call fcn.18000a130
mov qword [rdi + 0x60], rbp
mov qword [rdi + 0x68], rbp
mov dword [rdi + 0x70], ebp
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x180023b73
mov rcx, qword [rcx]
test rcx, rcx
je 0x180023b73
cmp qword [rcx], 0xffffffffffffffff
jne 0x180023988
xor al, al
jmp 0x1800239c1
xor eax, eax
lea r8, [rsp + 0x3c]
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rcx]
lea r9d, [rax + 1]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x38], eax
cmp eax, 0xffffffff
jne 0x1800239ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1800239ba
xor al, al
jmp 0x1800239c1
mov rbp, qword [rsp + 0x38]
mov al, 1
test al, al
je 0x180023b73
cmp rbp, 0x20
jb 0x180023b73
mov rcx, qword [rsi + 8]
xor edx, edx
mov dword [rsp + 0x30], edx
test rcx, rcx
je 0x180023b63
mov rax, qword [rcx]
test rax, rax
je 0x180023b63
cmp qword [rax], 0xffffffffffffffff
je 0x180023b63
mov dword [rsp + 0x38], edx
lea r8d, [rdx + 4]
mov rcx, qword [rcx]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov rdx, rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180023b63
cmp dword [rsp + 0x38], 4
jne 0x180023b63
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x180023b63
test r15, r15
je 0x180023b63
mov rax, qword [rcx]
test rax, rax
je 0x180023b63
cmp qword [rax], 0xffffffffffffffff
je 0x180023b63
xor eax, eax
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], eax
mov rdx, r15
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
lea r8d, [rax + 4]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180023b63
cmp dword [rsp + 0x38], 4
jne 0x180023b63
cmp dword [r15], 0
je 0x180023b63
lea r8, [rsp + 0x30]
mov rcx, rsi
lea rdx, [rdi + 0x10]
call fcn.1800241e0
mov rcx, rsi
test al, al
jne 0x180023ac4
mov r8, rbp
mov rdx, rdi
call fcn.180023ec0
jmp 0x180023b75
mov ebx, dword [rsp + 0x30]
lea r8, [rsp + 0x30]
lea rdx, [rdi + 0x30]
add ebx, 8
call fcn.180024440
mov rcx, rsi
test al, al
je 0x180023ab4
add ebx, dword [rsp + 0x30]
lea r8, [rsp + 0x30]
lea rdx, [rdi + 0x48]
call fcn.180024440
test al, al
je 0x180023b63
mov r14d, dword [rsp + 0x30]
lea rcx, [rdi + 0x48]
add r14d, ebx
call fcn.18000a060
lea rcx, [rdi + 0x30]
mov rbx, rax
call fcn.18000a060
cmp rax, rbx
jne 0x180023b63
cmp qword [rsi + 8], 0
je 0x180023b63
mov r8d, 0x14
lea rdx, [rdi + 0x60]
mov rcx, rsi
call fcn.180024110
test al, al
je 0x180023b63
xor ecx, ecx
lea eax, [r14 + 0x14]
mov qword [rdi + 0x60], rcx
mov qword [rdi + 0x68], rcx
mov dword [rdi + 0x70], ecx
cmp eax, dword [rdi]
jne 0x180023b63
cmp dword [r15], ecx
je 0x180023b63
mov rcx, rdi
call fcn.180024040
test al, al
je 0x180023b63
mov qword [rdi + 8], rbp
mov al, 1
jmp 0x180023b75
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
call fcn.180023ec0
jmp 0x180023b75
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800d8050
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret