Function at 0x5e0d50
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x100
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbp, r8
mov rsi, rdx
mov r13, rcx
lea r8, [rax - 0x38]
mov rdx, rbp
call fcn.005e0d14
test al, al
je 0x5e0db6
lea rcx, [rsp + 0xe0]
mov rax, qword [rcx]
mov qword [rsi], rax
mov rax, qword [rcx + 8]
mov qword [rsi + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rsi + 0x10], rax
mov rax, rsi
jmp 0x5e106c
mov r12d, 0x20000
mov rcx, r12
call fcn.006a43c4
mov rbx, rax
mov qword [rsp + 0x40], rax
mov r9d, 1
mov r8d, 0x80000000
mov rdx, rbp
lea rcx, [rsp + 0x48]
call fcn.005944d4
nop
lea rdx, [rsp + 0x138]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
or edi, 0xffffffff
cmp eax, edi
jne 0x5e0e14
mov edx, edi
lea rcx, [rsp + 0x138]
call fcn.00594950
mov r11, rax
jmp 0x5e0e25
mov r11d, dword [rsp + 0x138]
shl r11, 0x20
mov eax, eax
or r11, rax
mov eax, 0x400
cmp rax, r11
jge 0x5e0e37
add rax, rax
cmp rax, r11
jl 0x5e0e2f
and qword [rsp + 0x70], 0
and qword [rsp + 0x78], 0
and qword [rsp + 0x80], 0
and qword [rsp + 0x88], 0
and qword [rsp + 0x90], 0
and qword [rsp + 0x98], 0
and qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0x3c]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jne 0x5e0e9d
mov edx, edi
lea rcx, [rsp + 0x3c]
call fcn.00594950
mov r11, rax
jmp 0x5e0eab
mov r11d, dword [rsp + 0x3c]
shl r11, 0x20
mov eax, eax
or r11, rax
test r11, r11
jle 0x5e0f04
mov qword [rsp + 0x30], r12
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.00594a94
mov qword [rsp + 0x30], rax
test rax, rax
je 0x5e0f18
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.005b1714
mov qword [rsp + 0x30], r12
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.00594a94
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x5e0ed1
jmp 0x5e0f18
xor r8d, r8d
lea rdx, [0x007986b0]
lea rcx, [rsp + 0x70]
call fcn.005b1714
lea rcx, [rsp + 0x70]
call fcn.005b192c
mov r8b, 1
mov rdx, rbp
mov rcx, qword [0x00862df0]
call fcn.005f7980
mov r12, rax
mov ecx, 0xb8
call fcn.006a494c
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x5e0fad
mov dword [rsp + 0x38], 2
mov rcx, rbp
call fcn.00594580
mov qword [rsp + 0xd8], rax
movabs rcx, 0xfe624e212ac18000
add rcx, rax
movabs rax, 0xd6bf94d5e57a42bd
mul rcx
shr rdx, 0x17
mov eax, edx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, rbp
mov r8, r12
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.00621a20
mov rdi, rax
jmp 0x5e0faf
xor edi, edi
mov qword [rsp + 0x60], rdi
test rdi, rdi
je 0x5e0fc3
lock add dword [rdi + 8], 1
mov rbx, qword [rsp + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.005e1338
lea rcx, [rsp + 0xa0]
mov rax, qword [rcx]
mov qword [rsi], rax
mov rax, qword [rcx + 8]
mov qword [rsi + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rsi + 0x10], rax
test rdi, rdi
je 0x5e101c
or eax, 0xffffffff
lock xadd dword [rdi + 8], eax
add eax, 0xffffffff
jne 0x5e1017
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rbx, qword [rsp + 0x40]
jmp 0x5e101c
mov rbx, qword [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.0047ff2c
nop
lea rax, [0x007955b8]
mov qword [rsp + 0x48], rax
lea rax, [0x007955c8]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
call fcn.0059492c
lea r11, [0x007955f8]
mov qword [rsp + 0x50], r11
lea rax, [0x007955e8]
mov qword [rsp + 0x48], rax
mov rcx, rbx
call fcn.006a5088
mov rax, rsi
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret