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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
push edi
mov edi, dword [eax + 0x3d0]
mov dword [ebp - 4], 0
call fcn.004bbd30
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
cmp dword [edi], 3
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
je 0x4c2018
jmp 0x4c1e80
cmp dword [ebp - 4], 0
jne 0x4c2018
mov ecx, dword [edi + 0x1c]
imul ecx, ecx, 0x3e8
cmp dword [esi + 0x2dc], 0
je 0x4c1eec
mov ebx, dword [esi + 0x1c0]
mov eax, dword [esi + 0x1c4]
mov edx, ebx
or edx, eax
je 0x4c1f38
mov edx, dword [esi + 0x488]
cmp dword [esi + 0x48c], eax
jl 0x4c1f38
jg 0x4c1ec6
cmp edx, ebx
jbe 0x4c1f38
mov ecx, dword [edi + 0x154]
push ecx
mov ecx, dword [esi + 0x48c]
push ecx
push edx
push eax
mov eax, dword [esi + 0x1c0]
push eax
or ebx, 0xffffffff
call fcn.004b3a40
mov ecx, eax
add esp, 0x14
jmp 0x4c1f3b
mov ebx, dword [esi + 0x1c8]
mov eax, dword [esi + 0x1cc]
mov edx, ebx
or edx, eax
je 0x4c1f38
mov edx, dword [esi + 0x480]
cmp dword [esi + 0x484], eax
jl 0x4c1f38
jg 0x4c1f12
cmp edx, ebx
jbe 0x4c1f38
mov ecx, dword [edi + 0x154]
push ecx
mov ecx, dword [esi + 0x484]
push ecx
push edx
push eax
mov eax, dword [esi + 0x1c8]
push eax
or ebx, 0xffffffff
call fcn.004b3a40
mov ecx, eax
add esp, 0x14
jmp 0x4c1f3b
mov ebx, dword [edi + 0x14]
cmp dword [esi + 0x19c], 0
je 0x4c1f7b
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.004bbd60
mov ecx, dword [esi + 0x19c]
sub ecx, eax
mov eax, dword [edi + 0x1c]
imul eax, eax, 0x3e8
add esp, 0x10
cmp ecx, eax
jle 0x4c1f75
mov ecx, eax
jmp 0x4c1f7b
test ecx, ecx
jns 0x4c1f7b
xor ecx, ecx
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004cdc20
mov ebx, eax
call fcn.004bbd30
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.004bbd60
add esp, 0x20
cmp eax, dword [esi + 0x19c]
jl 0x4c1fd0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004cf6e0
add esp, 4
test eax, eax
jne 0x4c20c6
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
cmp ebx, 0xffffffff
jne 0x4c203c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.004b9360
push eax
push 0x508454
push esi
call fcn.004b6c40
add esp, 0x14
mov dword [edi + 0xc], 5
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4c2035
mov ecx, dword [edi + 0xc]
mov eax, edi
call fcn.004c1b90
mov dword [ebp - 4], eax
cmp dword [edi], 3
jne 0x4c1e80
mov eax, dword [ebp + 8]
push 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call fcn.004b48f0
mov eax, dword [ebp - 4]
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x4c207b
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x5c]
mov ebx, dword [edi + 0x1c]
push edx
imul ebx, ebx, 0x3e8
mov edx, dword [esi + 0x58]
push eax
push ecx
push edx
call fcn.004bbd60
add esp, 0x10
cmp eax, ebx
jle 0x4c200f
mov eax, dword [ebp + 8]
push 0
mov dword [edi + 0xc], 7
call fcn.004c1690
add esp, 4
jmp 0x4c2002
mov eax, dword [ebp + 8]
push eax
call fcn.004c1c10
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c2099
call fcn.004bbd30
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4c20ab
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 0x4c1ffb
mov ecx, dword [esi + 0x40]
mov dword [eax], ecx
mov edx, dword [esi + 0x44]
mov dword [eax + 4], edx
jmp 0x4c1ffb
mov ecx, 5
mov eax, edi
call fcn.004c1b90
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret