Function at 0x180071730
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 [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rbx, r8
mov r12, rdx
mov rsi, rcx
test rdx, rdx
je 0x180071e0e
cmp word [rdx], 0
je 0x180071e0e
test rbx, rbx
jne 0x18007178b
mov eax, 0x80070057
jmp 0x180071e13
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, [0x1800ef658]
mov rcx, rbx
call qword [rax]
mov edi, eax
test eax, eax
js 0x180071df0
cmp eax, 1
je 0x180071df0
cmp qword [rsp + 0x40], r13
jne 0x1800717e6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, 0x80004005
jmp 0x180071e13
mov rcx, rsi
call fcn.180072670
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x180071806
call fcn.18007702c
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 0x180071915
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [rsi + 0x24], 0
jne 0x1800718e7
cmp eax, 5
je 0x180071880
cmp eax, 0x20
je 0x180071880
cmp eax, 0xa7
je 0x180071880
cmp eax, 0x21
je 0x180071880
cmp eax, 0x13
jne 0x1800718e7
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 0x1800718de
call fcn.180003220
mov edi, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800718ce
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 0x180071e13
mov dword [rsi + 0x24], 1
jmp 0x180071915
test eax, eax
jle 0x1800718f4
movzx edi, ax
or edi, 0x80070000
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180071905
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 0x180071e13
mov qword [rsp + 0x58], r13
lea rdx, [rsp + 0x58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x180071964
call fcn.180003220
mov edi, eax
cmp rbp, 0xffffffffffffffff
je 0x180071943
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180071954
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 0x180071e13
cmp rbp, 0xffffffffffffffff
je 0x180071dbd
lea r8, [rsp + 0x58]
mov rdx, rbp
mov rcx, rsi
call fcn.180071e40
mov edi, eax
test eax, eax
js 0x180071dc2
cmp eax, 1
je 0x180071dc2
mov rax, qword [rsp + 0x58]
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
je 0x1800719d9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800719c6
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 0x180071e13
cmp dword [rsi + 0x24], 0
jne 0x180071a4d
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.180002890
nop
lea rcx, [rsi + 0x2c8]
lea rdx, [rsp + 0x98]
call fcn.18001cf60
nop
cmp qword [rsp + 0xb8], 8
jb 0x180071a4d
mov rcx, qword [rsp + 0xa0]
call fcn.180076a50
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.180063f30
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.1800795c0
lea rdx, [rsp + 0xd0]
mov rcx, rsi
call fcn.180072780
mov edi, eax
test eax, eax
js 0x180071d9f
cmp eax, 1
je 0x180071d9f
cmp dword [rsp + 0xdc], 0x100
je 0x180071b0b
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180071af8
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 0x180071e13
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 0x180071b51
mov dword [rsi + 0x68], eax
jmp 0x180071be2
cmp eax, 3
jne 0x180071d7e
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.180071f80
mov edi, eax
test eax, eax
js 0x180071d5d
cmp eax, 1
je 0x180071d5d
mov ecx, 8
call fcn.180076d78
test rax, rax
je 0x180071bfb
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
jmp 0x180071bfe
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.180003960
mov edi, eax
test eax, eax
js 0x180071d0d
cmp eax, 1
je 0x180071d0d
xor r9d, r9d
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1800035f0
mov edi, eax
test eax, eax
js 0x180071cbd
cmp eax, 1
je 0x180071cbd
mov rcx, rsi
call fcn.180072580
mov edi, eax
test eax, eax
jne 0x180071c6d
mov dword [rsi + 0x28], 1
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180071c7c
call fcn.180076a50
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r13
mov rcx, qword [rsp + 0x60]
call fcn.180076a50
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180071cad
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 0x180071e13
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180071ccc
call fcn.180076a50
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r13
mov rcx, qword [rsp + 0x60]
call fcn.180076a50
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180071cfd
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 0x180071e13
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180071d1c
call fcn.180076a50
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r13
mov rcx, qword [rsp + 0x60]
call fcn.180076a50
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180071d4d
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 0x180071e13
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180071d6e
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 0x180071e13
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180071d8f
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 0x180071e13
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180071db0
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 0x180071e13
mov edi, 0x80070057
cmp rbp, 0xffffffffffffffff
je 0x180071dd2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180071de3
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 0x180071e13
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180071e01
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 0x180071e13
mov eax, 0x80070057
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x2e0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret