Function at 0x485020
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f769
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4c6184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
push ebx
mov dword [ebp - 0x24], edi
call fcn.0041bb70
lea eax, [ebp - 0x10]
mov dword [ebp - 4], edi
mov esi, 1
push eax
mov dword [ebp - 0x24], esi
call fcn.0041bb70
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 4], esi
call fcn.0041bb70
lea edx, [ebp - 0x1c]
push edx
mov byte [ebp - 4], 2
call fcn.0041bb70
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 3
call fcn.0041bb70
mov byte [ebp - 4], 4
mov eax, dword [0x4d01c4]
mov esi, dword [0x4d0180]
cmp dword [eax - 0xc], edi
jne 0x4850eb
cmp dword [esi + 0x54], edi
jne 0x4850d5
lea ecx, [ebp - 0x14]
push ecx
call fcn.004885a7
add esp, 4
test eax, eax
je 0x4850c7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
jmp 0x4850ca
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
jbe 0x4850d2
mov dword [ebp - 0x14], eax
mov dword [esi + 0x54], eax
mov esi, dword [esi + 0x54]
push esi
push str.ra_08xptidnull
lea edi, [ebp - 0x10]
call fcn.00417b50
add esp, 8
jmp 0x485131
cmp dword [esi + 0x54], 0
mov edi, eax
jne 0x48511c
lea edx, [ebp - 0x14]
push edx
call fcn.004885a7
add esp, 4
test eax, eax
je 0x48510e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
jmp 0x485111
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
jbe 0x485119
mov dword [ebp - 0x14], eax
mov dword [esi + 0x54], eax
mov esi, dword [esi + 0x54]
push edi
push esi
push str.ra_08xptid_s
lea edi, [ebp - 0x10]
call fcn.00417b50
add esp, 0xc
mov eax, dword [0x4d01cc]
mov ecx, dword [0x4d01d4]
mov edx, dword [0x4d01d0]
push eax
mov eax, dword [0x4d01c8]
push ecx
push edx
push eax
push str.pub_id_:__s___affId_:__s___campid_:__s___name_:__s_
lea edi, [ebp - 0x20]
call fcn.00417b50
mov ecx, dword [0x4d01e0]
mov edx, dword [0x4d01d8]
push ecx
push edx
push str.app_id_:__s___version_:__s_
lea edi, [ebp - 0x1c]
call fcn.00417b50
mov eax, dword [0x4c74e8]
mov edx, dword [0x4c74f4]
mov ecx, eax
shr ecx, 2
and ecx, 1
push ecx
mov ecx, dword [0x4d01ec]
shr eax, 1
and eax, 1
push eax
mov eax, dword [0x4d01f0]
push edx
mov edx, dword [0x4d01e8]
push eax
push ecx
push edx
push str.offers_1_:_id_:__s___name_:__s___version_:__s___packages_:_cp_:__d___cp_sp_:__d___cp_hp_:__d_
lea edi, [ebp - 0x18]
call fcn.00417b50
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push ecx
push edx
push eax
push str._s_s_s_s
mov edi, ebx
call fcn.00417b50
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 0x50
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4851f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485214
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485237
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48525a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret