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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57ae36
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x5c5678]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
push edi
mov eax, dword [0x5c5678]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x18], edi
cmp dword [ebx + 0x200], edi
jne 0x4f8b5d
cmp byte [ebx + 0x49d], 1
jne 0x4f854d
mov eax, dword [ebx + 0x38c]
mov edx, dword [eax + 0x10]
lea ecx, [ebx + 0x38c]
push 1
mov byte [ebx + 0x49d], 0
call edx
jmp 0x4f8b5d
mov eax, dword [ebx + 0x4a8]
mov byte [esp + 0x17], 0
cmp eax, 3
je 0x4f8a89
cmp eax, edi
je 0x4f8a89
mov eax, dword [ebx + 0x4e8]
cmp eax, edi
je 0x4f8584
push edi
push eax
push 2
mov eax, ebx
call fcn.004eaf50
mov dword [ebx + 0x4e8], edi
mov eax, 2
cmp dword [ebx + 0x4a8], eax
je 0x4f89af
push ebx
mov dword [ebx + 0x4a8], eax
call fcn.004f1070
push ebx
call fcn.004f4d00
mov esi, ebx
mov byte [esp + 0x17], 1
call fcn.004f21c0
test al, al
je 0x4f8647
mov dword [esp + 0x5c], 0x309
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], edi
mov byte [esp + 0x68], 0
mov dword [esp + 0x80], edi
mov dword [esp + 0x2f8], edi
lea eax, [ebx + 0x4dc]
push eax
lea edi, [esp + 0x28]
mov dword [esp + 0x64], 1
call fcn.004051a0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x304], 1
call fcn.00424780
mov ecx, edi
mov byte [esp + 0x2f8], 0
call fcn.00424920
mov esi, dword [ebx + 0x4f4]
lea ecx, [esp + 0x5c]
call fcn.0045c550
lea esi, [esp + 0x5c]
mov dword [esp + 0x2f8], 0xffffffff
call fcn.0045b690
xor edi, edi
mov eax, dword [ebx + 0x490]
mov dword [ebx + 0x4a0], 1
cmp eax, 7
je 0x4f898c
cmp eax, 9
jne 0x4f897c
push edi
mov edi, 0x1000000
call fcn.0045d110
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebx + 0x454]
test eax, eax
je 0x4f86a8
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f86a8
mov eax, dword [ebx + 0x454]
mov edx, dword [eax + 0x30]
add eax, 0x2c
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
lea eax, [esp + 0x84]
push eax
call fcn.00487070
push ecx
mov dword [esp + 0x2fc], 4
mov eax, esp
mov dword [esp + 0x1c], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x20], esp
push ecx
lea esi, [esp + 0xbc]
call fcn.0048a840
test eax, eax
je 0x4f8944
lea esi, [esp + 0x1c]
mov byte [ebx + 0x50c], 1
call fcn.004dfc50
mov byte [esp + 0x2f8], 5
cmp dword [ebx + 0x4a4], 1
lea edi, [ebx + 0x54]
push 0
mov eax, edi
jne 0x4f8796
mov ecx, str.IDS_ERR_REFERRAL_SUCCESS_2
lea esi, [esp + 0x44]
call fcn.004adac0
mov dword [esp + 0x20], eax
push 0
mov ecx, str.IDS_ERR_REFERRAL_SUCCESS_1
lea esi, [esp + 0x28]
mov eax, edi
mov byte [esp + 0x2fc], 6
call fcn.004adac0
mov ecx, dword [esp + 0x20]
mov edx, 8
mov byte [esp + 0x2f8], 7
cmp dword [ecx + 0x18], edx
jb 0x4f8761
mov ecx, dword [ecx + 4]
jmp 0x4f8764
add ecx, 4
cmp dword [eax + 0x18], edx
jb 0x4f876e
mov eax, dword [eax + 4]
jmp 0x4f8771
add eax, 4
push ecx
push eax
push str._s_n_s
lea edi, [esp + 0x28]
call fcn.00424dc0
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.0040f400
lea ecx, [esp + 0x40]
jmp 0x4f8846
mov ecx, str.IDS_ERR_REFERRAL_FALED_2
lea esi, [esp + 0x60]
call fcn.004adac0
mov dword [esp + 0x20], eax
push 0
mov ecx, str.IDS_ERR_REFERRAL_FALED_1
lea esi, [esp + 0x28]
mov eax, edi
mov byte [esp + 0x2fc], 8
call fcn.004adac0
mov dword [esp + 0x18], eax
push 0
mov ecx, str.IDS_ERR_REFERRAL_FALED_0
lea esi, [esp + 0x44]
mov eax, edi
mov byte [esp + 0x2fc], 9
call fcn.004adac0
mov ecx, dword [esp + 0x20]
mov esi, 8
mov byte [esp + 0x2f8], 0xa
cmp dword [ecx + 0x18], esi
jb 0x4f87fb
mov ecx, dword [ecx + 4]
jmp 0x4f87fe
add ecx, 4
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x18], esi
jb 0x4f880c
mov edx, dword [edx + 4]
jmp 0x4f880f
add edx, 4
cmp dword [eax + 0x18], esi
jb 0x4f8819
mov eax, dword [eax + 4]
jmp 0x4f881c
add eax, 4
push ecx
push edx
push eax
push str._s_n_s_n_s
lea edi, [esp + 0x2c]
call fcn.00424dc0
add esp, 0x10
lea ecx, [esp + 0x40]
call fcn.0040f400
lea ecx, [esp + 0x24]
call fcn.0040f400
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2f8], 5
call fcn.0040f400
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x88]
call fcn.00489000
push str.IDS_LATER
xor al, al
or ecx, 0xffffffff
lea esi, [esp + 0x60]
call fcn.004adb10
mov edi, 8
mov byte [esp + 0x2f8], 0xb
cmp dword [eax + 0x18], edi
jb 0x4f888f
mov eax, dword [eax + 4]
jmp 0x4f8892
add eax, 4
push 1
push 2
mov ecx, eax
lea edx, [esp + 0x8c]
call fcn.00489670
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2f8], 5
call fcn.0040f400
push str.IDS_INVITE
xor al, al
or ecx, 0xffffffff
lea esi, [esp + 0x60]
call fcn.004adb10
mov byte [esp + 0x2f8], 0xc
cmp dword [eax + 0x18], edi
jb 0x4f88da
mov eax, dword [eax + 4]
jmp 0x4f88dd
add eax, 4
push 1
push 1
mov ecx, eax
lea edx, [esp + 0x8c]
call fcn.00489670
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2f8], 5
call fcn.0040f400
mov eax, 1
lea ecx, [esp + 0x84]
call fcn.00489750
push 0
push 0
lea esi, [esp + 0x8c]
call fcn.00488ed0
cmp eax, 1
jne 0x4f8933
push 0
push 6
push 2
mov eax, ebx
call fcn.004eaf50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2f8], 4
call fcn.00425530
mov ecx, 0x5d1368
mov dword [ebx + 0x4a4], 0
call fcn.0046caf0
push 1
push ebx
call fcn.004f7650
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0x2fc], 0xffffffff
call fcn.00487240
xor edi, edi
jmp 0x4f898c
cmp eax, 1
setne al
movzx ecx, al
push ecx
push ebx
call fcn.004f7650
call fcn.00425b30
mov esi, eax
call fcn.00425f20
mov dword [ebx + 0x4f0], eax
call fcn.004d93f0
inc eax
push eax
call fcn.004d94c0
add esp, 4
jmp 0x4f89c7
cmp byte [ebx + 0x498], 0
je 0x4f89c7
push 1
push ebx
call fcn.004f7650
mov byte [ebx + 0x498], 0
mov eax, dword [ebx + 0x490]
mov byte [ebx + 0x489], 0
mov byte [ebx + 0x49b], 0
cmp eax, 2
je 0x4f8a2e
cmp eax, 3
je 0x4f8a2e
cmp eax, 6
je 0x4f8a2e
cmp dword [ebx + 0x39c], edi
lea eax, [ebx + 0x39c]
je 0x4f8a19
push edi
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
push 1
push 0xc350
call fcn.00473640
call fcn.00471100
call fcn.0048c7e0
add esp, 8
push 1
mov ecx, ebx
mov dword [ebx + 0x490], edi
call fcn.004f5d10
push ebx
call fcn.004f10b0
cmp dword [ebx + 0x4f8], 3
jne 0x4f8aab
push str.IDS_KEY_REGISTER_PROMPT_6
xor al, al
or ecx, 0xffffffff
lea esi, [esp + 0x60]
mov dword [ebx + 0x4f8], edi
call fcn.004adb10
mov dword [esp + 0x2f8], 0xd
cmp dword [eax + 0x18], 8
jb 0x4f8a66
mov eax, dword [eax + 4]
jmp 0x4f8a69
add eax, 4
push eax
mov edi, ebx
call fcn.004faa40
lea ecx, [esp + 0x5c]
mov dword [esp + 0x2f8], 0xffffffff
call fcn.0040f400
xor edi, edi
jmp 0x4f8aab
cmp dword [ebx + 0x3a0], edi
jne 0x4f8aa5
cmp byte [ebx + 0x487], 0
setne dl
movzx eax, dl
push eax
push ebx
call fcn.004f5a50
mov dword [ebx + 0x4a8], edi
cmp dword [ebx + 0x200], edi
jne 0x4f8b2a
mov eax, dword [ebx + 0x43c]
cmp eax, edi
je 0x4f8ac4
mov byte [eax + 0x1e5], 1
mov edi, ebx
call fcn.004f8170
test al, al
jne 0x4f8b28
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x4e4]
cmp eax, 0x1f4
jae 0x4f8afa
mov edx, dword [ebx + 0x30]
push 0
mov ecx, 0x1f4
sub ecx, eax
push ecx
push 2
push edx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4f8b28
mov eax, dword [ebx + 0x454]
test eax, eax
je 0x4f8b28
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f8b28
mov ecx, dword [ebx + 0x454]
mov edx, dword [ecx + 0x30]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
cmp byte [ebx + 0x488], 0
jne 0x4f8b50
cmp dword [ebx + 0x4ac], edi
jne 0x4f8b50
lea esi, [ebx + 0x4dc]
mov dword [ebx + 0x4b4], 0xffffffff
call fcn.00425260
cmp byte [esp + 0x17], 0
je 0x4f8b5d
push ebx
call fcn.004f9860
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.0053d78d
mov esp, ebp
pop ebp
ret 4