Function at 0x180017510
Capabilities:
Get file size

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x2b8], rbx
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x1800178f4
cmp word [rdx], 0
je 0x1800178f4
call fcn.18001d1c0
xor ebp, ebp
mov dword [rbx + 0x34], ebp
mov dword [rbx + 0x38], ebp
lea rcx, [rbx + 0x40]
xor edx, edx
mov r8d, 0x324
call fcn.18006cf60
mov dword [rbx + 0x364], ebp
lea rcx, str.http:__
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
lea rdx, str.http:__
mov rcx, rsi
call fcn.18006b3c8
test eax, eax
je 0x180017831
lea rcx, str.ftp:__
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
lea rdx, str.ftp:__
mov rcx, rsi
call fcn.18006b3c8
test eax, eax
je 0x180017831
mov word [rsp + 0x60], bp
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.18006cf60
lea r8, [rsp + 0x60]
mov rdx, rsi
mov rcx, rbx
call fcn.18001ae10
test eax, eax
js 0x1800178f9
cmp eax, 1
je 0x1800178f9
mov eax, dword [rbx + 0x38]
cmp eax, 0xa
jne 0x180017621
mov r8, rdi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180017920
jmp 0x1800178f9
cmp eax, 5
jne 0x180017673
mov dword [rbx + 0x34], ebp
mov dword [rbx + 0x28], 0x930
mov dword [rbx + 0x378], 0x930
cmp dword [rbx + 0x368], ebp
je 0x18001764f
mov rcx, rbx
call fcn.18001bb80
jmp 0x1800178f9
cmp dword [rbx + 0x364], ebp
jne 0x180017661
mov eax, 0x80004005
jmp 0x1800178f9
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.18001ba80
jmp 0x1800178f9
cmp eax, 6
jne 0x1800176b3
mov dword [rbx + 0x34], ebp
mov dword [rbx + 0x28], 0x930
mov dword [rbx + 0x378], 0x930
cmp dword [rbx + 0x368], ebp
je 0x1800176a1
mov rcx, rbx
call fcn.18001c180
jmp 0x1800178f9
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.18001bf80
jmp 0x1800178f9
cmp eax, 7
jne 0x1800176f3
mov dword [rbx + 0x34], ebp
mov dword [rbx + 0x28], 0x930
mov dword [rbx + 0x378], 0x930
cmp dword [rbx + 0x368], ebp
je 0x1800176e1
mov rcx, rbx
call fcn.18001c7c0
jmp 0x1800178f9
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.18001c600
jmp 0x1800178f9
cmp dword [rbx + 0x368], ebp
je 0x18001772f
cmp eax, 8
jne 0x180017725
mov dword [rbx + 0x34], 0x2c
mov dword [rbx + 0x28], 0x930
mov dword [rbx + 0x378], 0x930
mov rcx, rbx
call fcn.18001ce10
jmp 0x1800178f9
mov eax, 0xe0032004
jmp 0x1800178f9
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x18001776e
call fcn.180003180
jmp 0x1800178f9
mov eax, dword [rbx + 0x38]
cmp eax, 2
jne 0x18001778f
cmp dword [rbx + 0x3c], ebp
je 0x180017782
xor eax, eax
jmp 0x1800178f9
mov rcx, rbx
call fcn.1800192c0
jmp 0x1800178f9
cmp eax, 1
jne 0x1800177c6
mov rcx, rbx
call fcn.180019f70
test eax, eax
js 0x1800178f9
cmp eax, 1
je 0x1800178f9
cmp dword [rbx + 0x3c], ebp
je 0x1800177b9
xor eax, eax
jmp 0x1800178f9
mov rcx, rbx
call fcn.1800192c0
jmp 0x1800178f9
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1800177df
call fcn.180003180
jmp 0x1800178f9
cmp dword [rbx + 0x364], ebp
je 0x180017814
cmp dword [rbx + 0x38], 8
jne 0x180017807
mov rdx, qword [rsp + 0x40]
sub rdx, 0x2c
mov qword [rsp + 0x40], rdx
mov dword [rbx + 0x378], 0x930
jmp 0x18001780c
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.18001a930
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x370], rax
mov rdx, qword [rbx + 0x18]
mov rcx, rbx
call fcn.18001b650
jmp 0x1800178f9
lea rdx, [0x180106f48]
mov ecx, 0x190
call fcn.18006b154
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x180017874
lea rcx, [rax + 0x10]
call fcn.18000f840
nop
lea rcx, [rdi + 0xf0]
call fcn.18000d7c0
mov qword [rdi], rbp
mov dword [rdi + 8], ebp
mov qword [rdi + 0x188], rbp
jmp 0x180017877
mov rdi, rbp
mov qword [rbx + 0x20], rdi
test rdi, rdi
jne 0x180017887
mov eax, 0x8007000e
jmp 0x1800178f9
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.180013030
test eax, eax
js 0x1800178f9
cmp eax, 1
je 0x1800178f9
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + 0x188]
mov qword [rbx + 0x370], rcx
mov edx, 0x2e
mov rcx, rsi
call fcn.18006bcd0
test rax, rax
je 0x1800178e8
lea rdx, str..nrg
mov rcx, rax
call fcn.18006be10
test eax, eax
jne 0x1800178e8
mov rcx, rbx
call fcn.180019f70
test eax, eax
jns 0x1800178f9
cmp eax, 0xe003200b
jne 0x1800178f9
xor edx, edx
mov rcx, rbx
call fcn.18001b650
jmp 0x1800178f9
mov eax, 0x80070057
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18006a4f0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret