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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x106c
call fcn.004fa330
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x106c], esi
mov eax, dword [edi + 0x26d8]
mov ebx, dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x26cc]
mov dword [edi + 0x26d0], eax
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x2c], 0
cmp dword [eax + 4], 1
je 0x4a82f3
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4a7d76
lea ecx, [ebp - 0x1068]
mov dword [ebp - 0x1060], 0
push ecx
lea ecx, [ebp - 0x1064]
mov dword [ebp - 0x1068], 0
push ecx
lea ecx, [ebp - 0x1060]
mov dword [ebp - 0x1064], 4
push ecx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a7d76
mov eax, dword [ebp - 0x1060]
jmp 0x4a7d78
xor eax, eax
mov dword [edi + 0x26c8], eax
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x4a7d91
mov dword [ecx + 0x2450], eax
mov eax, dword [edi + 0x26c8]
cmp eax, 0xc8
jne 0x4a81aa
cmp dword [ebx + 0x24], 0
jne 0x4a7e08
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4a7df2
lea edx, [ebp - 0x1064]
mov dword [ebp - 0x1060], 0x208
push edx
lea edx, [ebp - 0x1060]
mov dword [ebp - 0x1064], 0
push edx
lea ecx, [edi + 0x62898]
push ecx
push 0x2f
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a7df2
lea eax, [edi + 0x62898]
push eax
call fcn.004a76c0
add esp, 4
test eax, eax
jne 0x4a7e08
push 0x208
lea eax, [edi + 0x62898]
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
push ebx
mov ecx, edi
call fcn.004a8e60
cmp dword [ebx + 0x1c], 0
je 0x4a7f23
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
mov dword [ebp - 0x1060], 0x208
cmp dword [edi + 0x5d100], 0xffffffff
mov dword [ebp - 0x1068], 0
jne 0x4a7e5a
cmp dword [edi + 0x5d104], 0xffffffff
je 0x4a7f23
cmp dword [edi + 0x2480], 0
jne 0x4a7f23
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x1060]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x12
push dword [ebx + 0x1c]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a7f23
mov ecx, str.HTTP_1.1
lea eax, [ebp - 0x20c]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a7ec6
test dx, dx
je 0x4a7ec2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a7ec6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a7ea0
xor eax, eax
jmp 0x4a7ecb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4a7f23
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004bcaf0
add esp, 0xc
mov dword [ebp - 0x1060], 0x208
lea eax, [ebp - 0x1068]
mov dword [ebp - 0x1068], 0
push eax
lea eax, [ebp - 0x1060]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x2a
push dword [ebx + 0x1c]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a7f23
mov dword [ebx + 0x30], 1
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4a7f8a
cmp dword [edi + 0x62cb0], 0
jne 0x4a7f8a
lea ecx, [ebp - 0x1064]
mov dword [ebp - 0x1064], 0
push ecx
lea ecx, [ebp - 0x1060]
mov dword [ebp - 0x1060], 0x10
push ecx
lea ecx, [ebp - 0x105c]
push ecx
push 0x4000000b
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a7f8a
lea eax, [edi + 0x62ca8]
push eax
lea eax, [ebp - 0x105c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov dword [edi + 0x62cb0], 1
mov eax, dword [ebx + 0x20]
cmp dword [eax + 4], 1
je 0x4a7fc7
lea eax, [ebp - 0x1064]
mov dword [ebp - 0x1064], 0
push eax
lea eax, [ebp - 0x1060]
mov dword [ebp - 0x1060], 0x206
push eax
lea eax, [edi + 0x62aa0]
push eax
push 1
push dword [ebx + 0x1c]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
cmp dword [edi + 0x5d100], eax
jne 0x4a81aa
cmp dword [edi + 0x5d104], edx
jne 0x4a81aa
cmp dword [edi + 0x2690], 0
je 0x4a7ff8
cmp dword [ebx + 0x30], 1
jne 0x4a81aa
mov ecx, dword [edi + 0x5d108]
mov eax, dword [edi + 0x5d10c]
test ecx, ecx
jne 0x4a800c
test eax, eax
je 0x4a801d
cmp ecx, dword [ebx + 0x38]
jne 0x4a8175
cmp eax, edx
jne 0x4a8175
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x26f0], eax
cmp dword [ebx + 0x1c], 0
je 0x4a834b
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x1064], 0
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
mov dword [ebp - 0x1060], 0x103
lea eax, [ebp - 0x1064]
push eax
lea eax, [ebp - 0x1060]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push dword [ebx + 0x1c]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a834b
mov ecx, str.application_metalinkxml
lea eax, [ebp - 0x20c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a80b6
test dx, dx
je 0x4a80b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a80b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a8090
xor eax, eax
jmp 0x4a80bb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4a834b
mov dword [edi + 0x247c], eax
lea esi, [edi + 0x5d120]
mov dword [edi + 0x26f0], eax
push esi
mov dword [edi + 0x2690], 1
mov dword [ebx + 0x30], eax
lea eax, [edi + 0x5d328]
push 0x51ff4c
mov dword [edi + 0x5d100], 0xffffffff
mov dword [edi + 0x5d104], 0xffffffff
push 0x103
push eax
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
call fcn.0041a950
push 0x208
push 0
push esi
call fcn.004bcaf0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004bcaf0
add esp, 0x28
lea eax, [ebp - 0x20c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x50d30c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [ebp - 0x106c]
jmp 0x4a834b
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4a8186
mov dword [eax + 0x244c], 1
push esi
mov ecx, edi
call fcn.004a6740
push 0
mov ecx, edi
call fcn.004a6f90
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x2690], 0
jne 0x4a8513
mov eax, dword [edi + 0x26c8]
cmp eax, 0x12e
jne 0x4a82a9
push 0x1048
lea eax, [ebp - 0x104c]
push 0
push eax
call fcn.004bcaf0
mov eax, dword [ebx + 0x1c]
add esp, 0xc
test eax, eax
je 0x4a852c
lea ecx, [ebp - 0x1064]
mov dword [ebp - 0x1064], 0
push ecx
lea ecx, [ebp - 0x1060]
mov dword [ebp - 0x1060], 0x1047
push ecx
lea ecx, [ebp - 0x104c]
push ecx
push 0x21
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a852c
push 0
push dword [ebx + 0x20]
lea eax, [ebp - 0x104c]
push eax
call fcn.004a6ae0
add esp, 0xc
test eax, eax
je 0x4a852c
cmp dword [ebx + 0x24], 0
jne 0x4a8278
push 0x1048
lea esi, [edi + 0x5f5c0]
push 0
push esi
call fcn.004bcaf0
lea eax, [ebp - 0x104c]
push eax
push 0x51ff4c
push 0x823
push esi
call fcn.00468aa0
mov esi, dword [ebp - 0x106c]
add esp, 0x1c
push 0
mov ecx, edi
call fcn.004a6f90
test eax, eax
je 0x4a852c
push esi
mov ecx, edi
call fcn.004a6740
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x194
jne 0x4a8513
mov dword [edi + 0x2470], 1
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4a82cf
mov dword [eax + 0x244c], 1
push esi
mov ecx, edi
call fcn.004a6740
push 0
mov ecx, edi
call fcn.004a6f90
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx], 0
jne 0x4a84e2
mov eax, dword [ebx + 4]
test eax, eax
je 0x4a84e2
push ebx
mov ecx, edi
mov dword [ebx + 0x1c], eax
call fcn.004a8e60
mov eax, dword [edi + 0x5d100]
cmp eax, dword [ebx + 0x38]
jne 0x4a8513
mov eax, dword [edi + 0x5d104]
cmp eax, dword [ebx + 0x3c]
jne 0x4a8513
cmp dword [edi + 0x2690], 0
mov eax, dword [ebx + 0x30]
je 0x4a8345
cmp eax, 1
jne 0x4a8513
mov dword [edi + 0x26f0], eax
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4a836d
cmp dword [eax + 0x2448], 0xffffffff
jne 0x4a836d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x20]
sub eax, dword [ebx + 8]
mov dword [ecx + 0x2448], eax
push dword [ebx + 0x1c]
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
test eax, eax
je 0x4a8534
mov eax, dword [edi]
mov ecx, edi
push 0
push 3
call dword [eax + 4]
test eax, eax
je 0x4a8534
mov ecx, edi
call fcn.004a7160
test eax, eax
je 0x4a852c
mov eax, dword [edi]
mov ecx, edi
push 0
push 4
call dword [eax + 4]
test eax, eax
je 0x4a8534
cmp dword [edi + 0x26f0], 0
je 0x4a84b4
mov eax, dword [edi + 0x5d100]
cmp eax, dword [edi + 0x5d110]
jne 0x4a8409
mov eax, dword [edi + 0x5d104]
cmp eax, dword [edi + 0x5d114]
jne 0x4a8409
push esi
mov ecx, edi
call fcn.004a6740
mov dword [edi + 0x5d0f8], 7
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret 4
push 4
lea eax, [ebp - 0x1064]
mov dword [ebp - 0x1064], 0x4e20
push eax
push 6
push dword [ebx + 0x1c]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ebx
mov ecx, edi
call fcn.004a5cd0
test eax, eax
je 0x4a8289
mov eax, dword [ebx + 0x8040]
cmp dword [eax + 8], 0
jne 0x4a845f
cmp dword [eax + 0xc], 0
jne 0x4a845f
mov dword [eax + 4], 1
mov dword [ebx + 0x28], 8
jmp 0x4a8470
push 0
push esi
mov ecx, edi
mov dword [ebx + 0x28], 4
call fcn.004a97b0
cmp dword [edi + 0x2690], 0
jne 0x4a849c
mov esi, 1
cmp dword [edi + 0x2468], esi
jbe 0x4a849c
push 4
mov ecx, edi
call fcn.004a6f90
test eax, eax
je 0x4a849c
inc esi
cmp esi, dword [edi + 0x2468]
jb 0x4a8486
mov eax, dword [edi]
mov ecx, edi
push 0
push 5
call dword [eax + 4]
test eax, eax
je 0x4a8534
jmp 0x4a8291
mov eax, dword [edi]
mov ecx, edi
push 0
push 5
call dword [eax + 4]
test eax, eax
je 0x4a8534
pop edi
pop esi
mov dword [ebx + 0x28], 8
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret 4
push 0x50d314
lea eax, [ebx + 0x806c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4a8513
mov dword [edi + 0x26f0], 0
mov dword [ebx + 0x30], 0
mov dword [edi + 0x26d4], 0x8000000
push 1
push esi
mov ecx, edi
mov dword [ebx + 0x28], 0
call fcn.004a97b0
test eax, eax
jne 0x4a8291
push esi
mov ecx, edi
call fcn.004a6740
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e99c
mov esp, ebp
pop ebp
ret 4