Function at 0x180047eb0
Capabilities:
Delete file
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x5b0], rbx
mov rax, qword [0x1800f30e0]
xor rax, rsp
mov qword [rbp + 0x460], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rdx
cmp byte [0x1800ffb8c], 0
je 0x180048874
cmp byte [0x1800ffb8e], 0
je 0x180048874
mov qword [rbp + 0x98], SafeArrayGetLBound
xor r15d, r15d
mov qword [rbp + 0x90], r15
mov byte [rbp + 0x80], r15b
cmp qword [rcx + 0x10], r15
jne 0x180047f48
lea rcx, str.get_ie_cur_url_from_ext
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rsi
call fcn.180040530
lea rcx, str.cloud_app_downloadList:_pre_path_is
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp qword [rdi + 0x18], 0x10
jb 0x180047f61
mov rcx, qword [rdi]
jmp 0x180047f64
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.cloud_app_downloadList:_pre_url_is
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp qword [rsi + 0x18], 0x10
jb 0x180047f83
mov rcx, qword [rsi]
jmp 0x180047f86
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.1800512c0
test al, al
je 0x18004800c
mov r8, rdi
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x10]
call fcn.180002ae0
mov rdx, rax
mov rcx, rdi
call fcn.1800195f0
lea rcx, [rbp - 8]
call fcn.180002870
mov r8, rsi
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x10]
call fcn.180002d00
mov rdx, rax
mov rcx, rsi
call fcn.1800195f0
lea rcx, [rbp - 8]
call fcn.180002870
mov qword [rbp + 0x10], SafeArrayGetLBound
mov qword [rbp + 8], r15
mov byte [rbp - 8], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 8]
call fcn.1800024a0
mov rdx, rsi
lea rcx, [rbp - 8]
call fcn.18004f530
lea rcx, str.cloud_app_downloadList:_afeter_path_is
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp qword [rdi + 0x18], 0x10
jb 0x180048025
mov rcx, qword [rdi]
jmp 0x180048028
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.cloud_app_downloadList:_afeter_url_is
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp qword [rsi + 0x18], 0x10
jb 0x180048047
mov rcx, qword [rsi]
jmp 0x18004804a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r8, rsi
lea rdx, [rbp + 0x128]
lea rcx, [rbp - 0x10]
call fcn.180002db0
nop
mov r8, rdi
lea rdx, [rbp + 0x108]
lea rcx, [rbp - 0x10]
call fcn.180002db0
nop
xor eax, eax
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x70], SafeArrayGetLBound
mov qword [rbp + 0x68], r15
mov byte [rbp + 0x58], al
lea ecx, [rax + 0x20]
call fcn.180059380
mov qword [rbp - 8], rax
test rax, rax
je 0x1800480ba
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180016160
jmp 0x1800480bd
mov rax, r15
mov qword [rbp + 0x78], rax
lea rax, [rbp + 0x128]
cmp qword [rbp + 0x140], 0x10
cmovae rax, qword [rbp + 0x128]
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x40], SafeArrayGetLBound
mov qword [rbp + 0x38], r15
mov byte [rbp + 0x28], 0
mov r8d, 0xb
lea rdx, str.downloadUrl
lea rcx, [rbp + 0x28]
call fcn.1800025d0
mov byte [rbp + 0x48], 0x2e
lea rax, [rbp + 0x28]
cmp qword [rbp + 0x40], 0x10
cmovae rax, qword [rbp + 0x28]
mov qword [rbp + 0x50], rax
mov cl, 1
call fcn.18005b16c
mov rbx, rax
mov qword [rbp], rax
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + select]
test rax, rax
je 0x18004814e
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea r9, [rbp - 8]
lea r8, [rsp + 0x38]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x58]
call fcn.180037570
nop
lea rcx, [rbp + 0x28]
call fcn.180002870
lea rax, [rbp + 0x108]
cmp qword [rbp + 0x120], 0x10
cmovae rax, qword [rbp + 0x108]
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x40], SafeArrayGetLBound
mov qword [rbp + 0x38], r15
mov byte [rbp + 0x28], 0
mov r8d, 9
lea rdx, str.lcoalPath
lea rcx, [rbp + 0x28]
call fcn.1800025d0
mov byte [rbp + 0x48], 0x2e
lea rax, [rbp + 0x28]
cmp qword [rbp + 0x40], 0x10
cmovae rax, qword [rbp + 0x28]
mov qword [rbp + 0x50], rax
mov cl, 1
call fcn.18005b16c
mov rbx, rax
mov qword [rbp], rax
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + select]
test rax, rax
je 0x1800481fb
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea r9, [rbp - 8]
lea r8, [rsp + 0x38]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x58]
call fcn.180037570
nop
lea rcx, [rbp + 0x28]
call fcn.180002870
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x40], SafeArrayGetLBound
mov qword [rbp + 0x38], r15
mov byte [rbp + 0x28], al
lea ecx, [rax + 0x20]
call fcn.180059380
mov qword [rbp - 8], rax
test rax, rax
je 0x180048260
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180016160
mov rbx, rax
jmp 0x180048263
mov rbx, r15
mov qword [rbp + 0x48], rbx
lea r8, [rbp + 0x58]
lea rdx, [0x1800b2ba0]
lea rcx, [rsp + 0x58]
call fcn.1800342a0
mov r14, rax
mov rdx, qword [rax]
mov qword [rbp - 0x58], SafeArrayGetLBound
mov qword [rbp - 0x60], r15
mov byte [rbp - 0x70], 0
cmp byte [rdx], 0
jne 0x18004829c
mov r8, r15
jmp 0x1800482aa
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1800482a0
lea rcx, [rbp - 0x70]
call fcn.1800025d0
nop
lea rdx, [r14 + 8]
lea rcx, [rbp - 0x50]
call fcn.180012ab0
nop
lea rcx, [rbx + 0x11]
lea r8, [rcx - 9]
mov eax, 8
test rcx, rcx
cmove r8, rax
lea r9, [rbp - 0x70]
mov r8, qword [r8]
lea rdx, [rbp - 8]
call fcn.180029a70
nop
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x18004830f
lea rcx, [rbx + 0x11]
call fcn.180026020
mov rcx, qword [rbx + 8]
call fcn.1800591c4
mov edx, 0x20
mov rcx, rbx
call fcn.180059820
lea rcx, [rbp - 0x50]
call fcn.180002870
lea rcx, [rbp - 0x70]
call fcn.180002870
nop
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x180048353
lea rcx, [rbx + 0x11]
call fcn.180026020
mov edx, 1
lea r8d, [rdx + 0x6f]
mov rcx, qword [rbx + 8]
call fcn.18001f8d0
mov edx, 0x20
mov rcx, rbx
call fcn.180059820
lea rcx, [rsp + 0x60]
call fcn.180002870
xor eax, eax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], rax
lea rcx, [rbp + 0xc0]
call fcn.180012b40
nop
mov qword [rbp + 0x10], SafeArrayGetLBound
mov qword [rbp + 8], r15
mov byte [rbp - 8], 0
mov r8d, 9
lea rdx, str.downloads
lea rcx, [rbp - 8]
call fcn.1800025d0
mov byte [rbp + 0x18], 0x2e
lea rax, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rax, qword [rbp - 8]
mov qword [rbp + 0x20], rax
lea r8, [rbp + 0x28]
lea rdx, [rbp - 8]
lea rcx, [rbp + 0xc0]
call fcn.180054490
nop
lea rcx, [rbp - 8]
call fcn.180002870
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x150]
call fcn.180078610
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rbp + 0x150]
call fcn.18003c040
nop
xor r8d, r8d
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x160]
call fcn.18003abd0
mov qword [rbp + 0x100], SafeArrayGetLBound
mov qword [rbp + 0xf8], r15
mov byte [rbp + 0xe8], 0
mov r8d, 0x2a
lea rdx, str._sgep_v1_clientAgent_cloudApp_downloadList
lea rcx, [rbp + 0xe8]
call fcn.1800025d0
nop
mov qword [rbp + 0xb8], SafeArrayGetLBound
mov qword [rbp + 0xb0], r15
mov byte [rbp + 0xa0], 0
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.Authorization:_Basic
lea rcx, [rbp + 0xa0]
call fcn.1800025d0
nop
lea rcx, [rbp - 8]
call fcn.18004e5d0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.1800031f0
nop
lea rcx, [rbp - 8]
call fcn.180002870
mov r8d, 2
lea rdx, [0x1800b3470]
lea rcx, [rbp + 0xa0]
call fcn.180003320
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x150]
call fcn.18002ee80
nop
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0xa0]
mov qword [rsp + 0x20], rcx
mov r9, rax
lea r8, [rbp + 0xe8]
lea rdx, [0x1800ffbb0]
lea rcx, [0x1800ffb90]
call fcn.180052da0
test eax, eax
sete r14b
lea rcx, [rbp - 8]
call fcn.180002870
lea r15, vtable.std::ios_base.0
test r14b, r14b
je 0x180048677
lea rcx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rcx, qword [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x250]
call fcn.180078610
mov r9d, 1
lea r8d, [r9 + 2]
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x250]
call fcn.180012de0
nop
xor eax, eax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
lea rcx, [rbp - 8]
call fcn.180012b40
nop
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x250]
call fcn.180010590
movzx r9d, byte [rsp + 0x30]
mov r8b, 0x2e
lea rdx, str.ActionCode
lea rcx, [rsp + 0x58]
call fcn.18003cc20
nop
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 8]
call fcn.180028db0
mov rcx, rax
call fcn.180032c50
mov ebx, eax
lea rcx, [rsp + 0x58]
call fcn.180002870
cmp ebx, 2
jne 0x18004861b
cmp qword [rdi + 0x18], 0x10
jb 0x180048604
mov rcx, qword [rdi]
jmp 0x180048607
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, str.delete_downloadFile
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rbx, qword [rbp + 0x18]
test rbx, rbx
je 0x18004864c
lea rcx, [rbx + 0x11]
call fcn.180026020
mov edx, 1
lea r8d, [rdx + 0x6f]
mov rcx, qword [rbx + 8]
call fcn.18001f8d0
mov edx, 0x20
mov rcx, rbx
call fcn.180059820
lea rcx, [rbp - 8]
call fcn.180002870
nop
lea rcx, [rbp + 0x2e8]
call fcn.180017ed0
nop
mov qword [rbp + 0x2e8], r15
lea rcx, [rbp + 0x2e8]
call fcn.18005b5e0
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x350]
call fcn.180078610
lea rdx, str.cloud_app_downloadList__s:_url_is__s__path_is__s
lea rcx, [rbp + 0x350]
call fcn.180012550
nop
cmp qword [rdi + 0x18], 0x10
jb 0x1800486ab
mov rax, qword [rdi]
jmp 0x1800486ae
mov rax, rdi
mov qword [rbp - 8], rax
cmp qword [rsi + 0x18], 0x10
jb 0x1800486be
mov rax, qword [rsi]
jmp 0x1800486c1
mov rax, rsi
mov qword [rsp + 0x48], rax
lea rcx, str.success
lea rax, str.failed
test r14b, r14b
cmovne rax, rcx
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x350]
call fcn.180032bb0
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.180032bb0
lea rdx, [rbp - 8]
mov rcx, rax
call fcn.180032bb0
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x350]
call fcn.18002e760
cmp qword [rax + 0x18], 0x10
jb 0x180048724
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rbp - 8]
call fcn.180002870
nop
lea rcx, [rbp + 0x350]
call fcn.180017930
nop
lea rcx, [rbp + 0xa0]
call fcn.180002870
nop
lea rcx, [rbp + 0xe8]
call fcn.180002870
nop
lea rcx, [rbp + 0x1e8]
call fcn.180017ed0
nop
mov qword [rbp + 0x1e8], r15
lea rcx, [rbp + 0x1e8]
call fcn.18005b5e0
nop
mov rbx, qword [rbp + 0xe0]
test rbx, rbx
je 0x1800487b3
lea rcx, [rbx + 0x11]
call fcn.180026020
mov edx, 1
lea r8d, [rdx + 0x6f]
mov rcx, qword [rbx + 8]
call fcn.18001f8d0
mov edx, 0x20
mov rcx, rbx
call fcn.180059820
lea rcx, [rbp + 0xc0]
call fcn.180002870
nop
mov rbx, qword [rbp + 0x48]
test rbx, rbx
je 0x1800487f1
lea rcx, [rbx + 0x11]
call fcn.180026020
mov edx, 1
lea r8d, [rdx + 0x6f]
mov rcx, qword [rbx + 8]
call fcn.18001f8d0
mov edx, 0x20
mov rcx, rbx
call fcn.180059820
lea rcx, [rbp + 0x28]
call fcn.180002870
nop
mov rbx, qword [rbp + 0x78]
test rbx, rbx
je 0x18004882c
lea rcx, [rbx + 0x11]
call fcn.180026020
mov edx, 1
lea r8d, [rdx + 0x6f]
mov rcx, qword [rbx + 8]
call fcn.18001f8d0
mov edx, 0x20
mov rcx, rbx
call fcn.180059820
lea rcx, [rbp + 0x58]
call fcn.180002870
nop
lea rcx, [rbp + 0x108]
call fcn.180002870
nop
lea rcx, [rbp + 0x128]
call fcn.180002870
nop
lea rcx, [rbp + 0x80]
call fcn.180002870
nop
mov rcx, rsi
call fcn.180002870
nop
mov rcx, rdi
call fcn.180002870
movzx eax, r14b
jmp 0x180048884
call fcn.180002870
nop
mov rcx, rdi
call fcn.180002870
xor al, al
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.180059260
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x570
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret