Function at 0x491bf2
Capabilities:
Check for time delay via gettickcount
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12ac
call fcn.005482e0
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x26ec]
call fcn.004264b0
mov esi, dword [eax]
mov dword [ebp - 0x1264], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x26e0]
mov dword [ebx + 0x26e4], eax
mov eax, dword [esi + 0x20]
and dword [esi + 0x2c], 0
cmp dword [eax + 4], 1
je 0x491fdc
mov edi, esi
cmp dword [edi + 0x1c], 0
je 0x491c54
push edi
call fcn.00493a61
jmp 0x491c56
xor eax, eax
mov dword [ebx + 0x26dc], eax
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x491c69
mov dword [ecx + 0x2450], eax
cmp dword [ebx + 0x26dc], 0xc8
jne 0x491ea3
mov eax, edi
mov ecx, ebx
call fcn.0049473d
push ebx
call fcn.00493958
push edi
mov ecx, ebx
call fcn.004947a6
mov eax, edi
mov esi, ebx
call fcn.00493a9e
push ebx
mov eax, edi
call fcn.00493913
mov edx, dword [edi + 0x38]
mov eax, dword [ebx + 0x5d128]
mov esi, dword [edi + 0x3c]
cmp eax, edx
jne 0x491ea3
mov eax, dword [ebx + 0x5d12c]
cmp eax, esi
jne 0x491ea3
xor eax, eax
cmp dword [ebx + 0x2694], eax
je 0x491cd6
cmp dword [edi + 0x30], 1
sete al
jmp 0x491cd7
inc eax
test eax, eax
je 0x491ea3
mov eax, dword [ebx + 0x5d130]
mov ecx, dword [ebx + 0x5d134]
test eax, eax
jne 0x491cf3
test ecx, ecx
je 0x491d23
cmp eax, edx
jne 0x491cfb
cmp ecx, esi
je 0x491d23
mov edi, dword [edi + 0x20]
test edi, edi
je 0x491d0c
mov dword [edi + 0x244c], 1
push dword [ebp + 8]
mov eax, ebx
call fcn.00492c6e
push 0
push ebx
call fcn.004912c7
jmp 0x4923b2
mov eax, dword [edi + 0x30]
mov dword [ebx + 0x271c], eax
xor eax, eax
cmp dword [edi + 0x1c], eax
je 0x491d3a
mov esi, edi
call fcn.00493afb
test eax, eax
je 0x491df2
xor eax, eax
mov dword [ebx + 0x247c], eax
mov dword [ebx + 0x271c], eax
mov dword [ebx + 0x2694], 1
mov dword [edi + 0x30], eax
or eax, 0xffffffff
mov dword [ebx + 0x5d128], eax
mov dword [ebx + 0x5d12c], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
lea eax, [ebx + 0x5d148]
push eax
push 0x57cb68
mov esi, 0x103
lea eax, [ebx + 0x5d350]
push esi
push eax
call fcn.00532a01
push 0x208
lea eax, [ebx + 0x5d148]
push 0
push eax
call fcn.00537010
add esp, 0x1c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00537010
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebx + 0x5d148]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x588904
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [edi + 0x20]
xor esi, esi
cmp eax, esi
je 0x491e16
cmp dword [eax + 0x2448], 0xffffffff
jne 0x491e16
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 8]
mov ecx, dword [edi + 0x20]
mov dword [ecx + 0x2448], eax
push dword [edi + 0x1c]
mov eax, dword [ebx]
push 2
mov ecx, ebx
call dword [eax + 4]
test eax, eax
je 0x4923b0
mov eax, dword [ebx]
push esi
push 3
mov ecx, ebx
call dword [eax + 4]
test eax, eax
je 0x4923b0
mov ecx, ebx
call fcn.00493bac
test eax, eax
je 0x4923a6
mov eax, dword [ebx]
push esi
push 4
mov ecx, ebx
call dword [eax + 4]
test eax, eax
je 0x4923b0
cmp dword [ebx + 0x271c], esi
je 0x49238c
mov eax, dword [ebx + 0x5d128]
cmp eax, dword [ebx + 0x5d138]
jne 0x492061
mov eax, dword [ebx + 0x5d12c]
cmp eax, dword [ebx + 0x5d13c]
jne 0x492061
push dword [ebp + 8]
mov eax, ebx
call fcn.00492c6e
mov dword [ebx + 0x5d120], 7
jmp 0x491ec4
xor esi, esi
cmp dword [ebx + 0x2694], esi
je 0x491ecc
mov dword [edi + 0x28], esi
push 1
push dword [ebp + 8]
mov eax, ebx
call fcn.004931db
test eax, eax
je 0x4923a6
xor eax, eax
inc eax
jmp 0x4923b2
mov eax, dword [ebx + 0x26dc]
cmp eax, 0x12e
jne 0x491fab
xor eax, eax
push 0x1046
mov word [ebp - 0x125c], ax
lea eax, [ebp - 0x125a]
push esi
push eax
call fcn.00537010
mov eax, dword [edi + 0x1c]
add esp, 0xc
cmp eax, esi
je 0x4923a6
lea ecx, [ebp - 0x1268]
push ecx
lea ecx, [ebp - 0x1260]
push ecx
lea ecx, [ebp - 0x125c]
push ecx
push 0x21
push eax
mov dword [ebp - 0x1268], esi
mov dword [ebp - 0x1260], 0x1047
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4923a6
mov esi, dword [edi + 0x20]
lea eax, [ebp - 0x125c]
push 0
push eax
call fcn.00490908
pop ecx
pop ecx
test eax, eax
je 0x4923a6
xor esi, esi
cmp dword [edi + 0x24], esi
jne 0x491f8d
push 0x1048
lea edi, [ebx + 0x5f5e8]
push esi
push edi
call fcn.00537010
add esp, 0xc
lea eax, [ebp - 0x125c]
push eax
push 0x57cb68
push 0x823
push edi
call fcn.00532a01
add esp, 0x10
push esi
push ebx
call fcn.004912c7
test eax, eax
je 0x4923a6
push dword [ebp + 8]
mov eax, ebx
call fcn.00492c6e
jmp 0x491ec4
cmp eax, 0x194
jne 0x491ead
xor eax, eax
inc eax
mov dword [ebx + 0x2470], eax
mov edi, dword [edi + 0x20]
cmp edi, esi
je 0x491fcc
mov dword [edi + 0x244c], eax
push dword [ebp + 8]
mov eax, ebx
call fcn.00492c6e
push esi
jmp 0x491d18
xor edi, edi
cmp dword [esi], edi
jne 0x492030
mov eax, dword [esi + 4]
cmp eax, edi
je 0x492030
push ebx
mov dword [esi + 0x1c], eax
call fcn.00493958
mov eax, dword [ebx + 0x5d128]
cmp eax, dword [esi + 0x38]
jne 0x492059
mov eax, dword [ebx + 0x5d12c]
cmp eax, dword [esi + 0x3c]
jne 0x492059
xor eax, eax
cmp dword [ebx + 0x2694], edi
je 0x49201b
cmp dword [esi + 0x30], 1
sete al
jmp 0x49201c
inc eax
cmp eax, edi
je 0x492059
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x271c], eax
mov edi, esi
jmp 0x491df2
push 0x58890c
lea eax, [esi + 0x806c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x492059
mov dword [ebx + 0x271c], edi
mov dword [esi + 0x30], edi
mov dword [ebx + 0x26e8], 0x8000000
mov dword [esi + 0x28], edi
jmp 0x491eb0
push 4
lea eax, [ebp - 0x1288]
push eax
push 6
push dword [edi + 0x1c]
mov dword [ebp - 0x1288], 0x4e20
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [edi + 0x8040], esi
mov eax, dword [ebx + 0x2714]
sub eax, dword [ebx + 0x2710]
xor edi, edi
sar eax, 2
test eax, eax
jbe 0x4920c0
lea esi, [ebx + 0x2704]
call fcn.004264b0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x49210a
mov eax, dword [ebx + 0x2714]
sub eax, dword [ebx + 0x2710]
inc edi
sar eax, 2
cmp edi, eax
jb 0x49209a
push 8
xor eax, eax
and dword [ebp - 0x1260], eax
pop ecx
lea edi, [ebp - 0x12ac]
rep stosd dword es:[edi], eax
lea edx, [ebx + 0x5cfe0]
push 0x20
pop ecx
mov edi, edx
lea esi, [ebp - 0x12ac]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4920ef
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x49213b
inc dword [ebp - 0x1260]
add edx, 0x20
cmp dword [ebp - 0x1260], 0xa
jb 0x4920d9
jmp 0x491f9c
lea esi, [ebx + 0x2704]
call fcn.004264b0
mov eax, dword [eax]
lea esi, [ebx + 0x2704]
mov dword [eax], 1
call fcn.004264b0
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1264]
mov dword [ecx + 0x8040], eax
jmp 0x492318
mov eax, dword [ebp - 0x1260]
mov dword [ebp - 0x1268], eax
cmp eax, 0xffffffff
je 0x491f9c
mov eax, dword [ebx + 0x2714]
sub eax, dword [ebx + 0x2710]
or dword [ebp - 0x1260], 0xffffffff
xor edi, edi
sar eax, 2
mov dword [ebp - 0x1274], edi
mov dword [ebp - 0x1270], edi
test eax, eax
jbe 0x491f9c
lea esi, [ebx + 0x2704]
call fcn.004264b0
mov eax, dword [eax]
add eax, 0x18
lea esi, [ebx + 0x2704]
mov dword [ebp - 0x1278], eax
call fcn.004264b0
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1278]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx]
lea esi, [ebx + 0x2704]
mov dword [ebp - 0x1284], eax
mov eax, dword [ecx + 0x14]
sbb eax, dword [edx + 4]
mov dword [ebp - 0x1280], eax
call fcn.004264b0
mov edx, dword [eax]
mov eax, dword [ebp - 0x1284]
sub eax, dword [edx + 8]
mov ecx, dword [ebp - 0x1280]
sbb ecx, dword [edx + 0xc]
add eax, 1
adc ecx, 0
cmp ecx, dword [ebp - 0x1270]
jl 0x492205
jg 0x4921f3
cmp eax, dword [ebp - 0x1274]
jbe 0x492205
mov dword [ebp - 0x1274], eax
mov dword [ebp - 0x1270], ecx
mov dword [ebp - 0x1260], edi
mov eax, dword [ebx + 0x2714]
sub eax, dword [ebx + 0x2710]
inc edi
sar eax, 2
cmp edi, eax
jb 0x49217c
cmp dword [ebp - 0x1260], 0xffffffff
je 0x491f9c
cmp dword [ebp - 0x1270], 0
jl 0x491f9c
jg 0x492249
cmp dword [ebp - 0x1274], 0x40000
jbe 0x491f9c
mov eax, dword [ebp - 0x1268]
mov edi, dword [ebp - 0x1260]
add eax, 0x2e7f
shl eax, 5
add eax, ebx
lea esi, [ebx + 0x2704]
mov dword [ebp - 0x1280], eax
mov dword [eax], 1
call fcn.004264b0
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1268]
mov edx, dword [eax + 0x10]
shl ecx, 5
add ecx, ebx
mov dword [ecx + 0x5cff0], edx
mov eax, dword [eax + 0x14]
lea esi, [ebx + 0x2704]
mov dword [ebp - 0x1278], ecx
mov dword [ecx + 0x5cff4], eax
call fcn.004264b0
mov esi, dword [eax]
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp - 0x1270]
push dword [ebp - 0x1274]
call fcn.00538d60
add dword [esi + 0x10], eax
adc dword [esi + 0x14], edx
lea esi, [ebx + 0x2704]
call fcn.004264b0
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x1278]
mov esi, dword [ebp - 0x1280]
add ecx, 1
adc edx, 0
mov dword [eax + 0x5cfe8], ecx
mov dword [eax + 0x5cfec], edx
lea eax, [ebp - 0x1280]
push eax
lea eax, [ebx + 0x2704]
mov dword [ebp - 0x1280], esi
call fcn.004953e8
mov eax, dword [ebp - 0x1264]
mov dword [eax + 0x8040], esi
mov ecx, dword [ebp - 0x1264]
mov eax, dword [ecx + 0x8040]
xor esi, esi
cmp dword [eax + 8], esi
jne 0x492340
cmp dword [eax + 0xc], esi
jne 0x492340
mov dword [eax + 4], 1
mov dword [ecx + 0x28], 8
jmp 0x492352
push esi
push dword [ebp + 8]
mov eax, ebx
mov dword [ecx + 0x28], 4
call fcn.004931db
cmp dword [ebx + 0x2694], esi
jne 0x49237a
xor edi, edi
inc edi
lea esi, [ebx + 0x2468]
cmp dword [esi], edi
jbe 0x492378
push 4
push ebx
call fcn.004912c7
test eax, eax
je 0x492378
inc edi
cmp edi, dword [esi]
jb 0x492367
xor esi, esi
mov eax, dword [ebx]
push esi
push 5
mov ecx, ebx
call dword [eax + 4]
neg eax
sbb eax, eax
neg eax
jmp 0x4923b2
mov eax, dword [ebx]
push esi
push 5
mov ecx, ebx
call dword [eax + 4]
test eax, eax
je 0x4923b0
mov dword [edi + 0x28], 8
jmp 0x491ec4
push dword [ebp + 8]
mov eax, ebx
call fcn.00492c6e
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0052f7d0
leave
ret 4