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

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [eax + 0x360]
push ebp
push esi
mov esi, dword [eax]
push edi
mov dword [esp + 0x10], 0
call fcn.004b55c0
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
cmp dword [ebx], 3
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
je 0x4a8654
lea ecx, [ecx]
cmp dword [esp + 0x10], 0
jne 0x4a8654
mov ecx, dword [ebx + 0x1c]
imul ecx, ecx, 0x3e8
cmp dword [esi + 0x2d0], 0
je 0x4a8479
mov edi, dword [esi + 0x1c0]
mov eax, dword [esi + 0x1c4]
mov edx, edi
or edx, eax
je 0x4a84c1
mov edx, dword [esi + 0x45c]
cmp edx, eax
mov ebp, dword [esi + 0x458]
jl 0x4a84c1
jg 0x4a8459
cmp ebp, edi
jbe 0x4a84c1
mov ecx, dword [ebx + 0x154]
push ecx
push edx
push ebp
push eax
mov eax, dword [esi + 0x1c0]
push eax
or edi, 0xffffffff
call fcn.004985d0
mov ecx, eax
add esp, 0x14
jmp 0x4a84c4
mov edi, dword [esi + 0x1c8]
mov eax, dword [esi + 0x1cc]
mov edx, edi
or edx, eax
je 0x4a84c1
mov edx, dword [esi + 0x454]
cmp edx, eax
mov ebp, dword [esi + 0x450]
jl 0x4a84c1
jg 0x4a84a1
cmp ebp, edi
jbe 0x4a84c1
mov ecx, dword [ebx + 0x154]
push ecx
push edx
push ebp
push eax
mov eax, dword [esi + 0x1c8]
push eax
or edi, 0xffffffff
call fcn.004985d0
mov ecx, eax
add esp, 0x14
jmp 0x4a84c4
mov edi, dword [ebx + 0x14]
cmp dword [esi + 0x19c], 0
je 0x4a8504
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x5c]
push edx
mov edx, dword [esi + 0x58]
push eax
push ecx
push edx
call fcn.004b55f0
mov ecx, dword [esi + 0x19c]
sub ecx, eax
mov eax, dword [ebx + 0x1c]
imul eax, eax, 0x3e8
add esp, 0x10
cmp ecx, eax
jle 0x4a84fe
mov ecx, eax
jmp 0x4a8504
test ecx, ecx
jge 0x4a8504
xor ecx, ecx
push ecx
push 0xffffffffffffffff
push edi
call fcn.004b3ad0
mov edi, eax
call fcn.004b55c0
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x54]
push eax
mov eax, dword [esi + 0x58]
push ecx
push edx
push eax
mov dword [esi + 0x5c], edx
call fcn.004b55f0
mov ebp, dword [esp + 0x44]
add esp, 0x1c
cmp eax, dword [esi + 0x19c]
jl 0x4a8558
push ebp
call fcn.004a2830
add esp, 4
test eax, eax
jne 0x4a869f
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edx
cmp edi, 0xffffffff
jne 0x4a8585
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebp
call fcn.00490120
push eax
push 0x589288
push esi
call fcn.0049af20
add esp, 0x14
mov dword [ebx + 0xc], 5
jmp 0x4a863d
test edi, edi
jne 0x4a85f9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x5c]
mov edi, dword [ebx + 0x1c]
push eax
imul edi, edi, 0x3e8
mov eax, dword [esi + 0x58]
push ecx
push edx
push eax
call fcn.004b55f0
add esp, 0x10
cmp eax, edi
jle 0x4a864b
lea eax, [esp + 0x1c]
mov dword [ebx + 0xc], 7
mov edi, dword [ebp + 0x360]
push eax
call fcn.005292a4
mov ebp, dword [esp + 0x24]
add esp, 4
cmp ebp, dword [edi + 0x34]
jl 0x4a867b
jg 0x4a85ea
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [edi + 0x30]
jbe 0x4a867b
mov dword [edi + 8], 0xffffff9d
mov dword [edi], 3
jmp 0x4a863d
push ebp
call fcn.004a81b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a8615
call fcn.004b55c0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4a8627
mov ecx, dword [esi + 0x38]
mov dword [eax], ecx
mov edx, dword [esi + 0x3c]
mov dword [eax + 4], edx
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4a8639
mov ecx, dword [esi + 0x40]
mov dword [eax], ecx
mov edx, dword [esi + 0x44]
mov dword [eax + 4], edx
test edi, edi
jne 0x4a86b8
mov ecx, dword [ebx + 0xc]
mov eax, ebx
call fcn.004a8130
mov dword [esp + 0x10], eax
cmp dword [ebx], 3
jne 0x4a8410
mov edx, dword [esp + 0x28]
push 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.00499370
mov eax, dword [esp + 0x30]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [edi + 0x1c]
cdq
add eax, dword [edi + 0x38]
lea ecx, [edi + 0x38]
adc edx, dword [ecx + 4]
cmp ebp, edx
jl 0x4a863d
jg 0x4a8694
cmp dword [esp + 0x1c], eax
jbe 0x4a863d
push ecx
call fcn.005292a4
add esp, 4
jmp 0x4a863d
mov ecx, 5
mov eax, ebx
call fcn.004a8130
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x14
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret