Function at 0x14009add8
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov r14, r8
mov rsi, rdx
mov r13, rcx
and qword [r8], 0
mov rax, qword [0x140174018]
mov qword [rbp + 0x50], rax
mov rbx, qword [rdx]
cmp dword [rbx - 0xc], 0
jl 0x14009ae24
mov qword [rbp + 0x58], rbx
lock inc dword [rbx - 0xc]
jmp 0x14009ae48
mov qword [rbp + 0x58], rax
test rbx, rbx
jne 0x14009ae31
xor eax, eax
jmp 0x14009ae3a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp + 0x58]
call fcn.1400670f0
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x58]
mov rcx, r13
call fcn.14009b538
test eax, eax
jne 0x14009aeb2
mov rcx, qword [rbp + 0x50]
add rcx, 0xfffffffffffffff4
or rdi, 0xffffffffffffffff
cmp rcx, qword [0x140174010]
je 0x14009ae83
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009ae83
call fcn.1400b0230
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14009aeab
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009aeab
mov rcx, qword [rsi]
sub rcx, 0xc
call fcn.1400b0230
xor eax, eax
jmp 0x14009b0b0
mov rbx, qword [rbp + 0x50]
movsxd rax, dword [rbx - 8]
add qword [r14], rax
mov r8, rsi
lea rdx, [rbp - 0x28]
lea rcx, [r13 + 0x18]
call fcn.14009d0d8
mov rax, qword [r13 + 0x18]
mov qword [rbp - 0x10], rax
mov rcx, qword [rbp - 0x28]
cmp rcx, rax
jne 0x14009aee4
lea rcx, [rbx - 0xc]
jmp 0x14009ae64
add rcx, 0x28
xor edx, edx
call fcn.140069064
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.140067e3c
nop
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rbx, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
or rdi, 0xffffffffffffffff
cmp rax, rdi
jne 0x14009af60
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140174010]
je 0x14009af53
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009af53
call fcn.1400b0230
nop
mov rcx, qword [rbp + 0x50]
add rcx, 0xfffffffffffffff4
jmp 0x14009ae68
lea rdx, [rbp - 0x20]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, r15
test eax, eax
jne 0x14009af85
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff4
jmp 0x14009af38
mov rax, qword [rbp - 0x20]
add qword [r14], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140174018]
mov qword [rbp - 0x30], rax
mov rbx, qword [rsi]
cmp dword [rbx - 0xc], 0
jl 0x14009afb0
mov qword [rbp - 0x40], rbx
lock inc dword [rbx - 0xc]
jmp 0x14009afd4
mov qword [rbp - 0x40], rax
test rbx, rbx
jne 0x14009afbd
xor eax, eax
jmp 0x14009afc6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.1400670f0
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov rcx, r13
call fcn.14009b4e0
test eax, eax
jne 0x14009b013
mov rcx, qword [rbp - 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14009af7b
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009af7b
call fcn.1400b0230
jmp 0x14009af7b
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax - 8]
add qword [r14], rcx
lea rcx, [rax - 0xc]
cmp rcx, qword [0x140174010]
je 0x14009b03d
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009b03d
call fcn.1400b0230
nop
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14009b060
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009b060
call fcn.1400b0230
nop
mov rcx, qword [rbp + 0x50]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14009b083
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009b083
call fcn.1400b0230
nop
mov rax, qword [rsi]
add rax, 0xfffffffffffffff4
cmp rax, qword [0x140174010]
je 0x14009b0ab
mov ecx, edi
lock xadd dword [rax], ecx
add ecx, edi
test ecx, ecx
jg 0x14009b0ab
mov rcx, qword [rsi]
sub rcx, 0xc
call fcn.1400b0230
mov eax, 1
add rsp, 0x80
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret