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

Disassembly:
sub esp, 0x21c
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
mov edx, dword [esp + 0x224]
mov ecx, dword [esp + 0x22c]
push ebx
mov ebx, dword [esp + 0x22c]
push ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x238]
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
test edx, edx
jne 0x402e24
mov edx, 0x57bd68
test ebx, ebx
jne 0x402e34
mov dword [esp + 0x14], 0x57bd68
mov ebx, dword [esp + 0x14]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402e40
sub eax, esi
sar eax, 1
cmp eax, 0xff
jbe 0x402e5d
mov edi, 0xff
jmp 0x402e73
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402e62
sub eax, esi
sar eax, 1
mov edi, eax
mov eax, ebx
lea esi, [eax + 2]
jmp 0x402e80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402e80
sub eax, esi
sar eax, 1
cmp eax, 0xff
jbe 0x402e9d
mov ebp, 0xff
jmp 0x402eb3
mov eax, ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402ea2
sub eax, esi
sar eax, 1
mov ebp, eax
mov esi, dword [esp + 0x248]
push 0
push 0
push 0xff
lea ecx, [esp + 0x34]
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg esi
push edx
sbb esi, esi
push 0
and esi, 0xfde9
push esi
call edi
push 0
push 0
push 0xff
lea edx, [esp + 0x134]
push edx
mov ebx, eax
mov eax, dword [esp + 0x24]
push ebp
push eax
push 0
push esi
mov byte [esp + ebx + 0x48], 0
call edi
lea ecx, [eax + ebx + 2]
push ecx
mov dword [esp + 0x14], eax
mov byte [esp + eax + 0x12c], 0
call fcn.004ff272
mov dl, byte [esp + 0x14]
mov esi, eax
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esi + 2]
mov byte [esi], bl
push ecx
mov dword [esp + 0x24], esi
mov byte [esi + 1], dl
call fcn.005402a0
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x13c]
push eax
lea ecx, [ebx + esi + 2]
push ecx
call fcn.005402a0
mov edx, dword [esp + 0x2c]
lea eax, [ebx + edx + 2]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00402d00
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x402f7d
mov edx, dword [esp + 0x14]
push edx
call fcn.004ff267
add esp, 4
xor eax, eax
jmp 0x4030d4
mov eax, dword [str.QV_2n]
push 5
push eax
call fcn.00409600
mov eax, esi
cdq
and edx, 3
add eax, edx
mov ebp, eax
sar ebp, 2
mov eax, esi
add esp, 8
dec ebp
and eax, reloc.WSOCK32.dll_closesocket
jns 0x402fa9
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jle 0x402ff7
mov edi, 8
sub edi, eax
lea eax, [edi + esi]
push eax
mov dword [esp + 0x14], eax
call fcn.004ff272
mov ecx, dword [esp + 0x18]
push esi
mov ebx, eax
push ecx
push ebx
call fcn.005402a0
mov edx, dword [esp + 0x24]
push edx
call fcn.004ff267
add esp, 0x14
mov dword [esp + 0x14], ebx
test edi, edi
jle 0x402ff6
push edi
add esi, ebx
push 0
push esi
call fcn.00540610
mov esi, dword [esp + 0x1c]
add esp, 0xc
inc ebp
lea esi, [esi + esi - 4]
push esi
mov dword [esp + 0x20], esi
call fcn.004ff272
mov edi, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [edi]
add esp, 4
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ebp, ebp
jle 0x40304a
lea esi, [ebx + 4]
add edi, 4
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi], eax
mov ecx, dword [edi]
add esi, 4
mov dword [esi], ecx
add esi, 4
add edi, 4
sub dword [esp + 0x10], 1
jne 0x403026
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
push edi
call fcn.004ff267
add esp, 4
lea edi, [ebx + 4]
test ebp, ebp
jle 0x403075
lea ebx, [ebx]
lea edx, [edi + 4]
push edx
push edi
call fcn.004094c0
add esp, 8
add edi, 8
sub ebp, 1
jne 0x403060
cmp dword [esp + 0x244], 0
je 0x40308e
mov eax, str.Firewall_Login
mov dword [esp + 0x10], str.Firewall_Login_Length
jmp 0x40309b
mov eax, str.Login
mov dword [esp + 0x10], 0x56f3dc
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push esi
push ebx
push eax
mov eax, dword [esp + 0x24]
push edi
push eax
push ebp
call fcn.0044f620
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
push 0
push esi
push ecx
push edi
push edx
push ebp
call fcn.0044f590
push ebx
call fcn.004ff267
add esp, 0x34
mov eax, 1
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053fa67
add esp, 0x21c
ret