Function at 0x10031500
Capabilities:
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065f78
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x100850a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x318], 0
cmp byte [0x1008fc59], 0
mov dword [ebp - 4], 1
je 0x10031c79
cmp byte [0x1008fc5b], 0
je 0x10031c79
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x11]
call fcn.10001fd0
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x11]
call fcn.10001fd0
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.10024730
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.10027480
lea eax, [ebp - 0x318]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10021e40
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x10031619
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.10014b60
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.10027480
lea eax, [ebp - 0x318]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x7c]
call fcn.10021e40
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x10031678
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.10014b60
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0
lea ecx, [ebp - 0xb4]
movq qword [ebp - 0xa4], xmm0
movups xmmword [ebp - 0xb4], xmm0
call fcn.10024730
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x344]
push 0x1006a424
push eax
call fcn.1001fb50
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.1001a760
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.100376a0
lea ecx, [ebp - 0x30]
call fcn.10028200
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1003170f
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.10014b60
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.10028200
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0x98]
movq qword [ebp - 0x88], xmm0
movups xmmword [ebp - 0x98], xmm0
call fcn.10024730
push dword [ebp - 0x31c]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
push 0x2e
push str.downloads
call fcn.10027480
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x98]
call fcn.100391d0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x1003179c
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.10014b60
push 0xb0
lea eax, [ebp - 0x1ac]
push 0
push eax
call fcn.100415b0
add esp, 0xc
mov dword [ebp - 0x1ac], 0x1006af24
mov dword [ebp - 0x19c], 0x1006af2c
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.10016340
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.1000cab0
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.10023e60
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov byte [ebp - 4], 0x14
cmp eax, 0x10
jb 0x1003190b
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10014b60
push str._sgep_v1_clientAgent_cloudApp_downloadList
lea ecx, [ebp - 0x1c4]
call fcn.10024a00
push str.Authorization:_Basic
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x16
call fcn.10024a00
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
push eax
call fcn.100363c0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x18
call fcn.10002450
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x17
cmp eax, 0x10
jb 0x1003196c
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10014b60
push 2
push 0x1006b008
lea ecx, [ebp - 0xcc]
call fcn.10002600
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1ac]
call fcn.1003b310
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 0x1008fbf8
push 0x1008fbe0
call fcn.10038060
add esp, 0x18
mov byte [ebp - 4], 0x17
test eax, eax
mov eax, dword [ebp - 0x18]
sete byte [ebp - 0x311]
cmp eax, 0x10
jb 0x100319d8
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10014b60
cmp byte [ebp - 0x311], 0
je 0x10031ae4
cmp dword [ebp - 0x4c], 0x10
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xb0
lea eax, [ebp - 0x274]
push 0
push eax
call fcn.100415b0
add esp, 0xc
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x274]
push 1
push 3
push eax
call fcn.10024b00
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.10024730
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.100222b0
add esp, 8
lea ecx, [ebp - 0x344]
push dword [ebp - 0x31c]
push 0x2e
push str.ActionCode
call fcn.10027480
lea eax, [ebp - 0x344]
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x30]
call fcn.1001e790
lea ecx, [ebp - 0x344]
mov esi, eax
call fcn.100292c0
cmp esi, 2
jne 0x10031ab0
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.10028200
lea ecx, [ebp - 0x20c]
call fcn.10028410
lea eax, [ebp - 0x20c]
mov byte [ebp - 4], 0x1d
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1003db7d
add esp, 4
mov byte [ebp - 4], 0x17
push 0x9c
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.100415b0
add esp, 0xc
lea ecx, [ebp - 0x310]
push str.cloud_app_downloadList__s:_url_is__s__path_is__s
call fcn.1000c650
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
mov ecx, str.failed
mov byte [ebp - 4], 0x1e
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.100092e0
mov dword [ebp - 0x318], eax
lea eax, [ebp - 0x318]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x310]
mov dword [ebp - 0x18], 0x100092f0
push eax
call fcn.10009a00
lea ecx, [ebp - 0x324]
mov dword [ebp - 0x1c], fcn.100092e0
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x18], 0x100092f0
call fcn.10009a00
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x1c], fcn.100092e0
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x18], 0x100092f0
call fcn.10009a00
add esp, 0x18
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x310]
push eax
call fcn.10019bf0
cmp dword [eax + 0x14], 0x10
jb 0x10031bcd
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x2c]
call fcn.100292c0
lea ecx, [ebp - 0x310]
call fcn.1000e090
lea ecx, [ebp - 0xcc]
call fcn.100292c0
lea ecx, [ebp - 0x1c4]
call fcn.100292c0
lea ecx, [ebp - 0x144]
call fcn.10028410
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 0x1f
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1003db7d
add esp, 4
lea ecx, [ebp - 0x98]
call fcn.10028200
lea ecx, [ebp - 0xb4]
call fcn.10028200
lea ecx, [ebp - 0x7c]
call fcn.10028200
lea ecx, [ebp - 0xe4]
call fcn.100292c0
lea ecx, [ebp - 0xfc]
call fcn.100292c0
lea ecx, [ebp - 0x60]
call fcn.100292c0
lea ecx, [ebp + 8]
call fcn.100292c0
lea ecx, [ebp + 0x20]
call fcn.100292c0
mov al, byte [ebp - 0x311]
jmp 0x10031cb7
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x10031c8e
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.10014b60
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x10031cb5
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.10014b60
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003beb5
mov esp, ebp
pop ebp
ret