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

Disassembly:
mov eax, 0x1260
call fcn.00413a30
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1274]
mov eax, dword [esi + 0x26e0]
mov ebx, dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x26d0]
xor ebp, ebp
sub eax, ecx
mov dword [esi + 0x26d4], eax
mov ecx, dword [ebx + 0x20]
mov dword [ebx + 0x2c], ebp
cmp dword [ecx + 4], 1
je 0x40598a
push ebx
mov ecx, esi
call fcn.00406fd0
mov dword [esi + 0x26cc], eax
mov ecx, dword [ebx + 0x20]
cmp ecx, ebp
je 0x405621
mov dword [ecx + 0x2450], eax
cmp dword [esi + 0x26cc], 0xc8
jne 0x40586f
push ebx
mov ecx, esi
call fcn.00408380
push ebx
mov ecx, esi
call fcn.00406ee0
push ebx
mov ecx, esi
call fcn.00408400
push ebx
mov ecx, esi
call fcn.00407030
push ebx
mov ecx, esi
call fcn.00406e80
mov edx, dword [ebx + 0x38]
mov eax, dword [esi + 0x5d108]
mov edi, dword [ebx + 0x3c]
cmp eax, edx
jne 0x405868
mov ecx, dword [esi + 0x5d10c]
cmp ecx, edi
jne 0x405868
cmp dword [esi + 0x2690], ebp
je 0x405696
mov ecx, dword [ebx + 0x30]
xor eax, eax
cmp ecx, 1
sete al
cmp eax, ebp
je 0x405868
mov eax, dword [esi + 0x5d110]
mov ecx, dword [esi + 0x5d114]
cmp eax, ebp
jne 0x4056aa
cmp ecx, ebp
je 0x4056e7
cmp eax, edx
jne 0x4056b2
cmp ecx, edi
je 0x4056e7
mov ebx, dword [ebx + 0x20]
cmp ebx, ebp
je 0x4056c3
mov dword [ebx + 0x244c], 1
mov edx, dword [esp + 0x1274]
mov ecx, esi
push edx
call fcn.00406500
push ebp
mov ecx, esi
call fcn.00404c90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1260
ret 4
mov eax, dword [ebx + 0x30]
push ebx
mov ecx, esi
mov dword [esi + 0x26fc], eax
call fcn.00407100
test eax, eax
je 0x40579d
mov dword [esi + 0x2690], 1
mov dword [esi + 0x247c], ebp
mov dword [esi + 0x26fc], ebp
mov dword [ebx + 0x30], ebp
lea ebp, [esi + 0x5d128]
or eax, 0xffffffff
push ebp
mov dword [esi + 0x5d108], eax
push 0x4234d0
lea ecx, [esi + 0x5d330]
mov dword [esi + 0x5d10c], eax
push 0x103
mov dword [ebx + 0x38], eax
push ecx
mov dword [ebx + 0x3c], eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0x82
xor eax, eax
mov edi, ebp
add esp, 0x10
rep stosd dword es:[edi], eax
mov dx, word [0x426bf0]
mov ecx, 0x81
lea edi, [esp + 0x16]
mov word [esp + 0x14], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x1c]
push 0x423568
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor ebp, ebp
mov edi, dword [esp + 0x1274]
mov eax, dword [ebx + 0x20]
cmp eax, ebp
je 0x4057c8
cmp dword [eax + 0x2448], 0xffffffff
jne 0x4057c8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 8]
sub eax, ecx
mov ecx, dword [ebx + 0x20]
mov dword [ecx + 0x2448], eax
mov eax, dword [ebx + 0x1c]
mov edx, dword [esi]
push eax
push 2
mov ecx, esi
call dword [edx + 4]
test eax, eax
je 0x405b27
mov edx, dword [esi]
push ebp
push 3
mov ecx, esi
call dword [edx + 4]
test eax, eax
je 0x405b27
mov ecx, esi
call fcn.00407190
test eax, eax
je 0x405b1f
mov eax, dword [esi]
push ebp
push 4
mov ecx, esi
call dword [eax + 4]
test eax, eax
je 0x405b27
cmp dword [esi + 0x26fc], ebp
je 0x405af1
mov ecx, dword [esi + 0x5d108]
mov eax, dword [esi + 0x5d118]
cmp ecx, eax
jne 0x405a2f
mov edx, dword [esi + 0x5d10c]
mov eax, dword [esi + 0x5d11c]
cmp edx, eax
jne 0x405a2f
push edi
mov ecx, esi
call fcn.00406500
mov dword [esi + 0x5d100], 7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1260
ret 4
mov edi, dword [esp + 0x1274]
cmp dword [esi + 0x2690], ebp
jne 0x405a08
mov eax, dword [esi + 0x26cc]
cmp eax, 0x12e
jne 0x40594a
mov dx, word [0x426bf0]
mov ecx, 0x414
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], dx
push 0x1054
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x220]
mov ecx, esi
push eax
push ebx
call fcn.004070b0
test eax, eax
je 0x405b18
mov ecx, dword [ebx + 0x20]
push ebp
lea edx, [esp + 0x220]
push ecx
push edx
call fcn.00404140
add esp, 0xc
test eax, eax
je 0x405b18
cmp dword [ebx + 0x24], ebp
jne 0x405919
lea edx, [esi + 0x5f5c8]
mov ecx, 0x412
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x21c]
push eax
push 0x4234d0
push 0x823
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push ebp
mov ecx, esi
call fcn.00404c90
test eax, eax
je 0x405b18
mov ecx, dword [esp + 0x1274]
push ecx
mov ecx, esi
call fcn.00406500
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1260
ret 4
cmp eax, 0x194
jne 0x405a08
mov eax, 1
mov dword [esi + 0x2470], eax
mov ebx, dword [ebx + 0x20]
cmp ebx, ebp
je 0x40596d
mov dword [ebx + 0x244c], eax
push edi
mov ecx, esi
call fcn.00406500
push ebp
mov ecx, esi
call fcn.00404c90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1260
ret 4
cmp dword [ebx], ebp
jne 0x4059df
mov eax, dword [ebx + 4]
cmp eax, ebp
je 0x4059df
push ebx
mov ecx, esi
mov dword [ebx + 0x1c], eax
call fcn.00406ee0
mov edx, dword [esi + 0x5d108]
mov eax, dword [ebx + 0x38]
cmp edx, eax
jne 0x405a08
mov eax, dword [esi + 0x5d10c]
mov ecx, dword [ebx + 0x3c]
cmp eax, ecx
jne 0x405a08
cmp dword [esi + 0x2690], ebp
je 0x4059d1
mov edx, dword [ebx + 0x30]
xor eax, eax
cmp edx, 1
sete al
cmp eax, ebp
je 0x405a08
mov ecx, dword [ebx + 0x30]
mov dword [esi + 0x26fc], ecx
jmp 0x4057a4
lea edx, [ebx + 0x806c]
push 0x423560
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x405a08
mov dword [esi + 0x26fc], ebp
mov dword [ebx + 0x30], ebp
mov dword [esi + 0x26d8], 0x8000000
push 1
push edi
mov ecx, esi
mov dword [ebx + 0x28], ebp
call fcn.00406a20
test eax, eax
je 0x405b1f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1260
ret 4
mov ecx, dword [ebx + 0x1c]
lea eax, [esp + 0x10]
push 4
push eax
push 6
push ecx
mov dword [esp + 0x20], 0x4e20
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
push ebx
mov ecx, esi
call fcn.00407ee0
test eax, eax
je 0x405ad7
mov eax, dword [ebx + 0x8040]
cmp dword [eax + 8], ebp
jne 0x405a7b
cmp dword [eax + 0xc], ebp
jne 0x405a7b
mov dword [eax + 4], 1
mov dword [ebx + 0x28], 8
jmp 0x405a8b
push ebp
push edi
mov ecx, esi
mov dword [ebx + 0x28], 4
call fcn.00406a20
cmp dword [esi + 0x2690], ebp
jne 0x405aba
mov eax, dword [esi + 0x2468]
mov edi, 1
cmp eax, edi
jbe 0x405aba
push 4
mov ecx, esi
call fcn.00404c90
test eax, eax
je 0x405aba
mov eax, dword [esi + 0x2468]
inc edi
cmp edi, eax
jb 0x405aa2
mov edx, dword [esi]
push ebp
push 5
mov ecx, esi
call dword [edx + 4]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x1260
ret 4
push edi
mov ecx, esi
call fcn.00406500
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1260
ret 4
mov eax, dword [esi]
push ebp
push 5
mov ecx, esi
call dword [eax + 4]
test eax, eax
je 0x405b27
pop edi
pop esi
mov dword [ebx + 0x28], 8
pop ebp
mov eax, 1
pop ebx
add esp, 0x1260
ret 4
mov edi, dword [esp + 0x1274]
push edi
mov ecx, esi
call fcn.00406500
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1260
ret 4