Function at 0x42bfe0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 0x2b0]
mov eax, dword [eax + 0x354]
push edi
xor edi, edi
lea ebx, [ecx + 0x294]
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
call fcn.0042b000
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x10]
cmp eax, edi
mov dword [esp + 0x3c], edx
je 0x42c036
mov dword [eax], edi
mov dword [esp + 0x4c], esi
mov ecx, 0x41
lea esi, [esp + 0x48]
lea edi, [esp + 0x150]
mov dword [esp + 0x48], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov edi, ebx
mov dword [esp + 0x14], edi
mov dword [ecx], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0xf], 1
mov al, byte [esp + 0xf]
test al, al
je 0x42c3ad
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x42c3c6
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x88]
test eax, eax
je 0x42c0d2
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x2a4]
mov eax, dword [eax + 0x2a0]
push edx
push eax
call fcn.0042b000
push edx
push eax
call fcn.0042b020
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
mov eax, dword [esi + 0x88]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x28]
jmp 0x42c105
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.0042b000
push edx
push eax
call fcn.0042b020
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x1b4]
sub eax, ecx
add esp, 0x10
test eax, eax
jle 0x42c3de
mov eax, dword [edx + 0x1a8]
test eax, eax
jne 0x42c1b3
lea edx, [esp + 0x40]
push edx
push 0
mov ecx, 0x41
lea esi, [esp + 0x158]
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x38]
push 0
lea eax, [esp + 0x54]
push eax
inc ecx
push ecx
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], 0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x42c184
test eax, eax
jne 0x42c1ab
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042b3f0
add esp, 4
test eax, eax
je 0x42c39a
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x1c], 0x38
call fcn.004548d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
push eax
push str.Transfer_aborted_due_to_select___error:__d
push ecx
call fcn.0042a840
add esp, 0xc
jmp 0x42c39a
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [edx + 0x1a8]
test eax, eax
je 0x42c204
mov ecx, dword [edx + 0x1ac]
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x1ac]
mov dword [esp + 0x24], ecx
mov edx, dword [edx + 0x1a8]
push edx
call fcn.00450572
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
add esp, 4
xor eax, eax
mov dword [esi + 0x1a8], eax
mov dword [esi + 0x1ac], eax
jmp 0x42c240
mov edx, dword [ebp + 8]
lea eax, [esp + 0x24]
push eax
mov eax, dword [edx]
mov ecx, 0x4000
sub ecx, eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [ebp + 0xc]
push edi
push eax
push ecx
call fcn.0042a6b0
add esp, 0x14
test eax, eax
jl 0x42c39e
je 0x42c23c
mov byte [esp + 0xf], 0
jmp 0x42c39e
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
test eax, eax
jg 0x42c26c
mov edx, dword [esp + 0x20]
push str.Connection_aborted
push edx
mov byte [esp + 0x17], 0
mov dword [esp + 0x24], 0x38
call fcn.0042a840
add esp, 8
jmp 0x42c39e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add edx, eax
test eax, eax
mov dword [ecx], edx
mov dword [esp + 0x28], 0
jle 0x42c39e
mov edx, dword [esp + 0x10]
mov cl, byte [edi]
inc edx
cmp cl, 0xa
mov dword [esp + 0x10], edx
jne 0x42c321
mov eax, dword [esp + 0x20]
mov cl, byte [eax + 0x154]
test cl, cl
je 0x42c2ba
mov ecx, edx
push ecx
push ebx
push 1
push eax
call fcn.0042a700
mov eax, dword [esp + 0x30]
add esp, 0x10
mov edx, dword [esp + 0x10]
push edx
push ebx
push 2
push eax
call fcn.0042a9d0
add esp, 0x10
test eax, eax
jne 0x42c3d7
cmp dword [esp + 0x10], 3
jle 0x42c312
movsx eax, byte [ebx]
push eax
call fcn.00453b59
add esp, 4
test eax, eax
je 0x42c312
movsx ecx, byte [ebx + 1]
push ecx
call fcn.00453b59
add esp, 4
test eax, eax
je 0x42c312
movsx edx, byte [ebx + 2]
push edx
call fcn.00453b59
add esp, 4
test eax, eax
je 0x42c312
cmp byte [ebx + 3], 0x20
je 0x42c339
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], 0
lea ebx, [edi + 1]
mov ecx, dword [esp + 0x28]
inc edi
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], ecx
jl 0x42c285
jmp 0x42c39e
cmp ebx, edi
mov eax, ebx
jae 0x42c34f
mov ecx, dword [esp + 0x2c]
sub ecx, ebx
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
cmp eax, edi
jb 0x42c345
mov ecx, dword [esp + 0x28]
mov byte [eax], 0
mov eax, dword [esp + 0x24]
inc ecx
cmp ecx, eax
mov byte [esp + 0xf], 0
lea ebx, [edi + 1]
je 0x42c39e
sub eax, ecx
push eax
mov dword [esi + 0x1ac], eax
call fcn.004504af
add esp, 4
test eax, eax
mov dword [esi + 0x1a8], eax
je 0x42c3f8
mov ecx, dword [esi + 0x1ac]
mov edi, eax
mov eax, ecx
shr ecx, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0x4000
jl 0x42c070
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x42c3c6
mov edx, dword [esp + 0x2c]
push edx
call fcn.0045334b
add esp, 4
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42c3d3
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Transfer_aborted_due_to_timeout
push esi
call fcn.0042a840
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret