Function at 0x1000aed0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b2692
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push ebx
push esi
mov eax, dword [0x100e18d0]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
lea eax, [esp + 0x4c]
push eax
call fcn.1000b590
xor ebx, ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0x14], vtable.CCallback.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0xe0], 1
mov dword [esp + 0x18], edi
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x60], ebx
call fcn.1005e14e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x1000af5c
push 0x80004005
call fcn.10002b30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0xe0], 2
cmp dword [edi + 0x1c], 8
jb 0x1000af7f
mov edx, dword [edi + 8]
jmp 0x1000af82
lea edx, [edi + 8]
cmp edx, ebx
jne 0x1000af8a
xor eax, eax
jmp 0x1000af9f
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1000af90
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.10002a80
lea esi, [esp + 0xc]
call fcn.1000ad80
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [edi + 0x68]
cmp eax, ebx
jle 0x1000afea
cdq
push 0
mov dword [esp + 0x20], 1
mov esi, eax
mov ebx, edx
call fcn.100803ce
add esp, 4
add esi, eax
adc ebx, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
xor ebx, ebx
cmp dword [edi + 0x38], 8
jb 0x1000aff5
mov eax, dword [edi + 0x24]
jmp 0x1000aff8
lea eax, [edi + 0x24]
lea edx, [esp + 0x14]
push edx
push ebx
push eax
mov eax, dword [esp + 0x18]
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileW
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x5c], eax
test ebx, ebx
jl 0x1000b07b
lea ecx, [esp + 0x54]
push str.Download_completed_successfully_
push ecx
call fcn.1000e140
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.1000fc30
mov ecx, esi
call fcn.10010790
lea ecx, [esp + 0x30]
lea eax, [esp + 0x4c]
call fcn.1000b6c0
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x40]
mov byte [esp + 0xe8], 3
call fcn.1000ca10
cmp dword [esp + 0x48], 8
jb 0x1000b1b7
mov edx, dword [esp + 0x34]
push edx
call fcn.1005c1a6
add esp, 4
jmp 0x1000b1b7
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0x400
push ebx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea edx, [esp + 0x54]
test eax, eax
je 0x1000b131
mov ecx, dword [esp + 0x10]
push ecx
push ecx
push str._n_n_s
push ecx
push ebx
push ecx
push str.Download_failed.__Error__0x_08lX
push edx
call fcn.1000e140
add esp, 0xc
push eax
call fcn.1000b3e0
add esp, 4
push eax
call fcn.1000e140
add esp, 0xc
push eax
call fcn.1000e140
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.1000fc30
mov ecx, esi
call fcn.10010790
lea ecx, [esp + 0x30]
lea eax, [esp + 0x4c]
call fcn.1000b6c0
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x40]
mov byte [esp + 0xe8], 4
call fcn.1000ca10
cmp dword [esp + 0x48], 8
jb 0x1000b121
mov eax, dword [esp + 0x34]
push eax
call fcn.1005c1a6
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1000b1b7
push str._n_nNo_message_available.
push ecx
push ebx
push ecx
push str.Download_failed.__Error__0x_08lX
push edx
call fcn.1000e140
add esp, 0xc
push eax
call fcn.1000b3e0
add esp, 4
push eax
call fcn.1000e140
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.1000fc30
mov ecx, esi
call fcn.10010790
lea ecx, [esp + 0x30]
lea eax, [esp + 0x4c]
call fcn.1000b6c0
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x40]
mov byte [esp + 0xe8], 5
call fcn.1000ca10
cmp dword [esp + 0x48], 8
jb 0x1000b1a0
mov eax, dword [esp + 0x34]
push eax
call fcn.1005c1a6
add esp, 4
xor ecx, ecx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], cx
cmp dword [edi + 0x64], 0
jne 0x1000b1d2
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x1000b1d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x3c], 0
mov byte [esp + 0xe0], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [edi + 0x60], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000b201
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x14], vtable.CCallback.0
mov dword [esp + 0xe0], 0xffffffff
call fcn.1000b630
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.1009cdda
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret