Function at 0x1400391e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
mov r14, rcx
cmp qword [rdx + 0x10], 0
jne 0x140039225
xor al, al
jmp 0x14003965c
lea rcx, [rsp + 0x38]
call fcn.14006d290
nop
mov dword [rsp + 0x20], 3
mov r9d, 1
mov r8d, 0x80000000
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14006fad0
test al, al
jne 0x14003929d
mov ecx, 0x800
call fcn.1400bbc88
mov rsi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rsi, rsi
je 0x140039570
test rax, rax
je 0x140039568
xor edx, edx
mov r8d, 0x800
mov rcx, rsi
call fcn.1400c2130
lea rax, [0x140129620]
jmp 0x140039513
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x14003964d
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14003964d
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1400392d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14003964d
mov esi, dword [rsp + 0x48]
shl rsi, 0x20
mov rax, rbp
add rsi, rbp
je 0x14003964d
mov rcx, qword [r14 + 0x90]
mov rax, qword [rcx]
call qword [rax]
mov edx, eax
mov rcx, r14
call fcn.14003aec0
test al, al
jne 0x1400393f3
mov ecx, 0x800
call fcn.1400bbc88
mov rbp, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rbp, rbp
je 0x140039570
test rax, rax
je 0x1400393eb
xor edx, edx
mov r8d, 0x800
mov rcx, rbp
call fcn.1400c2130
lea rax, [0x140129d68]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCUserFixTopZiLibLoader::LoadUserFixTopData
lea r8, str._s__:__s
mov edx, 0x400
mov rcx, rbp
call fcn.140007140
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call fcn.1400c2130
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.14003b000
nop
cmp qword [rax + 0x18], 8
jb 0x140039395
mov rax, qword [rax]
cmp qword [rdi + 0x18], 8
jb 0x14003939f
mov rdi, qword [rdi]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rbp
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
nop
cmp qword [rsp + 0x68], 8
jb 0x1400393ce
mov rcx, qword [rsp + 0x50]
call fcn.1400bd20c
mov qword [rsp + 0x68], 7
xor eax, eax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x50], ax
mov rcx, rbx
call fcn.140015100
mov rcx, rbp
jmp 0x14003956b
lea ecx, [rsi + 1]
mov eax, 2
mul rcx
mov r12, 0xffffffffffffffff
cmovo rax, r12
mov rcx, rax
call fcn.1400bbc88
mov rbp, rax
test rax, rax
jne 0x140039469
mov rcx, r14
call fcn.14003af70
mov ecx, 0x800
call fcn.1400bbc88
mov rsi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rsi, rsi
je 0x140039570
test rax, rax
je 0x140039568
xor edx, edx
mov r8d, 0x800
mov rcx, rsi
call fcn.1400c2130
lea rax, [0x140129d48]
jmp 0x140039513
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.1400c2130
xor eax, eax
mov dword [rsp + 0x30], eax
cmp qword [rbx], r12
jne 0x140039487
xor r15b, r15b
jmp 0x1400394aa
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, rbp
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne r15b
mov rcx, qword [rbx]
cmp rcx, r12
je 0x1400394bf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400394bf
mov qword [rbx], r12
mov rcx, r14
test r15b, r15b
jne 0x140039586
call fcn.14003af70
mov rcx, rbp
call fcn.1400bd2dc
mov ecx, 0x800
call fcn.1400bbc88
mov rsi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rsi, rsi
je 0x140039570
test rax, rax
je 0x140039568
xor edx, edx
mov r8d, 0x800
mov rcx, rsi
call fcn.1400c2130
lea rax, [0x140129748]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCUserFixTopZiLibLoader::LoadUserFixTopData
lea r8, str._s__:__s
mov edx, 0x400
mov rcx, rsi
call fcn.140007140
mov r8d, 0x800
xor edx, edx
mov rcx, rbx
call fcn.1400c2130
cmp qword [rdi + 0x18], 8
jb 0x14003954d
mov rdi, qword [rdi]
mov r9, rdi
mov r8, rsi
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
mov rcx, rbx
call fcn.140015100
mov rcx, rsi
call fcn.1400bd2dc
test rbx, rbx
je 0x14003964d
mov rcx, rbx
call fcn.1400bd2dc
jmp 0x14003964d
mov eax, dword [rsp + 0x30]
cmp rax, rsi
je 0x140039635
call fcn.14003af70
mov rcx, rbp
call fcn.1400bd2dc
mov ecx, 0x800
call fcn.1400bbc88
mov rsi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rsi, rsi
je 0x140039570
test rax, rax
je 0x140039568
xor edx, edx
mov r8d, 0x800
mov rcx, rsi
call fcn.1400c2130
lea rax, [0x140129de0]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCUserFixTopZiLibLoader::LoadUserFixTopData
lea r8, str._s__:__s
mov edx, 0x400
mov rcx, rsi
call fcn.140007140
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call fcn.1400c2130
cmp qword [rdi + 0x18], 8
jb 0x140039615
mov rdi, qword [rdi]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8, rsi
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
jmp 0x140039560
mov r8d, esi
mov rdx, rbp
call fcn.140039690
movzx ebx, al
mov rcx, rbp
call fcn.1400bd2dc
jmp 0x14003964f
xor bl, bl
lea rcx, [rsp + 0x38]
call fcn.14006fa80
movzx eax, bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400bcae0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret