Function at 0x410150
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r8d, 1
mov edx, 0x10
xor esi, esi
mov rbx, rcx
mov r9, qword [rbx + 8]
lea rcx, [rcx + 0x18]
call sub.msvcrt.dll_fread
cmp rax, 1
je 0x410190
mov eax, esi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp byte [rbx + 0x1d], 2
mov rsi, qword [0x0048c400]
je 0x4102f0
mov rax, qword [fcn.004492d0]
mov rdx, qword [0x0048c450]
mov qword [rsi], rax
mov rax, qword [0x0048c430]
mov qword [rax], rdx
movzx eax, byte [rbx + 0x1c]
xor edx, edx
mov r8d, 1
lea rdi, [rsp + 0x20]
mov r9, qword [rbx + 8]
lea rbp, [rdi + 0x10]
cmp al, 2
setne dl
mov dword [0x00492034], edx
je 0x410310
mov edx, 0x24
mov rcx, rbp
call sub.msvcrt.dll_fread
cmp rax, 1
jne 0x4103f0
mov edx, 2
mov rcx, rbp
call qword [rsi]
lea rcx, [rdi + 0x12]
mov edx, 2
mov word [rbx + 0x48], ax
call qword [rsi]
lea rcx, [rdi + 0x14]
mov edx, 4
mov word [rbx + 0x4a], ax
call qword [rsi]
lea rcx, [rdi + 0x18]
mov edx, 4
mov dword [rbx + 0x40], eax
call qword [rsi]
lea rcx, [rdi + 0x1c]
mov edx, 4
mov qword [rbx + 0x28], rax
call qword [rsi]
lea rcx, [rdi + 0x20]
mov edx, 4
mov qword [rbx + 0x30], rax
call qword [rsi]
lea rcx, [rdi + 0x24]
mov edx, 4
mov qword [rbx + 0x38], rax
call qword [rsi]
lea rcx, [rdi + 0x28]
mov edx, 2
mov dword [rbx + 0x44], eax
call qword [rsi]
lea rcx, [rdi + 0x2a]
mov edx, 2
mov dword [rbx + 0x4c], eax
call qword [rsi]
lea rcx, [rdi + 0x2c]
mov edx, 2
mov dword [rbx + 0x50], eax
call qword [rsi]
lea rcx, [rdi + 0x2e]
mov edx, 2
mov dword [rbx + 0x54], eax
call qword [rsi]
lea rcx, [rdi + 0x30]
mov edx, 2
mov dword [rbx + 0x58], eax
call qword [rsi]
lea rcx, [rdi + 0x32]
mov edx, 2
mov dword [rbx + 0x5c], eax
call qword [rsi]
mov dword [rbx + 0x60], eax
cmp qword [rbx + 0x38], 0
mov esi, 1
je 0x41017b
mov eax, dword [0x00492034]
mov edx, 1
mov rcx, rbx
test eax, eax
jne 0x410400
call fcn.0040d4c0
jmp 0x41017b
mov rax, qword [fcn.00448d50]
mov rdx, qword [0x0048c440]
mov qword [rsi], rax
mov rax, qword [0x0048c430]
mov qword [rax], rdx
jmp 0x4101bc
mov edx, 0x30
mov rcx, rbp
call sub.msvcrt.dll_fread
cmp rax, 1
jne 0x4103f0
mov edx, 2
mov rcx, rbp
call qword [rsi]
lea rcx, [rdi + 0x12]
mov edx, 2
mov word [rbx + 0x48], ax
call qword [rsi]
lea rcx, [rdi + 0x14]
mov edx, 4
mov word [rbx + 0x4a], ax
call qword [rsi]
lea rcx, [rdi + 0x18]
mov edx, 8
mov dword [rbx + 0x40], eax
call qword [rsi]
lea rcx, [rdi + 0x20]
mov edx, 8
mov qword [rbx + 0x28], rax
call qword [rsi]
lea rcx, [rdi + 0x28]
mov edx, 8
mov qword [rbx + 0x30], rax
call qword [rsi]
lea rcx, [rdi + 0x30]
mov edx, 4
mov qword [rbx + 0x38], rax
call qword [rsi]
lea rcx, [rdi + 0x34]
mov edx, 2
mov dword [rbx + 0x44], eax
call qword [rsi]
lea rcx, [rdi + 0x36]
mov edx, 2
mov dword [rbx + 0x4c], eax
call qword [rsi]
lea rcx, [rdi + 0x38]
mov edx, 2
mov dword [rbx + 0x50], eax
call qword [rsi]
lea rcx, [rdi + 0x3a]
mov edx, 2
mov dword [rbx + 0x54], eax
call qword [rsi]
lea rcx, [rdi + 0x3c]
mov edx, 2
mov dword [rbx + 0x58], eax
call qword [rsi]
lea rcx, [rdi + 0x3e]
mov edx, 2
mov dword [rbx + 0x5c], eax
call qword [rsi]
mov dword [rbx + 0x60], eax
jmp 0x4102b7
xor esi, esi
jmp 0x41017b
call fcn.0040d260
jmp 0x41017b