Function at 0x401c40
Capabilities:
Get socket status

Disassembly:
push 0xffffffffffffffff
push 0x404eeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a4
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x18], ebp
lea edi, [ebp + 0x10]
mov ecx, edi
call sub.mfc42.dll_CString::TrimLeft
mov ecx, edi
call sub.mfc42.dll_CString::TrimRight
mov eax, dword [edi]
mov ecx, dword [eax - 8]
cmp ecx, 1
jl 0x401eec
mov esi, 0x407098
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401cb1
test cl, cl
je 0x401cad
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401cb1
add eax, 2
add esi, 2
test cl, cl
jne 0x401c89
xor eax, eax
jmp 0x401cb6
sbb eax, eax
sbb eax, 0xffffffff
xor esi, esi
cmp eax, esi
je 0x401eec
mov eax, dword [ebp + 0x20]
cmp dword [eax - 8], 1
jl 0x401eec
lea ecx, [esp + 0x10]
call fcn.004024a0
push esi
push 0x3f
push 1
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x4cc], esi
call fcn.004024e0
test eax, eax
je 0x401ed8
mov eax, dword [edi]
push 0x1b9e
push eax
lea ecx, [esp + 0x18]
call fcn.00402510
test eax, eax
je 0x401ed8
mov ecx, 0x22
xor eax, eax
lea edi, [esp + 0x428]
mov bl, byte [esp + 0x4c4]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x24]
mov edx, 0x89
rep stosd dword es:[edi], eax
mov byte [esp + 0x30], bl
mov ebx, dword [esp + 0x18]
mov ebp, 1
mov dword [esp + 0x24], edx
mov eax, dword [ebx + 4]
mov dword [esp + 0x28], esi
push eax
mov dword [esp + 0x30], ebp
call sub.wsock32.dll_inet_addr
mov dword [esp + 0x31], eax
mov edi, 0x4070c4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, 0x15
mov eax, ecx
test eax, eax
mov dword [esp + 0x35], eax
jle 0x401d95
mov edx, ecx
mov esi, 0x4070c4
lea edi, [esp + 0x39]
lea ebp, [eax + 0x15]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x20]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebp, 4
mov eax, ecx
mov dword [esp + ebp + 0x20], eax
test eax, eax
jle 0x401dc5
mov edx, ecx
lea edi, [esp + ebp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebp, eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + ebp + 0x24], 6
add ebp, 4
lea eax, [ebx + 0x28]
mov bx, word [ebx + 8]
lea ecx, [esp + ebp + 0x24]
add ebp, 6
mov edx, dword [eax]
add ebp, 4
mov dword [ecx], edx
add ebp, 2
mov ax, word [eax + 4]
push 0
mov word [ecx + 4], ax
mov dword [esp + ebp + 0x22], 2
mov word [esp + ebp + 0x26], bx
lea ecx, [esp + 0x28]
push ebp
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebp
call fcn.00402680
cmp eax, ebp
jne 0x401ecf
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x32c], eax
push 0
lea ecx, [esp + 0x32c]
push 0
inc eax
push ecx
push eax
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], 0
mov dword [esp + 0x338], 1
call sub.wsock32.dll_select
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x324]
push edx
push eax
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
je 0x401ecf
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x224]
push eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x228]
push 0x100
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402560
cmp eax, 1
jl 0x401ecf
cmp dword [esp + 0x224], 0x11
jb 0x401ecf
cmp byte [esp + 0x230], 1
jne 0x401ecf
lea ecx, [esp + 0x10]
call fcn.00402770
lea ecx, [esp + 0x10]
mov dword [esp + 0x4bc], 0xffffffff
call fcn.004024d0
mov al, 1
jmp 0x401eee
lea ecx, [esp + 0x10]
call fcn.00402770
lea ecx, [esp + 0x10]
mov dword [esp + 0x4bc], 0xffffffff
call fcn.004024d0
xor al, al
mov ecx, dword [esp + 0x4b4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4b0
ret 4