Function at 0x1c7a5b0
Capabilities:
Check for time delay via gettickcount
Check http status code
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x1060
call fcn.01cb35d0
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [esp + 0x1058], eax
mov eax, dword [ecx + 0x26d8]
mov ebx, dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x26cc]
mov dword [esi + 0x26d0], eax
mov dword [ebx + 0x2c], 0
mov eax, dword [ebx + 0x20]
cmp dword [eax + 4], 1
jne 0x1c7a63e
cmp dword [ebx], 0
je 0x1c7a860
lea eax, [ebx + 0x806c]
push 0x1ce9edc
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1c7a825
mov byte [esi + 0x26f0], 0
mov byte [ebx + 0x30], 0
mov dword [esi + 0x26d4], 0x8000000
jmp 0x1c7a825
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1c7a685
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
lea edi, [esp + 0x10]
push ecx
push edx
push edi
mov edi, dword [ebp + 8]
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1c7a685
mov eax, dword [esp + 0x10]
jmp 0x1c7a687
xor eax, eax
mov dword [esi + 0x26c8], eax
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x1c7a6a0
mov dword [ecx + 0x2450], eax
mov eax, dword [esi + 0x26c8]
cmp eax, 0xc8
jne 0x1c7a818
cmp byte [ebx + 0x24], 0
jne 0x1c7a709
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1c7a6f3
mov dword [esp + 0x10], 0x208
mov dword [esp + 0xc], 0
lea edi, [esi + 0x62898]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push edi
push 0x2f
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1c7a6f3
push edi
call fcn.01c7cd30
add esp, 4
test al, al
jne 0x1c7a709
lea eax, [esi + 0x62898]
push 0x208
push 0
push eax
call fcn.01cb76e0
add esp, 0xc
mov ecx, esi
push ebx
call fcn.01c7bbf0
mov ecx, esi
push ebx
call fcn.01c7bd00
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1c7a777
cmp byte [esi + 0x62cb0], 0
jne 0x1c7a777
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x10
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
lea edi, [esp + 0x10]
push ecx
push edx
push edi
push 0x4000000b
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1c7a777
lea eax, [esi + 0x62ca8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov byte [esi + 0x62cb0], 1
mov eax, dword [ebx + 0x20]
cmp dword [eax + 4], 1
je 0x1c7a7ac
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x206
lea eax, [esi + 0x62aa0]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
push 1
push dword [ebx + 0x1c]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
mov edx, dword [ebx + 0x3c]
xor edx, eax
mov edi, dword [ebx + 0x38]
xor edi, ecx
or edi, edx
mov edi, dword [ebp + 8]
jne 0x1c7a818
cmp byte [esi + 0x2690], 0
je 0x1c7a7d8
cmp byte [ebx + 0x30], 0
je 0x1c7a818
mov dword [esp + 4], eax
mov eax, dword [esi + 0x5d108]
mov edi, dword [esi + 0x5d10c]
mov edx, eax
or edx, edi
je 0x1c7a9b4
xor eax, ecx
xor edi, dword [esp + 4]
or edi, eax
je 0x1c7a9b4
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1c7a80e
mov byte [eax + 0x244c], 1
mov ecx, esi
push dword [ebp + 8]
jmp 0x1c7a99f
cmp byte [esi + 0x2690], 0
je 0x1c7a8a9
mov dword [ebx + 0x28], 0
mov ecx, esi
push 1
push edi
call fcn.01c7bad0
mov bl, 1
test al, al
jne 0x1c7a846
mov ecx, esi
push edi
call fcn.01c7ba00
xor ebx, ebx
mov ecx, dword [esp + 0x1058]
xor ecx, ebp
call fcn.01cb3141
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x1c7a60a
mov dword [ebx + 0x1c], eax
mov ecx, esi
push ebx
call fcn.01c7bbf0
mov eax, dword [esi + 0x5d104]
xor eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 0x5d100]
xor ecx, dword [ebx + 0x38]
or ecx, eax
jne 0x1c7a825
cmp byte [esi + 0x2690], 0
mov al, byte [ebx + 0x30]
je 0x1c7a89e
test al, al
mov al, 1
je 0x1c7a825
mov byte [esi + 0x26f0], al
jmp 0x1c7aacd
mov eax, dword [esi + 0x26c8]
cmp eax, 0x194
je 0x1c7a984
cmp eax, 0x12e
jne 0x1c7a825
lea eax, [esp + 0x10]
push 0x1048
push 0
push eax
call fcn.01cb76e0
add esp, 0xc
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1c7a83c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1047
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x18]
push ecx
push 0x21
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1c7a83c
push 0
push dword [ebx + 0x20]
lea eax, [esp + 0x18]
push eax
call fcn.01c784b0
add esp, 0xc
test al, al
je 0x1c7a83c
cmp byte [ebx + 0x24], 0
jne 0x1c7a966
mov ebx, edi
lea edi, [esi + 0x5f5c0]
push 0x1048
push 0
push edi
call fcn.01cb76e0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x1ce7f90
push 0x823
push edi
mov edi, ebx
call fcn.01c5f7e0
add esp, 0x10
mov ecx, esi
push 0
call fcn.01c79710
test al, al
je 0x1c7a83c
mov ecx, esi
push edi
call fcn.01c7ba00
jmp 0x1c7ab8e
mov dword [esi + 0x2470], 1
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1c7a99c
mov byte [eax + 0x244c], 1
mov ecx, esi
push edi
call fcn.01c7ba00
mov ecx, esi
push 0
call fcn.01c79710
mov ebx, eax
jmp 0x1c7a846
mov al, byte [ebx + 0x30]
mov byte [esi + 0x26f0], al
mov edi, dword [ebx + 0x1c]
test edi, edi
je 0x1c7aacd
mov dword [esp + 0xc], 0
lea eax, [esp + 0x10]
push 0x208
push 0
push eax
call fcn.01cb76e0
add esp, 0xc
mov dword [esp + 8], 0x103
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
push 1
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1c7aacd
push str.application_metalinkxml
lea eax, [esp + 0x14]
push eax
call fcn.01cce713
add esp, 8
test eax, eax
jne 0x1c7aacd
mov byte [esi + 0x2690], 1
mov byte [esi + 0x247c], 0
mov byte [esi + 0x26f0], 0
mov byte [ebx + 0x30], 0
mov dword [esi + 0x5d100], 0xffffffff
mov dword [esi + 0x5d104], 0xffffffff
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
lea edi, [esi + 0x5d120]
lea eax, [esi + 0x5d328]
push edi
push 0x1ce7f90
push 0x103
push eax
call fcn.01c5f840
add esp, 0x10
push 0x208
push 0
push edi
call fcn.01cb76e0
add esp, 0xc
push 0x208
push 0
lea eax, [esp + 0x18]
push eax
call fcn.01cb76e0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
push eax
push 0x1ce82cc
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1c7aaef
cmp dword [eax + 0x2448], 0xffffffff
jne 0x1c7aaef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x20]
mov dword [ecx + 0x2448], eax
mov eax, dword [esi]
mov ecx, esi
push dword [ebx + 0x1c]
push 2
call dword [eax + 4]
test al, al
je 0x1c7a844
mov eax, dword [esi]
mov ecx, esi
push 0
push 3
call dword [eax + 4]
test al, al
je 0x1c7a844
mov ecx, esi
call fcn.01c7be10
test al, al
mov edi, dword [ebp + 8]
je 0x1c7a83c
mov eax, dword [esi]
mov ecx, esi
push 0
push 4
call dword [eax + 4]
test al, al
je 0x1c7a844
cmp byte [esi + 0x26f0], 0
je 0x1c7ab74
mov eax, dword [esi + 0x5d104]
xor eax, dword [esi + 0x5d114]
mov ecx, dword [esi + 0x5d100]
xor ecx, dword [esi + 0x5d110]
or ecx, eax
jne 0x1c7ab95
mov ecx, esi
push edi
call fcn.01c7ba00
mov dword [esi + 0x5d0f8], 7
jmp 0x1c7ab8e
mov eax, dword [esi]
mov ecx, esi
push 0
push 5
call dword [eax + 4]
test al, al
je 0x1c7a844
mov dword [ebx + 0x28], 8
mov bl, 1
jmp 0x1c7a846
mov dword [esp + 0x10], 0x4e20
lea eax, [esp + 0x10]
push 4
push eax
push 6
push dword [ebx + 0x1c]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ebx
call fcn.01c79a10
test al, al
je 0x1c7a977
mov eax, dword [ebx + 0x8040]
mov ecx, dword [eax + 8]
or ecx, dword [eax + 0xc]
je 0x1c7abe6
mov dword [ebx + 0x28], 4
mov ecx, esi
push 0
push edi
call fcn.01c7bad0
jmp 0x1c7abf1
mov byte [eax + 1], 1
mov dword [ebx + 0x28], 8
cmp byte [esi + 0x2690], 0
jne 0x1c7ac22
cmp dword [esi + 0x2468], 2
jb 0x1c7ac22
mov edi, 2
mov ecx, esi
push 4
call fcn.01c79710
test al, al
je 0x1c7ac22
cmp edi, dword [esi + 0x2468]
jae 0x1c7ac22
add edi, 1
jmp 0x1c7ac08
mov eax, dword [esi]
mov ecx, esi
push 0
push 5
call dword [eax + 4]
mov ebx, eax
jmp 0x1c7a846