Function at 0x450190
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
mov eax, 0x1058
call fcn.0049af20
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x4ea418]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x26d8]
mov ecx, dword [ecx + 0x26dc]
sub ecx, eax
sar ecx, 2
cmp ecx, edi
jbe 0x450843
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 0x45022a
cmp dword [ebx], 0
je 0x450479
lea eax, [ebx + 0x806c]
push 0x4d9914
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x45043f
mov byte [esi + 0x26f0], 0
mov byte [ebx + 0x30], 0
mov dword [esi + 0x26d4], 0x8000000
jmp 0x45043f
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x45027f
mov dword [ebp - 0x1058], 0
mov dword [ebp - 0x105c], 0
mov dword [ebp - 0x1060], 4
lea ecx, [ebp - 0x105c]
lea edx, [ebp - 0x1060]
lea edi, [ebp - 0x1058]
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 0x45027f
mov eax, dword [ebp - 0x1058]
jmp 0x450281
xor eax, eax
mov dword [esi + 0x26c8], eax
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x45029a
mov dword [ecx + 0x2450], eax
mov eax, dword [esi + 0x26c8]
cmp eax, 0xc8
jne 0x450432
cmp byte [ebx + 0x24], 0
jne 0x45030b
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4502f5
mov dword [ebp - 0x1058], 0x208
mov dword [ebp - 0x105c], 0
lea edi, [esi + 0x62898]
lea ecx, [ebp - 0x105c]
lea edx, [ebp - 0x1058]
push ecx
push edx
push edi
push 0x2f
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4502f5
push edi
call fcn.00452850
add esp, 4
test al, al
jne 0x45030b
lea eax, [esi + 0x62898]
push 0x208
push 0
push eax
call fcn.0049dcc0
add esp, 0xc
mov ecx, esi
push ebx
call fcn.00451940
mov ecx, esi
push ebx
call fcn.00451a50
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x450385
cmp byte [esi + 0x62cb0], 0
jne 0x450385
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x1058], xmm0
mov dword [ebp - 0x105c], 0
mov dword [ebp - 0x1060], 0x10
lea ecx, [ebp - 0x105c]
lea edx, [ebp - 0x1060]
lea edi, [ebp - 0x1058]
push ecx
push edx
push edi
push 0x4000000b
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x450385
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 0x4503c2
mov dword [ebp - 0x1058], 0
mov dword [ebp - 0x105c], 0x206
lea eax, [esi + 0x62aa0]
lea ecx, [ebp - 0x1058]
lea edx, [ebp - 0x105c]
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 0x450432
cmp byte [esi + 0x2690], 0
je 0x4503ee
cmp byte [ebx + 0x30], 0
je 0x450432
mov dword [ebp - 0x1064], eax
mov eax, dword [esi + 0x5d108]
mov edi, dword [esi + 0x5d10c]
mov edx, eax
or edx, edi
je 0x4505dd
xor eax, ecx
xor edi, dword [ebp - 0x1064]
or edi, eax
je 0x4505dd
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x450428
mov byte [eax + 0x244c], 1
mov ecx, esi
push dword [ebp + 8]
jmp 0x4505c8
cmp byte [esi + 0x2690], 0
je 0x4504c3
mov dword [ebx + 0x28], 0
mov ecx, esi
push 1
push edi
call fcn.00451800
mov bl, 1
test al, al
jne 0x450460
mov ecx, esi
push edi
call fcn.004516f0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004961ed
mov eax, ebx
add esp, 0x1058
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x4501f6
mov dword [ebx + 0x1c], eax
mov ecx, esi
push ebx
call fcn.00451940
mov eax, dword [esi + 0x5d104]
xor eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 0x5d100]
xor ecx, dword [ebx + 0x38]
or ecx, eax
jne 0x45043f
cmp byte [esi + 0x2690], 0
movzx eax, byte [ebx + 0x30]
je 0x4504b8
test al, al
mov al, 1
je 0x45043f
mov byte [esi + 0x26f0], al
jmp 0x450729
mov eax, dword [esi + 0x26c8]
cmp eax, 0x194
je 0x4505ad
cmp eax, 0x12e
jne 0x45043f
lea eax, [ebp - 0x1058]
push 0x1048
push 0
push eax
call fcn.0049dcc0
add esp, 0xc
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x450456
mov dword [ebp - 0x105c], 0
mov dword [ebp - 0x1060], 0x1047
lea ecx, [ebp - 0x105c]
lea edx, [ebp - 0x1060]
push ecx
push edx
lea ecx, [ebp - 0x1058]
push ecx
push 0x21
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x450456
push 0
push dword [ebx + 0x20]
lea eax, [ebp - 0x1058]
push eax
call fcn.0044e1a0
add esp, 0xc
test al, al
je 0x450456
cmp byte [ebx + 0x24], 0
jne 0x45058f
lea edi, [esi + 0x5f5c0]
push 0x1048
push 0
push edi
call fcn.0049dcc0
add esp, 0xc
lea eax, [ebp - 0x1058]
push eax
push 0x4d42ee
push 0x823
push edi
mov edi, dword [ebp + 8]
call fcn.0041b740
add esp, 0x10
mov ecx, esi
push 0
call fcn.0044f3d0
test al, al
je 0x450456
mov ecx, esi
push edi
call fcn.004516f0
jmp 0x4507e7
mov dword [esi + 0x2470], 1
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4505c5
mov byte [eax + 0x244c], 1
mov ecx, esi
push edi
call fcn.004516f0
mov ecx, esi
push 0
call fcn.0044f3d0
mov ebx, eax
jmp 0x450460
movzx eax, byte [ebx + 0x30]
mov byte [esi + 0x26f0], al
mov eax, dword [ebx + 0x1c]
test eax, eax
mov edi, dword [ebp + 8]
je 0x450729
mov dword [ebp - 0x105c], 0
lea ecx, [ebp - 0x1058]
push 0x208
push 0
push ecx
mov dword [ebp - 0x1064], eax
call fcn.0049dcc0
add esp, 0xc
mov dword [ebp - 0x1060], 0x103
lea eax, [ebp - 0x105c]
lea ecx, [ebp - 0x1060]
push eax
push ecx
lea eax, [ebp - 0x1058]
push eax
push 1
push dword [ebp - 0x1064]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x450729
push str.application_metalinkxml
lea eax, [ebp - 0x1058]
push eax
call fcn.004b8a98
add esp, 8
test eax, eax
jne 0x450729
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 ecx, [esi + 0x5d120]
mov dword [ebp - 0x1064], ecx
lea eax, [esi + 0x5d328]
push ecx
push 0x4d42ee
push 0x103
push eax
call fcn.0041b79c
add esp, 0x10
push 0x208
push 0
push dword [ebp - 0x1064]
call fcn.0049dcc0
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0x1058]
push eax
call fcn.0049dcc0
add esp, 0xc
lea eax, [ebp - 0x1058]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 0x1064]
push eax
push 0x4d4068
lea eax, [ebp - 0x1058]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x45074b
cmp dword [eax + 0x2448], 0xffffffff
jne 0x45074b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x20]
mov dword [ecx + 0x2448], eax
mov ecx, esi
push dword [ebx + 0x1c]
push 2
call fcn.00451ea0
test al, al
je 0x45045e
mov ecx, esi
push 0
push 3
call fcn.00451ea0
test al, al
je 0x45045e
mov ecx, esi
call fcn.00451b60
test al, al
je 0x450456
mov ecx, esi
push 0
push 4
call fcn.00451ea0
test al, al
je 0x45045e
cmp byte [esi + 0x26f0], 0
je 0x4507cd
mov eax, dword [esi + 0x5d104]
xor eax, dword [esi + 0x5d114]
mov ecx, dword [esi + 0x5d100]
xor ecx, dword [esi + 0x5d110]
or ecx, eax
jne 0x4507ee
mov ecx, esi
push edi
call fcn.004516f0
mov dword [esi + 0x5d0f8], 7
jmp 0x4507e7
mov ecx, esi
push 0
push 5
call fcn.00451ea0
test al, al
je 0x45045e
mov dword [ebx + 0x28], 8
mov bl, 1
jmp 0x450460
mov dword [ebp - 0x1058], 0x4e20
lea eax, [ebp - 0x1058]
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.0044f590
test al, al
je 0x4505a0
mov eax, dword [ebx + 0x8040]
mov ecx, dword [eax + 8]
or ecx, dword [eax + 0xc]
je 0x450852
mov dword [ebx + 0x28], 4
mov ecx, esi
push 0
push edi
call fcn.00451800
jmp 0x45085d
push str....._third_partylibc_srcinclude_vector:1393:_assertion___n___size___failed:_vector___index_out_of_bounds_n
push 0x4d348e
call fcn.00424574
mov byte [eax + 1], 1
mov dword [ebx + 0x28], 8
cmp byte [esi + 0x2690], 0
jne 0x45088a
cmp dword [esi + 0x2468], 2
jb 0x45088a
mov edi, 1
mov ecx, esi
push 4
call fcn.0044f3d0
test al, al
je 0x45088a
inc edi
cmp edi, dword [esi + 0x2468]
jb 0x450874
mov ecx, esi
push 0
push 5
call fcn.00451ea0
mov ebx, eax
jmp 0x450460