Function at 0x46ce86
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, 0x4bb741
call fcn.00485421
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 0x46ce54
lea ebx, [esi + 0xc]
mov eax, dword [ebx]
cmp dword [eax - 0xc], ecx
je 0x46ce54
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x46cc45
mov eax, dword [esi + 0x10]
cmp dword [eax - 0xc], 0
je 0x46cbba
push dword [ebx]
push eax
call fcn.004693b2
pop ecx
pop ecx
test eax, eax
je 0x46cbba
mov eax, dword [ebx]
push 0
push eax
call fcn.0040e370
pop ecx
pop ecx
test eax, eax
je 0x46cbba
mov dword [esi + 0x50], 1
push dword [esi + 0x2c]
push 0x1003
jmp 0x46ce5c
push 0x2e
mov ecx, ebx
mov dword [ebp - 0x10], 1
call fcn.00468d1e
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.00426a58
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
push 1
jmp 0x46cc05
push dword [ebp - 0x1c]
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 0x4c6240
push ebx
call fcn.0041cc03
add esp, 0x14
push dword [ebx]
call edi
test eax, eax
jne 0x46cbfc
push 0x4ccc68
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 0x46cce5
mov eax, dword [ebx]
mov edi, dword [edi]
push eax
push edi
call fcn.0040ae70
pop ecx
pop ecx
test eax, eax
jne 0x46cbad
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.00484550
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.00484d27
pop ecx
lea eax, [edi + eax*2]
push eax
push str.http:__
call fcn.00484d27
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.0046ced8
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.0041d354
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0041d354
call fcn.0046ced8
push dword [esi + 4]
call dword [eax + 0x24]
pop ecx
test eax, eax
je 0x46ce54
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x1000
xor ebx, ebx
jmp 0x46ce1e
push 0x3e8
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46ce40
push 0x250
lea eax, [ebp + 4]
push ebx
push eax
mov dword [ebp], ebx
call fcn.00484550
push 0x254
lea eax, [ebp]
push ebx
push eax
call fcn.00484550
call fcn.0046ced8
lea ecx, [ebp]
push ecx
push dword [esi + 4]
call dword [eax + 0x20]
add esp, 0x20
test eax, eax
je 0x46ce40
call edi
mov ecx, dword [esi + 0x24]
sub eax, dword [ebp - 0x14]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jbe 0x46cdcc
cmp dword [ebp + 0xc], ebx
ja 0x46cdcc
cmp dword [ebp + 8], 1
jb 0x46ce39
call edi
mov ecx, dword [esi + 0x24]
sub eax, dword [ebp - 0x14]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jbe 0x46cde9
cmp dword [ebp + 0x14], ebx
ja 0x46cde9
cmp dword [ebp + 0x10], 1
jb 0x46ce39
mov al, byte [ebp + 0x45]
cmp al, 1
je 0x46ce29
cmp al, 3
je 0x46ce39
cmp al, 2
je 0x46ce40
cmp al, 4
je 0x46ce40
cmp al, 5
je 0x46ce40
cmp al, 6
je 0x46ce40
cmp dword [ebp + 0xc], ebx
ja 0x46ce0f
cmp dword [ebp + 8], 1
jb 0x46ce1e
push dword [esi + 0x2c]
mov ecx, esi
push 0x1002
call fcn.0046c886
cmp dword [esi + 0x4c], ebx
je 0x46cd5b
jmp 0x46ce40
mov dword [esi + 0x48], 0x6000
mov dword [ebp - 0x10], 0x1003
jmp 0x46ce40
mov dword [ebp - 0x10], 0x1001
call fcn.0046ced8
push dword [esi + 4]
call dword [eax + 0x34]
pop ecx
push dword [esi + 0x2c]
push dword [ebp - 0x10]
jmp 0x46ce5c
push dword [esi + 0x2c]
push 0x1000
mov ecx, esi
call fcn.0046c886
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.00484647
add ebp, 0x460
leave
ret
jmp 0x46cb26