Function at 0x100004744
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa88
mov rax, qword [0x10001b110]
xor rax, rsp
mov qword [rsp + 0xa70], rax
mov eax, dword [rdx + 0x34]
xor edi, edi
mov r13, r9
or dword [rcx + 0xc40], eax
cmp dword [rdx + 0x2c], edi
mov r15, r8
mov rsi, rdx
mov rbp, rcx
mov r14d, edi
jne 0x100004a8b
mov r12d, 0x400
lea rbx, [rsp + 0x670]
cmp dword [rsi + 0x30], edi
jne 0x1000047f6
mov r9, qword [rsi]
lea r8, [0x100001ac0]
lea rdx, [0x100003f38]
mov rcx, r13
call fcn.10000afac
cmp dword [rsi + 0x2c], edi
setne dil
mov eax, edi
jmp 0x100004a90
mov rcx, qword [rsi + 0x18]
mov dl, byte [rcx]
mov al, dl
cmp dl, 0xa
je 0x100004877
cmp al, 0xd
je 0x1000047ee
cmp al, 0x1a
je 0x10000483e
cmp r12d, 1
jle 0x1000047b9
dec r12d
mov byte [rbx], dl
inc rbx
lea rax, [rcx + 1]
mov qword [rsi + 0x18], rax
mov rax, qword [rsi + 0x20]
cmp qword [rsi + 0x18], rax
jbe 0x1000047c7
cmp dword [rsi + 0x28], edi
jne 0x10000487d
mov r8d, dword [rsi + 0xc]
mov rdx, qword [rsi + 0x10]
mov ecx, dword [rsi + 8]
call qword [sym.imp.msvcrt.dll__read]
cmp eax, dword [rsi + 0xc]
je 0x100004822
mov dword [rsi + 0x28], 1
cmp r12d, edi
mov rcx, qword [rsi + 0x10]
cdqe
mov qword [rsi + 0x18], rcx
lea rcx, [rax + rcx - 1]
mov qword [rsi + 0x20], rcx
jg 0x1000047f6
mov ebx, edi
jmp 0x10000489d
mov rax, qword [rsi + 0x10]
mov dword [rsi + 0x28], 1
mov qword [rsi + 0x20], rdi
mov qword [rsi + 0x18], rax
lea rax, [rsp + 0x670]
mov byte [rbx], dil
cmp rbx, rax
ja 0x100004868
mov dword [rsi + 0x2c], 1
lea rax, [rsp + 0x670]
inc rbx
sub ebx, eax
jmp 0x10000489d
inc qword [rsi + 0x18]
jmp 0x10000488e
lea rax, [rsp + 0x670]
cmp rbx, rax
jbe 0x100004a7f
mov byte [rbx], dil
lea rax, [rsp + 0x670]
sub ebx, eax
inc ebx
cmp ebx, edi
je 0x1000047b9
inc r14d
lea rax, [rsp + 0x670]
mov qword [r13 + 0x218], rax
mov dword [r13 + 0x210], r14d
cmp dword [rbp + 0x50], 2
jl 0x1000048dc
lea r8, [rsp + 0x670]
lea rcx, [0x100001ab8]
mov edx, r14d
call qword [sym.imp.msvcrt.dll_printf]
lea rcx, [rsp + 0x271]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x270], dil
call sub.msvcrt.dll_memset
cmp dword [rbp + 0xc0], edi
je 0x10000493c
lea rax, [rsp + 0x270]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x670]
lea rcx, [rsp + 0x38]
xor r9d, r9d
mov dword [rsp + 0x30], 0x400
mov qword [rsp + 0x40], rax
call fcn.10000f928
jmp 0x10000495f
mov r9, qword [rbp + 0x10]
lea r8, [rsp + 0x670]
lea rcx, [rsp + 0x270]
mov edx, 0x400
mov qword [rsp + 0x20], r13
call fcn.100005b80
cmp eax, edi
je 0x100004a4f
lea rdx, [0x100001b48]
lea rcx, [rsp + 0x270]
mov dword [rsp + 0x50], edi
call qword [sym.imp.msvcrt.dll_strspn]
mov r11, rax
mov al, byte [rsp + rax + 0x270]
cmp al, 0x3b
je 0x100004a47
cmp al, dil
je 0x100004a47
cmp al, 0x2e
jne 0x1000049cc
mov al, byte [rsp + r11 + 0x271]
cmp al, 0x2e
je 0x1000049cc
cmp al, 0x5c
je 0x1000049cc
lea r8, [rsp + 0x270]
lea rcx, [rsp + 0x50]
mov r9, r13
mov rdx, rbp
call fcn.100004c70
jmp 0x100004a4f
cmp dword [rbp + 0xc0], edi
je 0x100004a1e
mov eax, dword [rbp + 0xc4]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x5c]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x270]
xor r9d, r9d
mov dword [rsp + 0x50], 8
mov dword [rsp + 0x30], 0x200
mov qword [rsp + 0x40], rax
call fcn.10000f928
jmp 0x100004a4f
mov r9, r13
lea r8, [rsp + 0x270]
mov rdx, rbp
lea rcx, [rsp + 0x50]
cmp dword [rbp + 0xbc], edi
je 0x100004a40
call fcn.100005628
jmp 0x100004a4f
call fcn.100005490
jmp 0x100004a4f
mov dword [rsp + 0x50], 1
lea r9, [rsp + 0x670]
lea rdx, [rsp + 0x50]
mov r8, rsi
mov rcx, rbp
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r14d
call r15
cmp eax, edi
je 0x100004a7b
cmp dword [rsi + 0x2c], edi
jmp 0x100004787
xor eax, eax
jmp 0x100004a90
mov dword [rsi + 0x2c], 1
jmp 0x1000047b9
mov eax, 1
mov rcx, qword [rsp + 0xa70]
xor rcx, rsp
call fcn.100018d50
add rsp, 0xa88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret