Function at 0x46ca83
Capabilities:
Check for time delay via gettickcount
Check if file exists

Disassembly:
push ebp
sub esp, 0x45c
lea ebp, [esp - 4]
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x45c], eax
push 0x10
mov eax, 0x4bb298
call fcn.0048501f
mov esi, ecx
mov eax, dword [esi + 8]
xor ecx, ecx
mov dword [esi + 0x50], ecx
mov dword [ebp - 0x14], esi
cmp dword [eax - 0xc], ecx
je 0x46ca51
lea ebx, [esi + 0xc]
mov eax, dword [ebx]
cmp dword [eax - 0xc], ecx
je 0x46ca51
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x46c842
mov eax, dword [esi + 0x10]
cmp dword [eax - 0xc], 0
je 0x46c7b7
push dword [ebx]
push eax
call fcn.00469224
pop ecx
pop ecx
test eax, eax
je 0x46c7b7
mov eax, dword [ebx]
push 0
push eax
call fcn.0040e370
pop ecx
pop ecx
test eax, eax
je 0x46c7b7
mov dword [esi + 0x50], 1
push dword [esi + 0x2c]
push 0x1003
jmp 0x46ca59
push 0x2e
mov ecx, ebx
mov dword [ebp - 0x10], 1
call fcn.0046c5e0
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0041a88c
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp - 0x1c]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.00426a03
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
push 1
jmp 0x46c802
push dword [ebp - 0x1c]
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 0x4c61d8
push ebx
call fcn.0041cbb1
add esp, 0x14
push dword [ebx]
call edi
test eax, eax
jne 0x46c7f9
push 0x4ccc00
lea ecx, [esi + 0x10]
call fcn.0040c8e0
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040dd20
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.0040dd20
push 0
lea edi, [esi + 8]
push str.https:__
mov ecx, edi
call fcn.00418675
cmp eax, 0xffffffff
je 0x46c8e2
mov eax, dword [ebx]
mov edi, dword [edi]
push eax
push edi
call fcn.0040ae70
pop ecx
pop ecx
test eax, eax
jne 0x46c7aa
mov esi, str.http:__
lea edi, [ebp + 0x254]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x1f8
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp + 0x264]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00484150
mov esi, dword [ebp - 0x14]
add esp, 0xc
add esi, 8
push 0x104
mov ecx, esi
call fcn.0040cf00
push str.https:__
mov edi, eax
call fcn.00484927
pop ecx
lea eax, [edi + eax*2]
push eax
push str.http:__
call fcn.00484927
pop ecx
lea eax, [ebp + eax*2 + 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp + 0x254]
push eax
mov ecx, esi
call fcn.0040c8e0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx]
push dword [eax - 0xc]
mov ecx, ebx
call fcn.0040cf00
lea edi, [esi + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push dword [eax - 0xc]
mov ecx, edi
call fcn.0040cf00
mov dword [ebp - 0x18], eax
call fcn.0046cad5
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0
call dword [eax + 0x1c]
add esp, 0xc
push 0xffffffffffffffff
mov ecx, edi
mov dword [esi + 4], eax
call fcn.0041d302
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0041d302
call fcn.0046cad5
push dword [esi + 4]
call dword [eax + 0x24]
pop ecx
test eax, eax
je 0x46ca51
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x1000
xor ebx, ebx
jmp 0x46ca1b
push 0x3e8
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46ca3d
push 0x250
lea eax, [ebp + 4]
push ebx
push eax
mov dword [ebp], ebx
call fcn.00484150
push 0x254
lea eax, [ebp]
push ebx
push eax
call fcn.00484150
call fcn.0046cad5
lea ecx, [ebp]
push ecx
push dword [esi + 4]
call dword [eax + 0x20]
add esp, 0x20
test eax, eax
je 0x46ca3d
call edi
mov ecx, dword [esi + 0x24]
sub eax, dword [ebp - 0x14]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jbe 0x46c9c9
cmp dword [ebp + 0xc], ebx
ja 0x46c9c9
cmp dword [ebp + 8], 1
jb 0x46ca36
call edi
mov ecx, dword [esi + 0x24]
sub eax, dword [ebp - 0x14]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jbe 0x46c9e6
cmp dword [ebp + 0x14], ebx
ja 0x46c9e6
cmp dword [ebp + 0x10], 1
jb 0x46ca36
mov al, byte [ebp + 0x45]
cmp al, 1
je 0x46ca26
cmp al, 3
je 0x46ca36
cmp al, 2
je 0x46ca3d
cmp al, 4
je 0x46ca3d
cmp al, 5
je 0x46ca3d
cmp al, 6
je 0x46ca3d
cmp dword [ebp + 0xc], ebx
ja 0x46ca0c
cmp dword [ebp + 8], 1
jb 0x46ca1b
push dword [esi + 0x2c]
mov ecx, esi
push 0x1002
call fcn.0046c45c
cmp dword [esi + 0x4c], ebx
je 0x46c958
jmp 0x46ca3d
mov dword [esi + 0x48], 0x6000
mov dword [ebp - 0x10], 0x1003
jmp 0x46ca3d
mov dword [ebp - 0x10], 0x1001
call fcn.0046cad5
push dword [esi + 4]
call dword [eax + 0x34]
pop ecx
push dword [esi + 0x2c]
push dword [ebp - 0x10]
jmp 0x46ca59
push dword [esi + 0x2c]
push 0x1000
mov ecx, esi
call fcn.0046c45c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x45c]
xor ecx, ebp
call fcn.00484247
add ebp, 0x460
leave
ret
jmp 0x46c723