Function at 0x10040ed0
Capabilities:
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100917b2
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 0x10041725
cmp byte [0x100c6e1a], 0
je 0x10041725
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 0x10040f5b
push str.get_ie_cur_url_from_ext
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp + 8]
push eax
call fcn.1003a660
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.10048470
test al, al
je 0x10041023
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x11]
call fcn.10002810
push eax
lea ecx, [ebp + 0x20]
call fcn.10038a70
lea ecx, [ebp - 0x2c]
call fcn.100025b0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x11]
call fcn.10002a00
push eax
lea ecx, [ebp + 8]
call fcn.10038a70
lea ecx, [ebp - 0x2c]
call fcn.100025b0
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 0x10041009
mov eax, dword [ecx]
jmp 0x1004100b
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x20]
push 0
push eax
call fcn.10002210
call fcn.10046e50
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.10002a80
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x11]
call fcn.10002a80
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.10012270
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.100156f0
lea eax, [ebp - 0x318]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x7c]
call fcn.100324e0
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x100410f9
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.10002440
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.100156f0
lea eax, [ebp - 0x318]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x7c]
call fcn.100324e0
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x10041158
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.10002440
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0
lea ecx, [ebp - 0xb4]
movq qword [ebp - 0xa4], xmm0
movups xmmword [ebp - 0xb4], xmm0
call fcn.10012270
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x344]
push 0x1009737c
push eax
call fcn.1002f8e0
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.1002bd70
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.10026240
lea ecx, [ebp - 0x30]
call fcn.10016ac0
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x100411ef
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.10002440
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.10016ac0
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0x98]
movq qword [ebp - 0x88], xmm0
movups xmmword [ebp - 0x98], xmm0
call fcn.10012270
push dword [ebp - 0x31c]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
push 0x2e
push str.downloads
call fcn.100156f0
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x98]
call fcn.1004ac80
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x1004127c
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.10002440
push 0xb0
lea eax, [ebp - 0x1ac]
push 0
push eax
call fcn.10064410
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.10025cd0
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.10012330
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.100355a0
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov byte [ebp - 4], 0x14
cmp eax, 0x10
jb 0x100413eb
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10002440
push str._sgep_v1_clientAgent_cloudApp_downloadList
lea ecx, [ebp - 0x1c4]
call fcn.10001e70
push str.Authorization:_Basic
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x16
call fcn.10001e70
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
push eax
call fcn.10046300
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x18
call fcn.10002f40
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x17
cmp eax, 0x10
jb 0x1004144c
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10002440
push 0x10097978
lea ecx, [ebp - 0xcc]
call fcn.10019490
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1ac]
call fcn.1002adb0
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.10049b10
add esp, 0x18
mov byte [ebp - 4], 0x17
test eax, eax
lea ecx, [ebp - 0x2c]
sete byte [ebp - 0x311]
call fcn.100025b0
cmp byte [ebp - 0x311], 0
je 0x10041594
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.10064410
add esp, 0xc
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x310]
push 1
push 3
push eax
call fcn.100125d0
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.10012270
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.1000ff00
add esp, 8
lea ecx, [ebp - 0x344]
push dword [ebp - 0x31c]
push 0x2e
push str.ActionCode
call fcn.100156f0
lea eax, [ebp - 0x344]
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x30]
call fcn.1002e5d0
lea ecx, [ebp - 0x344]
mov esi, eax
call fcn.100025b0
cmp esi, 2
jne 0x1004157d
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.10016ac0
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 0x17
call fcn.100196b0
push 0x9c
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.10064410
add esp, 0xc
lea ecx, [ebp - 0x260]
push str.cloud_app_downloadList__s:_url_is__s__path_is__s
call fcn.10011bb0
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.1002a7d0
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], 0x1000b140
push eax
call fcn.1000c060
lea ecx, [ebp - 0x324]
mov dword [ebp - 0x1c], fcn.1002a7d0
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x18], 0x1000b140
call fcn.1000c060
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x1c], fcn.1002a7d0
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x18], 0x1000b140
call fcn.1000c060
add esp, 0x18
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x260]
push eax
call fcn.1002a860
cmp dword [eax + 0x14], 0x10
jb 0x1004167d
mov eax, dword [eax]
push eax
call edi
lea ecx, [ebp - 0x2c]
call fcn.100025b0
lea ecx, [ebp - 0x260]
call fcn.10016790
lea ecx, [ebp - 0xcc]
call fcn.100025b0
lea ecx, [ebp - 0x1c4]
call fcn.100025b0
lea ecx, [ebp - 0x144]
call fcn.10016c40
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.10050a84
add esp, 4
lea ecx, [ebp - 0x98]
call fcn.10016ac0
lea ecx, [ebp - 0xb4]
call fcn.10016ac0
lea ecx, [ebp - 0x7c]
call fcn.10016ac0
lea ecx, [ebp - 0xe4]
call fcn.100025b0
lea ecx, [ebp - 0xfc]
call fcn.100025b0
lea ecx, [ebp - 0x60]
call fcn.100025b0
lea ecx, [ebp + 8]
call fcn.100025b0
lea ecx, [ebp + 0x20]
call fcn.100025b0
mov al, byte [ebp - 0x311]
jmp 0x10041763
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x1004173a
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.10002440
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x10041761
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.10002440
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.1004ebbb
mov esp, ebp
pop ebp
ret