Function at 0x1400eaed8
Capabilities:
Get file size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b8]
sub rsp, 0x2b8
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rax, qword [rbp + 0x220]
mov r12, qword [rbp + 0x230]
mov r13, qword [rbp + 0x238]
mov rdi, qword [rbp + 0x240]
mov qword [rsp + 0x58], rax
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x78], r8
mov r14, rdx
mov rbx, rcx
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
mov r15b, 4
cmp rcx, rax
je 0x1400eaf79
test byte [rcx + 0x1c], r15b
je 0x1400eaf79
cmp byte [rcx + 0x19], r15b
jb 0x1400eaf79
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d538]
mov edx, 0x48
call fcn.14001dd24
mov rcx, rbx
call fcn.1400e9df8
xor eax, eax
lea rcx, [rbp - 0x60]
xor edx, edx
mov r8d, 0x200
mov byte [rbx + 0x17c], al
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
call sub.msvcrt.dll_memset
or rsi, 0xffffffffffffffff
xor eax, eax
inc rsi
cmp word [r14 + rsi*2], ax
jne 0x1400eafa8
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 0x1400eafd4
mov eax, 8
jmp 0x1400eb847
mov r8, r14
mov rdx, rsi
mov rcx, rax
call fcn.140052508
xor esi, esi
test eax, eax
jns 0x1400eaff7
movzx eax, ax
mov rcx, rbx
mov dword [rdi], eax
call fcn.1400e9df8
jmp 0x1400eafca
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r14
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_TraceEvent
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400eb07a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [0x14017d3a8]
lea rdx, [0x14017d3a8]
cmp rcx, rdx
je 0x1400eafca
test byte [rcx + 0x1c], r15b
je 0x1400eafca
cmp byte [rcx + 0x19], 2
jb 0x1400eafca
mov edx, 0x49
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d538]
mov r9, r14
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
jmp 0x1400eafca
mov rcx, qword [0x14017d3a8]
lea rdx, [0x14017d3a8]
cmp rcx, rdx
je 0x1400eb0b6
test byte [rcx + 0x1c], r15b
je 0x1400eb0b6
cmp byte [rcx + 0x19], r15b
jb 0x1400eb0b6
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d538]
mov edx, 0x4a
mov r9, r14
mov qword [rsp + 0x20], rax
call fcn.140028b0c
mov rcx, qword [rbx]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400eb10e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rdi], eax
call fcn.1400e9df8
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400eafca
test byte [rcx + 0x1c], r15b
je 0x1400eafca
cmp byte [rcx + 0x19], 2
jb 0x1400eafca
mov eax, dword [rdi]
mov edx, 0x4b
jmp 0x1400eb05e
mov rdx, rdi
mov rcx, rbx
call fcn.1400f05b8
xor r14d, r14d
mov esi, eax
test eax, eax
je 0x1400eb169
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400eb826
test byte [rcx + 0x1c], r15b
je 0x1400eb826
cmp byte [rcx + 0x19], 2
jb 0x1400eb826
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x4c]
lea r8, [0x14000d538]
mov r9d, esi
call fcn.14001de24
jmp 0x1400eb826
mov rax, qword [rbp - 0x70]
mov esi, 1
mov edx, 0x10024
xor ecx, ecx
mov qword [rbx + 0x168], r14
mov qword [rbx + 0x38], r14
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x40], r14
mov byte [rbx + 0x49], sil
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
xor ecx, ecx
mov dword [rbx + 0x68], r14d
mov dword [rbx + 0xa8], r14d
mov byte [rbx + 0xc0], r14b
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, 0x20000
xor ecx, ecx
mov byte [rbx + 0xf8], r14b
mov qword [rbx + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx + 0x100], rax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400eb23c
test byte [rcx + 0x1c], r15b
je 0x1400eb23c
cmp byte [rcx + 0x19], r15b
jb 0x1400eb23c
mov rax, qword [rbx + 0x18]
mov r9, qword [rbx + 8]
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x4c]
lea r8, [0x14000d538]
mov qword [rsp + 0x20], rax
call fcn.140028b0c
cmp qword [rbx + 0x50], r14
je 0x1400eb832
cmp qword [rbx + 0x58], r14
je 0x1400eb832
cmp qword [rbx + 0x60], r14
je 0x1400eb832
mov rax, qword [rbx + 0xc8]
test rax, rax
je 0x1400eb832
mov rcx, qword [rbx + 0x100]
test rcx, rcx
je 0x1400eb832
add rax, 0xffff
mov rdx, 0xffffffffffff0000
xor r9d, r9d
and rax, rdx
xor r8d, r8d
mov qword [rbx + 0xd0], rax
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
xor ecx, ecx
mov qword [rbx + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x128], rax
cmp qword [rbx + 0xf0], r14
je 0x1400eb819
test rax, rax
je 0x1400eb819
mov qword [rsp + 0x38], rdi
lea rax, [rbx + 0x140]
mov qword [rbx + 0x130], r14
mov qword [rsp + 0x30], rax
lea r15, [rbx + 0x30]
lea r14, [rbx + 0x28]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov qword [rsp + 0x28], r15
mov qword [rbx + 0x138], rsi
mov qword [rsp + 0x20], r14
call fcn.1400f0e24
xor ecx, ecx
mov esi, eax
test eax, eax
je 0x1400eb38c
mov rcx, rbx
call fcn.1400e9df8
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400eb82e
test byte [rcx + 0x1c], 4
je 0x1400eb82e
cmp byte [rcx + 0x19], 2
jb 0x1400eb82e
mov edx, EventWrite
mov eax, dword [rdi]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d538]
mov r9d, esi
mov dword [rsp + 0x20], eax
call fcn.1400285b4
jmp 0x1400eb82e
mov r8b, byte [rsp + 0x40]
xor eax, eax
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x78], rax
mov byte [rbx + 0x48], r8b
mov dword [rbx + 0x80], ecx
cmp byte [r15], cl
je 0x1400eb458
lea rdx, [rbp - 0x60]
mov r9, rdi
mov rcx, rbx
call fcn.1400f1b3c
mov rcx, rbx
mov esi, eax
test eax, eax
je 0x1400eb400
call fcn.1400e9df8
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400eb82e
test byte [rcx + 0x1c], 4
je 0x1400eb82e
cmp byte [rcx + 0x19], 2
jb 0x1400eb82e
mov edx, EventWrite
jmp 0x1400eb36e
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x60]
call fcn.1400f1e7c
mov esi, eax
test eax, eax
je 0x1400eb451
mov rcx, rbx
call fcn.1400e9df8
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400eb82e
test byte [rcx + 0x1c], 4
je 0x1400eb82e
cmp byte [rcx + 0x19], 2
jb 0x1400eb82e
mov edx, EventWrite
jmp 0x1400eb36e
mov rsi, qword [rsp + 0x48]
jmp 0x1400eb45b
mov rsi, qword [r14]
mov r10, qword [0x14017d3a8]
lea r11, [0x14017d3a8]
mov r8b, 4
cmp r10, r11
je 0x1400eb4a1
test byte [r10 + 0x1c], r8b
je 0x1400eb4a1
cmp byte [r10 + 0x19], r8b
jb 0x1400eb4a1
movzx edx, byte [r15]
mov r9, qword [r14]
mov rcx, qword [r10 + 0x10]
mov r8, rsi
call fcn.1400e9b9c
mov r10, qword [0x14017d3a8]
mov r8b, 4
lea r11, [0x14017d3a8]
movabs rax, 0x1fdffe00000
cmp rsi, rax
jg 0x1400eb7ce
cmp rsi, qword [r14]
jg 0x1400eb7ce
xor eax, eax
mov r9d, 0x600
mov dword [rbx + 0xb4], r9d
cmp byte [rbx + 0x48], al
je 0x1400eb51a
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 [0x14017d3a8]
cmp rcx, r11
je 0x1400eb54e
test byte [rcx + 0x1c], r8b
je 0x1400eb54e
cmp byte [rcx + 0x19], r8b
jb 0x1400eb54e
mov edx, 0x53
mov r9d, eax
jmp 0x1400eb537
mov rcx, qword [0x14017d3a8]
cmp rcx, r11
je 0x1400eb54e
test byte [rcx + 0x1c], r8b
je 0x1400eb54e
cmp byte [rcx + 0x19], r8b
jb 0x1400eb54e
mov edx, 0x54
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d538]
call fcn.14001de24
lea r11, [0x14017d3a8]
mov rax, qword [r14]
mov r9d, dword [rbx + 0xb4]
mov r8d, 0x1fffff
add rax, r8
shr r9d, 9
cqo
and rdx, r8
add rax, rdx
sar rax, 0x15
lea ecx, reloc.ADVAPI32.dll_TraceEvent
xor eax, eax
shr ecx, 9
cmp byte [r15], al
je 0x1400eb585
inc r9d
add r9d, ecx
mov dword [rbx + 0xb8], r9d
mov rcx, qword [0x14017d3a8]
cmp rcx, r11
je 0x1400eb5c9
test byte [rcx + 0x1c], 4
je 0x1400eb5c9
cmp byte [rcx + 0x19], 4
jb 0x1400eb5c9
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d538]
mov edx, 0x55
call fcn.14001de24
lea r11, [0x14017d3a8]
mov r8d, 0x1fffff
mov rax, qword [r14]
mov ecx, 0xffff
mov qword [rbx + 0x20], rsi
add rax, r8
lea r14d, [rcx + 1]
cqo
and rdx, r8
add rax, rdx
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 [0x14017d3a8]
cmp rcx, r11
je 0x1400eb648
test byte [rcx + 0x1c], 4
je 0x1400eb648
cmp byte [rcx + 0x19], 4
jb 0x1400eb648
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d538]
mov edx, 0x56
mov r9d, eax
call fcn.14001de24
lea r11, [0x14017d3a8]
mov r8d, 0x1fffff
mov al, byte [r15]
neg al
mov rax, qword [rbx + 0x20]
sbb rcx, rcx
add rax, 0x1fffff
and rcx, r14
add rax, rcx
cqo
and rdx, r8
lea r9, [rdx + rax]
sar r9, 0x15
dec r9d
mov dword [rbx + 0xb0], r9d
mov rcx, qword [0x14017d3a8]
mov r15b, 4
cmp rcx, r11
je 0x1400eb6a7
test byte [rcx + 0x1c], r15b
je 0x1400eb6a7
cmp byte [rcx + 0x19], r15b
jb 0x1400eb6a7
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d538]
mov edx, 0x57
call fcn.14001de24
mov rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea r9, [rbp - 0x80]
mov r8, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400f1850
mov rcx, qword [rsp + 0x50]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r14d, r14d
je 0x1400eb734
mov rcx, rbx
call fcn.1400e9df8
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400eb72c
test byte [rcx + 0x1c], r15b
je 0x1400eb72c
cmp byte [rcx + 0x19], 2
jb 0x1400eb72c
mov eax, dword [rdi]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d538]
mov edx, 0x58
mov r9d, r14d
mov dword [rsp + 0x20], eax
call fcn.1400285b4
mov eax, r14d
jmp 0x1400eb847
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x48]
mov qword [rbx + 0x88], rax
mov dword [rbx + 0x90], ecx
test r12, r12
je 0x1400eb75e
test r13, r13
je 0x1400eb75e
mov qword [r12], rax
mov dword [r13], ecx
jmp 0x1400eb799
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400eb792
test byte [rcx + 0x1c], r15b
je 0x1400eb792
cmp byte [rcx + 0x19], r15b
jb 0x1400eb792
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000d538]
mov edx, 0x59
call fcn.14001dd24
mov byte [rbx + 0x94], 1
mov rax, qword [rbx + 0x20]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x78]
movups xmm0, xmmword [rbp - 0x80]
mov qword [rcx], rax
mov rax, qword [rbx]
mov qword [rdx], rax
mov al, byte [rbx + 0x48]
mov rdx, qword [rsp + 0x60]
mov byte [rdx], al
mov rax, qword [rsp + 0x70]
mov qword [rcx], rsi
movdqu xmmword [rax], xmm0
xor eax, eax
jmp 0x1400eb847
cmp r10, r11
je 0x1400eb812
test byte [r10 + 0x1c], r8b
je 0x1400eb812
cmp byte [r10 + 0x19], 2
jb 0x1400eb812
mov rcx, qword [r14]
mov eax, dword [r14]
mov r9, rsi
sar rcx, 0x20
mov dword [rsp + 0x30], eax
lea r8, [0x14000d538]
mov dword [rsp + 0x28], ecx
mov rcx, qword [r10 + 0x10]
sar r9, 0x20
mov edx, reloc.ADVAPI32.dll_EventWrite
mov dword [rsp + 0x20], esi
call fcn.1400296b0
mov esi, 2
jmp 0x1400eb826
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 3
mov dword [rdi], eax
mov rcx, rbx
call fcn.1400e9df8
mov eax, esi
jmp 0x1400eb847
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rdi], eax
call fcn.1400e9df8
mov eax, 3
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140168920
add rsp, 0x2b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret