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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5796c6
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x5c3678]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
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 0x4f777d
cmp byte [ebx + 0x49d], 1
jne 0x4f716d
mov eax, dword [ebx + 0x38c]
mov edx, dword [eax + 0x10]
lea ecx, [ebx + 0x38c]
push 1
mov byte [ebx + 0x49d], 0
call edx
jmp 0x4f777d
mov eax, dword [ebx + 0x4a8]
mov byte [esp + 0x17], 0
cmp eax, 3
je 0x4f76a9
cmp eax, edi
je 0x4f76a9
mov eax, dword [ebx + 0x4e8]
cmp eax, edi
je 0x4f71a4
push edi
push eax
push 2
mov eax, ebx
call fcn.004e9b70
mov dword [ebx + 0x4e8], edi
mov eax, 2
cmp dword [ebx + 0x4a8], eax
je 0x4f75cf
push ebx
mov dword [ebx + 0x4a8], eax
call fcn.004efc80
push ebx
call fcn.004f3920
mov esi, ebx
mov byte [esp + 0x17], 1
call fcn.004f0de0
test al, al
je 0x4f7267
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.00404ee0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x304], 1
call fcn.00423020
mov ecx, edi
mov byte [esp + 0x2f8], 0
call fcn.004231c0
mov esi, dword [ebx + 0x4f4]
lea ecx, [esp + 0x5c]
call fcn.0045aee0
lea esi, [esp + 0x5c]
mov dword [esp + 0x2f8], 0xffffffff
call fcn.004593c0
xor edi, edi
mov eax, dword [ebx + 0x490]
mov dword [ebx + 0x4a0], 1
cmp eax, 7
je 0x4f75ac
cmp eax, 9
jne 0x4f759c
push edi
mov edi, 0x1000000
call fcn.0045baa0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebx + 0x454]
test eax, eax
je 0x4f72c8
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f72c8
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.00486000
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.004897f0
test eax, eax
je 0x4f7564
lea esi, [esp + 0x1c]
mov byte [ebx + 0x50c], 1
call fcn.0040e410
mov byte [esp + 0x2f8], 5
cmp dword [ebx + 0x4a4], 1
lea edi, [ebx + 0x54]
push 0
mov eax, edi
jne 0x4f73b6
mov ecx, str.IDS_ERR_REFERRAL_SUCCESS_2
lea esi, [esp + 0x44]
call fcn.004acda0
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.004acda0
mov ecx, dword [esp + 0x20]
mov edx, 8
mov byte [esp + 0x2f8], 7
cmp dword [ecx + 0x18], edx
jb 0x4f7381
mov ecx, dword [ecx + 4]
jmp 0x4f7384
add ecx, 4
cmp dword [eax + 0x18], edx
jb 0x4f738e
mov eax, dword [eax + 4]
jmp 0x4f7391
add eax, 4
push ecx
push eax
push str._s_n_s
lea edi, [esp + 0x28]
call fcn.004235e0
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.0040eb20
lea ecx, [esp + 0x40]
jmp 0x4f7466
mov ecx, str.IDS_ERR_REFERRAL_FALED_2
lea esi, [esp + 0x60]
call fcn.004acda0
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.004acda0
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.004acda0
mov ecx, dword [esp + 0x20]
mov esi, 8
mov byte [esp + 0x2f8], 0xa
cmp dword [ecx + 0x18], esi
jb 0x4f741b
mov ecx, dword [ecx + 4]
jmp 0x4f741e
add ecx, 4
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x18], esi
jb 0x4f742c
mov edx, dword [edx + 4]
jmp 0x4f742f
add edx, 4
cmp dword [eax + 0x18], esi
jb 0x4f7439
mov eax, dword [eax + 4]
jmp 0x4f743c
add eax, 4
push ecx
push edx
push eax
push str._s_n_s_n_s
lea edi, [esp + 0x2c]
call fcn.004235e0
add esp, 0x10
lea ecx, [esp + 0x40]
call fcn.0040eb20
lea ecx, [esp + 0x24]
call fcn.0040eb20
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2f8], 5
call fcn.0040eb20
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x88]
call fcn.00487f80
push str.IDS_LATER
xor al, al
or ecx, 0xffffffff
lea esi, [esp + 0x60]
call fcn.004acdf0
mov edi, 8
mov byte [esp + 0x2f8], 0xb
cmp dword [eax + 0x18], edi
jb 0x4f74af
mov eax, dword [eax + 4]
jmp 0x4f74b2
add eax, 4
push 1
push 2
mov ecx, eax
lea edx, [esp + 0x8c]
call fcn.004885f0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2f8], 5
call fcn.0040eb20
push str.IDS_INVITE
xor al, al
or ecx, 0xffffffff
lea esi, [esp + 0x60]
call fcn.004acdf0
mov byte [esp + 0x2f8], 0xc
cmp dword [eax + 0x18], edi
jb 0x4f74fa
mov eax, dword [eax + 4]
jmp 0x4f74fd
add eax, 4
push 1
push 1
mov ecx, eax
lea edx, [esp + 0x8c]
call fcn.004885f0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2f8], 5
call fcn.0040eb20
mov eax, 1
lea ecx, [esp + 0x84]
call fcn.004886d0
push 0
push 0
lea esi, [esp + 0x8c]
call fcn.00487e50
cmp eax, 1
jne 0x4f7553
push 0
push 6
push 2
mov eax, ebx
call fcn.004e9b70
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2f8], 4
call fcn.00423d60
mov ecx, 0x5cf320
mov dword [ebx + 0x4a4], 0
call fcn.0046b4c0
push 1
push ebx
call fcn.004f6270
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0x2fc], 0xffffffff
call fcn.004861d0
xor edi, edi
jmp 0x4f75ac
cmp eax, 1
setne al
movzx ecx, al
push ecx
push ebx
call fcn.004f6270
call fcn.00424330
mov esi, eax
call fcn.004246f0
mov dword [ebx + 0x4f0], eax
call fcn.004d7e30
inc eax
push eax
call fcn.004d7f00
add esp, 4
jmp 0x4f75e7
cmp byte [ebx + 0x498], 0
je 0x4f75e7
push 1
push ebx
call fcn.004f6270
mov byte [ebx + 0x498], 0
mov eax, dword [ebx + 0x490]
mov byte [ebx + 0x489], 0
mov byte [ebx + 0x49b], 0
cmp eax, 2
je 0x4f764e
cmp eax, 3
je 0x4f764e
cmp eax, 6
je 0x4f764e
cmp dword [ebx + 0x39c], edi
lea eax, [ebx + 0x39c]
je 0x4f7639
push edi
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
push 1
push 0xc350
call fcn.0046f8d0
call fcn.0046fb00
call fcn.0048b640
add esp, 8
push 1
mov ecx, ebx
mov dword [ebx + 0x490], edi
call fcn.004f4930
push ebx
call fcn.004efcc0
cmp dword [ebx + 0x4f8], 3
jne 0x4f76cb
push str.IDS_KEY_REGISTER_PROMPT_6
xor al, al
or ecx, 0xffffffff
lea esi, [esp + 0x60]
mov dword [ebx + 0x4f8], edi
call fcn.004acdf0
mov dword [esp + 0x2f8], 0xd
cmp dword [eax + 0x18], 8
jb 0x4f7686
mov eax, dword [eax + 4]
jmp 0x4f7689
add eax, 4
push eax
mov edi, ebx
call fcn.004f96b0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x2f8], 0xffffffff
call fcn.0040eb20
xor edi, edi
jmp 0x4f76cb
cmp dword [ebx + 0x3a0], edi
jne 0x4f76c5
cmp byte [ebx + 0x487], 0
setne dl
movzx eax, dl
push eax
push ebx
call fcn.004f4670
mov dword [ebx + 0x4a8], edi
cmp dword [ebx + 0x200], edi
jne 0x4f774a
mov eax, dword [ebx + 0x43c]
cmp eax, edi
je 0x4f76e4
mov byte [eax + 0x1e5], 1
mov edi, ebx
call fcn.004f6d90
test al, al
jne 0x4f7748
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x4e4]
cmp eax, 0x1f4
jae 0x4f771a
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 0x4f7748
mov eax, dword [ebx + 0x454]
test eax, eax
je 0x4f7748
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f7748
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 0x4f7770
cmp dword [ebx + 0x4ac], edi
jne 0x4f7770
lea esi, [ebx + 0x4dc]
mov dword [ebx + 0x4b4], 0xffffffff
call fcn.00423a80
cmp byte [esp + 0x17], 0
je 0x4f777d
push ebx
call fcn.004f8480
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.0053c15d
mov esp, ebp
pop ebp
ret 4