Function at 0x1400c640c
Capabilities:
Get file size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c8]
sub rsp, 0x2c8
mov rax, qword [0x140172608]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rax, qword [rbp + 0x230]
mov r14, rdx
mov r12, qword [rbp + 0x240]
mov rbx, rcx
mov r13, qword [rbp + 0x248]
mov rdi, qword [rbp + 0x258]
mov qword [rsp + 0x78], rax
mov rax, qword [rbp + 0x238]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x78], r9
mov qword [rbp - 0x80], r8
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
mov r15b, 4
cmp rcx, rax
je 0x1400c64aa
test byte [rcx + 0x1c], r15b
je 0x1400c64aa
cmp byte [rcx + 0x19], r15b
jb 0x1400c64aa
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401532b8]
mov edx, 0x48
call fcn.140004b74
mov rcx, rbx
call fcn.1400c5328
xor eax, eax
lea rcx, [rbp - 0x50]
xor edx, edx
mov byte [rbx + 0x17c], al
mov r8d, 0x200
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
call sub.msvcrt.dll_memset
or rsi, 0xffffffffffffffff
xor eax, eax
inc rsi
cmp word [r14 + rsi*2], ax
jne 0x1400c64d9
inc rsi
xor ecx, ecx
lea rdx, [rsi + rsi]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1400c6505
mov eax, 8
jmp 0x1400c6d83
mov r8, r14
mov rdx, rsi
mov rcx, rax
call fcn.14003ac00
xor esi, esi
test eax, eax
jns 0x1400c6528
movzx eax, ax
mov rcx, rbx
mov dword [rdi], eax
call fcn.1400c5328
jmp 0x1400c64fb
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x60000080
mov edx, 0x80000000
mov rcx, r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400c65ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [0x1401720a0]
lea rdx, [0x1401720a0]
cmp rcx, rdx
je 0x1400c64fb
test byte [rcx + 0x1c], r15b
je 0x1400c64fb
cmp byte [rcx + 0x19], 2
jb 0x1400c64fb
mov edx, 0x49
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401532b8]
mov r9, r14
mov dword [rsp + 0x20], eax
call fcn.140005b60
jmp 0x1400c64fb
mov rcx, qword [0x1401720a0]
lea rdx, [0x1401720a0]
cmp rcx, rdx
je 0x1400c65e7
test byte [rcx + 0x1c], r15b
je 0x1400c65e7
cmp byte [rcx + 0x19], r15b
jb 0x1400c65e7
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401532b8]
mov edx, 0x4a
mov qword [rsp + 0x20], rax
mov r9, r14
call fcn.140010584
mov rcx, qword [rbx]
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400c6640
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rdi], eax
call fcn.1400c5328
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400c64fb
test byte [rcx + 0x1c], r15b
je 0x1400c64fb
cmp byte [rcx + 0x19], 2
jb 0x1400c64fb
mov eax, dword [rdi]
mov edx, 0x4b
jmp 0x1400c658f
mov r9, rdi
mov rcx, rbx
call fcn.1400cbbd4
xor r14d, r14d
mov esi, eax
test eax, eax
je 0x1400c669b
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400c6d62
test byte [rcx + 0x1c], r15b
je 0x1400c6d62
cmp byte [rcx + 0x19], 2
jb 0x1400c6d62
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x4c]
mov r9d, esi
lea r8, [0x1401532b8]
call fcn.140004b98
jmp 0x1400c6d62
mov rax, qword [rsp + 0x68]
mov esi, 1
mov edx, 0x10024
mov qword [rbx + 0x18], rax
xor ecx, ecx
mov byte [rbx + 0x49], sil
mov qword [rbx + 0x168], r14
mov qword [rbx + 0x38], r14
mov qword [rbx + 0x40], r14
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, 0x10000
xor ecx, ecx
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, 0x10000
xor ecx, ecx
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, 0x10200
mov dword [rbx + 0x68], r14d
xor ecx, ecx
mov qword [rbx + 0x60], rax
mov dword [rbx + 0xa8], r14d
mov byte [rbx + 0xc0], r14b
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, 0x20000
mov byte [rbx + 0xf8], r14b
xor ecx, ecx
mov qword [rbx + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx + 0x100], rax
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400c676f
test byte [rcx + 0x1c], r15b
je 0x1400c676f
cmp byte [rcx + 0x19], r15b
jb 0x1400c676f
mov rax, qword [rbx + 0x18]
lea edx, [rsi + 0x4c]
mov r9, qword [rbx + 8]
lea r8, [0x1401532b8]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140010584
cmp qword [rbx + 0x50], r14
je 0x1400c6d6e
cmp qword [rbx + 0x58], r14
je 0x1400c6d6e
cmp qword [rbx + 0x60], r14
je 0x1400c6d6e
mov rax, qword [rbx + 0xc8]
test rax, rax
je 0x1400c6d6e
mov rcx, qword [rbx + 0x100]
test rcx, rcx
je 0x1400c6d6e
add rax, 0xffff
mov rdx, 0xffffffffffff0000
and rax, rdx
xor r9d, r9d
mov qword [rbx + 0xd0], rax
xor r8d, r8d
lea rax, [rcx + 0xffff]
xor ecx, ecx
and rax, rdx
mov edx, esi
mov qword [rbx + 0x108], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov qword [rbx + 0xf0], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x128], rax
cmp qword [rbx + 0xf0], r14
je 0x1400c6d55
test rax, rax
je 0x1400c6d55
mov qword [rsp + 0x40], rdi
lea rax, [rbx + 0x140]
mov qword [rsp + 0x30], rax
lea r15, [rbx + 0x30]
mov qword [rbx + 0x130], r14
lea r9, [rsp + 0x50]
lea r14, [rbx + 0x28]
mov qword [rsp + 0x28], r15
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x60]
mov qword [rbx + 0x138], rsi
mov rcx, rbx
call fcn.1400cc3f8
xor ecx, ecx
mov esi, eax
test eax, eax
je 0x1400c68bf
mov rcx, rbx
call fcn.1400c5328
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400c6d6a
test byte [rcx + 0x1c], 4
je 0x1400c6d6a
cmp byte [rcx + 0x19], 2
jb 0x1400c6d6a
mov edx, 0x4e
mov eax, dword [rdi]
lea r8, [0x1401532b8]
mov rcx, qword [rcx + 0x10]
mov r9d, esi
mov dword [rsp + 0x20], eax
call fcn.14000ffdc
jmp 0x1400c6d6a
mov r8b, byte [rsp + 0x50]
xor eax, eax
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x78], rax
mov dword [rbx + 0x80], ecx
mov byte [rbx + 0x48], r8b
cmp byte [r15], cl
je 0x1400c698b
mov r9, rdi
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1400cd1c4
mov esi, eax
mov rcx, rbx
test eax, eax
je 0x1400c6933
call fcn.1400c5328
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400c6d6a
test byte [rcx + 0x1c], 4
je 0x1400c6d6a
cmp byte [rcx + 0x19], 2
jb 0x1400c6d6a
mov edx, 0x4f
jmp 0x1400c68a1
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x50]
call fcn.1400cd548
mov esi, eax
test eax, eax
je 0x1400c6984
mov rcx, rbx
call fcn.1400c5328
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400c6d6a
test byte [rcx + 0x1c], 4
je 0x1400c6d6a
cmp byte [rcx + 0x19], 2
jb 0x1400c6d6a
mov edx, 0x50
jmp 0x1400c68a1
mov rsi, qword [rsp + 0x58]
jmp 0x1400c698e
mov rsi, qword [r14]
mov r10, qword [0x1401720a0]
lea r11, [0x1401720a0]
mov r8b, 4
cmp r10, r11
je 0x1400c69db
test byte [r10 + 0x1c], r8b
je 0x1400c69db
cmp byte [r10 + 0x19], r8b
jb 0x1400c69db
mov rax, qword [r14]
movzx r9d, byte [r15]
mov rcx, qword [r10 + 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.1400c50c4
mov r10, qword [0x1401720a0]
lea r11, [0x1401720a0]
mov r8b, 4
movabs rax, 0x1fdffe00000
cmp rsi, rax
jg 0x1400c6d0a
cmp rsi, qword [r14]
jg 0x1400c6d0a
xor eax, eax
mov r9d, 0x600
mov dword [rbx + 0xb4], r9d
cmp byte [rbx + 0x48], al
je 0x1400c6a54
lea rax, [rsi + 0xffff]
cqo
movzx edx, dx
add rax, rdx
sar rax, 0x10
add eax, 0x107f
shr eax, 0xc
add eax, 3
shl eax, 9
mov dword [rbx + 0xb4], eax
mov rcx, qword [0x1401720a0]
cmp rcx, r11
je 0x1400c6a88
test byte [rcx + 0x1c], r8b
je 0x1400c6a88
cmp byte [rcx + 0x19], r8b
jb 0x1400c6a88
mov edx, 0x53
mov r9d, eax
jmp 0x1400c6a71
mov rcx, qword [0x1401720a0]
cmp rcx, r11
je 0x1400c6a88
test byte [rcx + 0x1c], r8b
je 0x1400c6a88
cmp byte [rcx + 0x19], r8b
jb 0x1400c6a88
mov edx, 0x54
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401532b8]
call fcn.140004b98
lea r11, [0x1401720a0]
mov rax, qword [r14]
mov r8d, 0x1fffff
mov r9d, dword [rbx + 0xb4]
add rax, r8
cqo
shr r9d, 9
and rdx, r8
add rax, rdx
sar rax, 0x15
lea ecx, [rax*4 + 0x1ff]
xor eax, eax
shr ecx, 9
cmp byte [r15], al
je 0x1400c6abf
inc r9d
add r9d, ecx
mov dword [rbx + 0xb8], r9d
mov rcx, qword [0x1401720a0]
cmp rcx, r11
je 0x1400c6b03
test byte [rcx + 0x1c], 4
je 0x1400c6b03
cmp byte [rcx + 0x19], 4
jb 0x1400c6b03
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401532b8]
mov edx, 0x55
call fcn.140004b98
lea r11, [0x1401720a0]
mov r8d, 0x1fffff
mov rax, qword [r14]
mov ecx, 0xffff
add rax, r8
mov qword [rbx + 0x20], rsi
cqo
and rdx, r8
add rax, rdx
lea r14d, [rcx + 1]
sar rax, 0x15
mov dword [rbx + 0xbc], eax
mov rax, rsi
cqo
and rdx, rcx
add rax, rdx
and rax, rcx
sub rax, rdx
test eax, eax
cmove eax, r14d
mov dword [rbx + 0xac], eax
mov rcx, qword [0x1401720a0]
cmp rcx, r11
je fcn.1400c6b82
test byte [rcx + 0x1c], 4
je fcn.1400c6b82
cmp byte [rcx + 0x19], 4
jb fcn.1400c6b82
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401532b8]
mov edx, 0x56
mov r9d, eax
call fcn.140004b98
lea r11, [0x1401720a0]
mov r8d, 0x1fffff
cmp r10, r11
je 0x1400c6d4e
test byte [r10 + 0x1c], r8b
je 0x1400c6d4e
cmp byte [r10 + 0x19], 2
jb 0x1400c6d4e
mov rcx, qword [r14]
lea r8, [0x1401532b8]
mov eax, dword [r14]
mov r9, rsi
sar rcx, 0x20
mov edx, 0x52
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov rcx, qword [r10 + 0x10]
sar r9, 0x20
mov dword [rsp + 0x20], esi
call fcn.140010e54
mov esi, 2
jmp 0x1400c6d62
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov esi, 3
mov rcx, rbx
call fcn.1400c5328
mov eax, esi
jmp 0x1400c6d83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rdi], eax
call fcn.1400c5328
mov eax, 3