Function at 0x10040d70
Capabilities:
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10091702
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x318], 0
cmp byte [0x100c6e18], 0
mov dword [ebp - 4], 1
je 0x100415c5
cmp byte [0x100c6e1a], 0
je 0x100415c5
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
cmp dword [ebp + 0x18], 0
mov byte [ebp - 4], 2
jne 0x10040dfb
push str.get_ie_cur_url_from_ext
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp + 8]
push eax
call fcn.1003a5b0
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.cloud_app_downloadList:_pre_path_is
call edi
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call edi
push str.cloud_app_downloadList:_pre_url_is
call edi
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call edi
call fcn.10048390
test al, al
je 0x10040ec3
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x11]
call fcn.10002870
push eax
lea ecx, [ebp + 0x20]
call fcn.10038810
lea ecx, [ebp - 0x2c]
call fcn.10002610
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x11]
call fcn.10002a60
push eax
lea ecx, [ebp + 8]
call fcn.10038810
lea ecx, [ebp - 0x2c]
call fcn.10002610
lea eax, [ebp + 8]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x10040ea9
mov eax, dword [ecx]
jmp 0x10040eab
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x20]
push 0
push eax
call fcn.10002270
call fcn.10046d70
add esp, 0x1c
push str.cloud_app_downloadList:_afeter_path_is
call edi
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call edi
push str.cloud_app_downloadList:_afeter_url_is
call edi
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x11]
call fcn.10002ae0
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x11]
call fcn.10002ae0
xorps xmm0, xmm0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x7c]
movq qword [ebp - 0x6c], xmm0
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x64], 0
call fcn.10011f90
push dword [ebp - 0x31c]
cmp dword [ebp - 0xe8], 0x10
lea eax, [ebp - 0xfc]
push 0x2e
cmovae eax, dword [ebp - 0xfc]
lea ecx, [ebp - 0x34]
push str.downloadUrl
mov byte [ebp - 4], 5
mov dword [ebp - 0x318], eax
call fcn.100154a0
lea eax, [ebp - 0x318]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10032330
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x10040f99
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.100024a0
push dword [ebp - 0x31c]
cmp dword [ebp - 0xd0], 0x10
lea eax, [ebp - 0xe4]
push 0x2e
cmovae eax, dword [ebp - 0xe4]
lea ecx, [ebp - 0x34]
push str.lcoalPath
mov dword [ebp - 0x318], eax
call fcn.100154a0
lea eax, [ebp - 0x318]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10032330
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x10040ff8
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.100024a0
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0
lea ecx, [ebp - 0xb4]
movq qword [ebp - 0xa4], xmm0
movups xmmword [ebp - 0xb4], xmm0
call fcn.10011f90
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x344]
push 0x1009737c
push eax
call fcn.1002f730
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.1002b920
mov ecx, dword [ebp - 0x9c]
mov edx, 4
add ecx, 9
mov byte [ebp - 4], 0xa
lea eax, [ecx - 5]
cmove eax, edx
lea edx, [ebp - 0x48]
push edx
push dword [eax]
lea eax, [ebp - 0x320]
push eax
call fcn.10025df0
lea ecx, [ebp - 0x30]
call fcn.10016870
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1004108f
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.100024a0
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
mov byte [ebp - 4], 8
call fcn.10016870
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0x98]
movq qword [ebp - 0x88], xmm0
movups xmmword [ebp - 0x98], xmm0
call fcn.10011f90
push dword [ebp - 0x31c]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
push 0x2e
push str.downloads
call fcn.100154a0
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x98]
call fcn.1004aba0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x1004111c
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.100024a0
push 0xb0
lea eax, [ebp - 0x1ac]
push 0
push eax
call fcn.100643b0
add esp, 0xc
mov dword [ebp - 0x1ac], 0x10097790
mov dword [ebp - 0x19c], 0x10097798
push 0
lea eax, [ebp - 0x194]
mov byte [ebp - 4], 0xd
xorps xmm0, xmm0
mov dword [ebp - 0x318], 1
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x148], 0x50
movlpd qword [ebp - 0x1a4], xmm0
call fcn.10025880
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x19c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1a0], eax
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x1b0], eax
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 4], 0x12
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1b0], eax
lea eax, [ebp - 0x194]
mov ecx, eax
mov dword [ebp - 0x31c], eax
call fcn.10012050
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x19c]
push eax
call fcn.100353f0
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov byte [ebp - 4], 0x14
cmp eax, 0x10
jb 0x1004128b
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.100024a0
push str._sgep_v1_clientAgent_cloudApp_downloadList
lea ecx, [ebp - 0x1c4]
call fcn.10001e60
push str.Authorization:_Basic
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x16
call fcn.10001e60
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
push eax
call fcn.10046220
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x18
call fcn.10002fa0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x17
cmp eax, 0x10
jb 0x100412ec
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.100024a0
push 0x10097978
lea ecx, [ebp - 0xcc]
call fcn.10019070
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1ac]
call fcn.1002a950
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x19
push ecx
lea ecx, [ebp - 0xcc]
push ecx
push eax
lea eax, [ebp - 0x1c4]
push eax
push 0x100c6d74
push 0x100c6d5c
call fcn.10049a30
add esp, 0x18
mov byte [ebp - 4], 0x17
test eax, eax
lea ecx, [ebp - 0x2c]
sete byte [ebp - 0x311]
call fcn.10002610
cmp byte [ebp - 0x311], 0
je 0x10041434
cmp dword [ebp - 0x4c], 0x10
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push eax
call edi
push 0xb0
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.100643b0
add esp, 0xc
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x310]
push 1
push 3
push eax
call fcn.100122f0
xorps xmm0, xmm0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x18], 0
call fcn.10011f90
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.1000fc20
add esp, 8
lea ecx, [ebp - 0x344]
push dword [ebp - 0x31c]
push 0x2e
push str.ActionCode
call fcn.100154a0
lea eax, [ebp - 0x344]
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x30]
call fcn.1002e420
lea ecx, [ebp - 0x344]
mov esi, eax
call fcn.10002610
cmp esi, 2
jne 0x1004141d
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.delete_downloadFile
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x30]
call fcn.10016870
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 0x17
call fcn.10019290
push 0x9c
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.100643b0
add esp, 0xc
lea ecx, [ebp - 0x260]
push str.cloud_app_downloadList__s:_url_is__s__path_is__s
call fcn.100118d0
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
mov ecx, str.failed
mov byte [ebp - 4], 0x1d
cmovae eax, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x31c], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp byte [ebp - 0x311], 0
mov dword [ebp - 0x324], eax
mov eax, str.success
cmove eax, ecx
mov dword [ebp - 0x1c], fcn.10020d00
mov dword [ebp - 0x318], eax
lea eax, [ebp - 0x318]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x18], 0x1000ae60
push eax
call fcn.1000bd80
lea ecx, [ebp - 0x324]
mov dword [ebp - 0x1c], fcn.10020d00
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x18], 0x1000ae60
call fcn.1000bd80
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x1c], fcn.10020d00
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x18], 0x1000ae60
call fcn.1000bd80
add esp, 0x18
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x260]
push eax
call fcn.1002a400
cmp dword [eax + 0x14], 0x10
jb 0x1004151d
mov eax, dword [eax]
push eax
call edi
lea ecx, [ebp - 0x2c]
call fcn.10002610
lea ecx, [ebp - 0x260]
call fcn.10016540
lea ecx, [ebp - 0xcc]
call fcn.10002610
lea ecx, [ebp - 0x1c4]
call fcn.10002610
lea ecx, [ebp - 0x144]
call fcn.100169b0
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 0x1e
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10050a10
add esp, 4
lea ecx, [ebp - 0x98]
call fcn.10016870
lea ecx, [ebp - 0xb4]
call fcn.10016870
lea ecx, [ebp - 0x7c]
call fcn.10016870
lea ecx, [ebp - 0xe4]
call fcn.10002610
lea ecx, [ebp - 0xfc]
call fcn.10002610
lea ecx, [ebp - 0x60]
call fcn.10002610
lea ecx, [ebp + 8]
call fcn.10002610
lea ecx, [ebp + 0x20]
call fcn.10002610
mov al, byte [ebp - 0x311]
jmp 0x10041603
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x100415da
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.100024a0
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x10041601
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.100024a0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret