Function at 0x42a540
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
sub esp, 0x2c
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 0xc], 0x10
addsd xmm0, qword [eax*8 + 0x5605e0]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
divsd xmm0, qword [0x55cb20]
push dword [esi + 0x10]
movsd qword [esp + 0x1c], xmm0
call dword [sym.imp.WS2_32.dll_accept]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x42a63e
call sub.MSVCR110.dll__errno
cmp dword [eax], 4
je 0x42a62a
call sub.MSVCR110.dll__errno
cmp dword [eax], 0x70
je 0x42a62a
call sub.MSVCR110.dll__errno
cmp dword [eax], 0xb
je 0x42a62a
call sub.MSVCR110.dll__errno
cmp dword [eax], 0x8c
je 0x42a62a
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2714
je 0x42a62a
call edi
cmp eax, 0x2733
je 0x42a62a
cmp dword [0x5cad00], 4
jl 0x42a62a
mov eax, dword [0x5cad04]
test eax, eax
jne 0x42a605
call sub.MSVCR110.dll___iob_func
add eax, 0x40
mov dword [0x5cad04], eax
push str.mongoose.c:2883
push str.__20s
push eax
call sub.MSVCR110.dll_fprintf
call sub.MSVCR110.dll__errno
push dword [eax]
push esi
push str._p:_failed_to_accept:__d
call fcn.00428f00
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0055423a
add esp, 0x2c
ret
push ebx
push esi
call fcn.0042c6d0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x42a66a
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0055423a
add esp, 0x2c
ret
cmp dword [0x5cad00], 4
jl 0x42a6c3
mov eax, dword [0x5cad04]
test eax, eax
jne 0x42a689
call sub.MSVCR110.dll___iob_func
add eax, 0x40
mov dword [0x5cad04], eax
push str.mongoose.c:2892
push str.__20s
push eax
call sub.MSVCR110.dll_fprintf
add esp, 0xc
push dword [esp + 0x1e]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push ebx
push str._p_conn_from__s:_d
call fcn.00428f00
add esp, 0x10
push ebp
push ebx
call fcn.0042e3d0
add esp, 8
lea eax, [esp + 0x2c]
push 2
push 1
push eax
push ebp
mov byte [esp + 0x3c], 0
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42a73d
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movsd xmm1, qword [0x5605c8]
addsd xmm0, qword [eax*8 + 0x5605e0]
divsd xmm0, qword [0x55cb20]
subsd xmm0, qword [esp + 0x14]
comisd xmm1, xmm0
jbe 0x42a73d
push 2
push 1
lea eax, [esp + 0x34]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x42a6f0
cmp edi, 1
jne 0x42a757
mov al, byte [esp + 0x2c]
cmp al, 0x20
jbe 0x42a74e
cmp al, 0x7f
jb 0x42a757
or dword [esi + 0x80], 0x10
jmp 0x42a75e
and dword [esi + 0x80], 0xffffffef
test byte [esi + 0x80], 0x10
je 0x42a7b8
mov eax, dword [esi + 0x48]
test eax, eax
je 0x42a7b8
push eax
call fcn.004de2d0
add esp, 4
mov dword [ebx + 0x44], eax
test eax, eax
je 0x42a78d
push ebp
push eax
call fcn.004dead0
add esp, 8
cmp eax, 1
je 0x42a7de
cmp dword [0x5cad00], 4
jl 0x42a7ad
push str.mongoose.c:2943
call fcn.00428ed0
push str.SSL_error
call fcn.00428f00
add esp, 8
push ebx
call fcn.0042acc0
add esp, 4
jmp 0x42a7de
movq xmm0, qword [esp + 0x1c]
lea eax, [ebx + 0x18]
push eax
push 1
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x2c]
push 0
push ebx
movq qword [eax + 8], xmm0
call fcn.0042ab70
add esp, 0x10
mov ecx, dword [esp + 0x38]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0055423a
add esp, 0x2c
ret