Function at 0x412070
Capabilities:
Check for time delay via gettickcount
Set socket configuration

Disassembly:
sub esp, 0x28
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, dword [esp + 0x38]
push edi
push esi
mov edi, 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0x10
call fcn.004110d0
add esp, 0xc
test eax, eax
jne 0x41231f
mov eax, dword [esp + 0xc]
push ebx
push eax
lea ecx, [esp + 0x24]
push 0
push ecx
call sub.MSVCR90.dll_memset
mov ebx, dword [esp + 0x48]
add esp, 0xc
test ebx, ebx
je 0x4120d5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
cmp dword [0x67f900], 0
jne 0x412102
push str.localhost
push 0x2b0e
call fcn.004073f0
add esp, 8
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00586584
add esp, 0x28
ret
push ebp
mov dword [esp + 0x20], edi
call fcn.00405920
mov ebp, dword [esp + 0x3c]
test al, 2
je 0x41212d
lea edx, [esp + 0x20]
push edx
push 0x8004667e
push ebp
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x4121e6
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebp
call sub.WSOCK32.dll_accept
cmp eax, 0xffffffff
jne 0x4121b3
call fcn.00410c40
xor edx, edx
cmp dword [0x67f860], 0x2733
setne dl
cmp dword [0x67f900], 0
mov edi, edx
je 0x41216b
push 1
call fcn.00574330
add esp, 4
xor eax, eax
mov dword [0x67f860], eax
mov dword [0x67f864], eax
cmp edi, eax
jne 0x41220d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ebx, ebx
jbe 0x412199
sub eax, dword [esp + 0x10]
mov ecx, ebx
imul ecx, ecx, 0x3e8
cmp eax, ecx
ja 0x412206
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push ebp
call sub.WSOCK32.dll_accept
cmp eax, 0xffffffff
je 0x412142
mov edi, 1
mov dword [esi], eax
mov dword [esi + 8], edi
mov dword [esp + 0x10], 0
call fcn.00405920
test al, 2
je 0x41228c
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
push ebp
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x41228c
push 0x708
call fcn.004073f0
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00586584
add esp, 0x28
ret
push 0x2b16
jmp 0x412264
call fcn.00410c40
cmp dword [0x67f900], 0
jne 0x41224d
push str.localhost
push 0x2b0e
call fcn.004073f0
add esp, 8
push esi
mov edi, eax
call fcn.00411c20
add esp, 4
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00586584
add esp, 0x28
ret
push 0
call fcn.004d0a80
add esp, 4
test eax, eax
jne 0x41225f
test ebx, ebx
jne 0x412206
push 0x708
call fcn.004073f0
add esp, 4
push esi
mov edi, eax
call fcn.00411c20
add esp, 4
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00586584
add esp, 0x28
ret
mov eax, dword [esi]
push 4
lea edx, [esp + 0x1c]
push edx
push 8
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
je 0x4122be
mov edx, dword [esi]
push 4
lea ecx, [esp + 0x20]
push ecx
push edi
push 6
push edx
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x4122f6
mov eax, dword [esi]
push 2
push eax
call sub.WSOCK32.dll_shutdown
mov eax, dword [esi]
push eax
call fcn.00410d10
push 0x726
mov dword [esi], 0xffffffff
call fcn.004073f0
add esp, 8
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00586584
add esp, 0x28
ret
cmp dword [esp + 0x48], 0
mov ecx, dword [esi]
mov dword [esi + 4], ecx
je 0x412316
lea edx, [esp + 0x28]
push 4
push edx
mov edi, 0x67f878
call fcn.00410f60
add esp, 8
call fcn.0056c2d0
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.00586584
add esp, 0x28
ret