Function at 0x424090
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.00418d70
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 0x424268
jmp 0x4240d0
cmp dword [ebp - 4], 0
jne 0x424268
mov ecx, dword [edi + 0x1c]
imul ecx, ecx, 0x3e8
cmp dword [esi + 0x2dc], 0
je 0x42413c
mov ebx, dword [esi + 0x1c0]
mov eax, dword [esi + 0x1c4]
mov edx, ebx
or edx, eax
je 0x424188
mov edx, dword [esi + 0x488]
cmp dword [esi + 0x48c], eax
jl 0x424188
jg 0x424116
cmp edx, ebx
jbe 0x424188
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.00413f80
mov ecx, eax
add esp, 0x14
jmp 0x42418b
mov ebx, dword [esi + 0x1c8]
mov eax, dword [esi + 0x1cc]
mov edx, ebx
or edx, eax
je 0x424188
mov edx, dword [esi + 0x480]
cmp dword [esi + 0x484], eax
jl 0x424188
jg 0x424162
cmp edx, ebx
jbe 0x424188
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.00413f80
mov ecx, eax
add esp, 0x14
jmp 0x42418b
mov ebx, dword [edi + 0x14]
cmp dword [esi + 0x19c], 0
je 0x4241cb
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.00418da0
mov ecx, dword [esi + 0x19c]
sub ecx, eax
mov eax, dword [edi + 0x1c]
imul eax, eax, 0x3e8
add esp, 0x10
cmp ecx, eax
jle 0x4241c5
mov ecx, eax
jmp 0x4241cb
test ecx, ecx
jns 0x4241cb
xor ecx, ecx
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0042c1d0
mov ebx, eax
call fcn.00418d70
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.00418da0
add esp, 0x20
cmp eax, dword [esi + 0x19c]
jl 0x424220
mov ecx, dword [ebp + 8]
push ecx
call fcn.004193c0
add esp, 4
test eax, eax
jne 0x424316
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
cmp ebx, 0xffffffff
jne 0x42428c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0041e3f0
push eax
push 0x455ba4
push esi
call fcn.00417080
add esp, 0x14
mov dword [edi + 0xc], 5
mov eax, dword [ebp - 4]
test eax, eax
jne 0x424285
mov ecx, dword [edi + 0xc]
mov eax, edi
call fcn.00423de0
mov dword [ebp - 4], eax
cmp dword [edi], 3
jne 0x4240d0
mov eax, dword [ebp + 8]
push 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call fcn.00414da0
mov eax, dword [ebp - 4]
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x4242cb
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.00418da0
add esp, 0x10
cmp eax, ebx
jle 0x42425f
mov eax, dword [ebp + 8]
push 0
mov dword [edi + 0xc], 7
call fcn.004238e0
add esp, 4
jmp 0x424252
mov eax, dword [ebp + 8]
push eax
call fcn.00423e60
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x4242e9
call fcn.00418d70
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4242fb
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 0x42424b
mov ecx, dword [esi + 0x40]
mov dword [eax], ecx
mov edx, dword [esi + 0x44]
mov dword [eax + 4], edx
jmp 0x42424b
mov ecx, 5
mov eax, edi
call fcn.00423de0
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret