Function at 0x1800136e0
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x2e0
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rbx, r8
mov r12, rdx
mov rsi, rcx
test rdx, rdx
je 0x180013dbe
cmp word [rdx], 0
je 0x180013dbe
test rbx, rbx
jne 0x18001373b
mov eax, 0x80070057
jmp 0x180013dc3
mov qword [rsp + 0xc8], rbx
mov rax, qword [r8]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor r13d, r13d
mov qword [rsp + 0x40], r13
mov rax, qword [rbx]
lea r8, [rsp + 0x40]
lea rdx, [0x1800e1b88]
mov rcx, rbx
call qword [rax]
mov edi, eax
test eax, eax
js 0x180013da0
cmp eax, 1
je 0x180013da0
cmp qword [rsp + 0x40], r13
jne 0x180013796
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, 0x80004005
jmp 0x180013dc3
mov rcx, rsi
call fcn.180014620
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x1800137b6
call fcn.18006aaac
mov qword [rsi + 0x80], r13
mov edx, 0xc0000000
mov r14d, 0x80000000
cmp dword [rsi + 0x24], 0
cmovne edx, r14d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea r8d, [r9 + 1]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
mov qword [rsp + 0x90], rax
cmp rax, 0xffffffffffffffff
jne 0x1800138c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [rsi + 0x24], 0
jne 0x180013897
cmp eax, 5
je 0x180013830
cmp eax, 0x20
je 0x180013830
cmp eax, 0xa7
je 0x180013830
cmp eax, 0x21
je 0x180013830
cmp eax, 0x13
jne 0x180013897
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, r14d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
mov qword [rsp + 0x90], rax
cmp rax, 0xffffffffffffffff
jne 0x18001388e
call fcn.180003180
mov edi, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18001387e
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
nop
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + reloc.WS2_32.dll_recv]
mov eax, edi
jmp 0x180013dc3
mov dword [rsi + 0x24], 1
jmp 0x1800138c5
test eax, eax
jle 0x1800138a4
movzx edi, ax
or edi, 0x80070000
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800138b5
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
nop
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + reloc.WS2_32.dll_recv]
mov eax, edi
jmp 0x180013dc3
mov qword [rsp + 0x58], r13
lea rdx, [rsp + 0x58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x180013914
call fcn.180003180
mov edi, eax
cmp rbp, 0xffffffffffffffff
je 0x1800138f3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180013904
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, edi
jmp 0x180013dc3
cmp rbp, 0xffffffffffffffff
je 0x180013d6d
lea r8, [rsp + 0x58]
mov rdx, rbp
mov rcx, rsi
call fcn.180013df0
mov edi, eax
test eax, eax
js 0x180013d72
cmp eax, 1
je 0x180013d72
mov rax, qword [rsp + 0x58]
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
je 0x180013989
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180013976
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, 0xe0035003
jmp 0x180013dc3
cmp dword [rsi + 0x24], 0
jne 0x1800139fd
mov qword [rsp + 0xb8], 7
mov qword [rsp + 0xb0], r13
mov word [rsp + 0xa0], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x98]
call fcn.1800027f0
nop
lea rcx, [rsi + 0x2c8]
lea rdx, [rsp + 0x98]
call fcn.180016400
nop
cmp qword [rsp + 0xb8], 8
jb 0x1800139fd
mov rcx, qword [rsp + 0xa0]
call fcn.18006a4d4
mov qword [rsp + 0x90], 0xffffffffffffffff
mov qword [rsp + 0x48], rbp
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
lea rcx, [rsi + 0x90]
lea rdx, [rsp + 0x48]
call fcn.18001d8d0
mov rdx, r12
lea rcx, [rsi + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsi + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov word [rax], r13w
mov byte [rsp + 0xd0], 0
xor edx, edx
mov r8d, 0x1ff
lea rcx, [rsp + 0xd1]
call fcn.18006cf60
lea rdx, [rsp + 0xd0]
mov rcx, rsi
call fcn.180014730
mov edi, eax
test eax, eax
js 0x180013d4f
cmp eax, 1
je 0x180013d4f
cmp dword [rsp + 0xdc], 0x100
je 0x180013abb
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180013aa8
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, 0xe0035001
jmp 0x180013dc3
mov dword [rsp + 0x48], r13d
movzx eax, byte [rsp + 0x10f]
mov byte [rsp + 0x48], al
movzx eax, byte [rsp + 0x10e]
mov byte [rsp + 0x49], al
movzx eax, byte [rsp + 0x10d]
mov byte [rsp + 0x4a], al
movzx eax, byte [rsp + 0x10c]
mov byte [rsp + 0x4b], al
mov eax, dword [rsp + 0x48]
cmp eax, 2
jne 0x180013b01
mov dword [rsi + 0x68], eax
jmp 0x180013b92
cmp eax, 3
jne 0x180013d2e
mov dword [rsi + 0x68], eax
mov qword [rsp + 0x48], r13
movzx eax, byte [rsp + 0xe7]
mov byte [rsp + 0x48], al
movzx eax, byte [rsp + 0xe6]
mov byte [rsp + 0x49], al
movzx eax, byte [rsp + 0xe5]
mov byte [rsp + 0x4a], al
movzx eax, byte [rsp + 0xe4]
mov byte [rsp + 0x4b], al
movzx eax, byte [rsp + 0xe3]
mov byte [rsp + 0x4c], al
movzx eax, byte [rsp + 0xe2]
mov byte [rsp + 0x4d], al
movzx eax, byte [rsp + 0xe1]
mov byte [rsp + 0x4e], al
movzx eax, byte [rsp + 0xe0]
mov byte [rsp + 0x4f], al
mov rdx, qword [rsp + 0x48]
mov rcx, rsi
call fcn.180013f30
mov edi, eax
test eax, eax
js 0x180013d0d
cmp eax, 1
je 0x180013d0d
mov ecx, 8
call fcn.18006a7f8
test rax, rax
je 0x180013bab
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
jmp 0x180013bae
mov rax, r13
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r13
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1800038c0
mov edi, eax
test eax, eax
js 0x180013cbd
cmp eax, 1
je 0x180013cbd
xor r9d, r9d
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.180003550
mov edi, eax
test eax, eax
js 0x180013c6d
cmp eax, 1
je 0x180013c6d
mov rcx, rsi
call fcn.180014530
mov edi, eax
test eax, eax
jne 0x180013c1d
mov dword [rsi + 0x28], 1
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180013c2c
call fcn.18006a4d4
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r13
mov rcx, qword [rsp + 0x60]
call fcn.18006a4d4
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180013c5d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, edi
jmp 0x180013dc3
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180013c7c
call fcn.18006a4d4
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r13
mov rcx, qword [rsp + 0x60]
call fcn.18006a4d4
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180013cad
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, edi
jmp 0x180013dc3
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180013ccc
call fcn.18006a4d4
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r13
mov rcx, qword [rsp + 0x60]
call fcn.18006a4d4
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180013cfd
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, edi
jmp 0x180013dc3
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180013d1e
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, edi
jmp 0x180013dc3
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180013d3f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, 0xe0035002
jmp 0x180013dc3
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180013d60
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, edi
jmp 0x180013dc3
mov edi, 0x80070057
cmp rbp, 0xffffffffffffffff
je 0x180013d82
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180013d93
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, edi
jmp 0x180013dc3
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180013db1
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, edi
jmp 0x180013dc3
mov eax, 0x80070057
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.18006a4f0
add rsp, 0x2e0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret