Function at 0x10001e40
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x1ac
mov edx, dword [esp + 0x1b0]
push ebx
push esi
add edx, 0x418
mov dword [esp + 0x20], eax
push edi
mov eax, dword [esp + 0x1c8]
push ebp
mov dword [esp + 0x20], edx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
cmp dword [esp + 0x1d0], 0
je 0x10001eae
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x13c]
push eax
push str.Range:_bytes_d__r_n
push ecx
call dword [sym.imp.USER32.dll_Ordinal_728]
lea ecx, [esp + 0x148]
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleMenuClose]
push ecx
push eax
call esi
jmp 0x10001eb4
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleMenuClose]
mov eax, dword [esp + 0x20]
push 0x1000a234
push eax
call esi
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c0]
push eax
push edx
call fcn.10001210
cmp dword [esp + 0x1d8], 1
ja 0x10001ee7
mov dword [esp + 0x1d8], 1
mov eax, dword [esp + 0x1d8]
shl eax, 3
sub eax, dword [esp + 0x1d8]
shl eax, 2
mov dword [esp + 0x14], eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
mov edx, dword [esp + 0x14]
mov edi, eax
mov ecx, edx
mov dword [esp + 0x10], eax
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x1d8]
mov eax, dword [esp + 0x1c0]
mov ebx, dword [esp + 0x10]
mov dword [eax + 0x2440], ecx
mov ecx, dword [esp + 0x20]
push ebx
mov edx, dword [esp + 0x1c8]
push ecx
mov dword [eax + 0x2444], ebx
mov eax, dword [esp + 0x1d0]
push eax
push edx
call fcn.100018b0
mov ebp, eax
mov ecx, dword [esp + 0x10]
test ebp, ebp
jne 0x10001f73
push ecx
call dword [sym.imp.KERNEL32.dll_GetTapeStatus]
xor eax, eax
jmp 0x100020cb
mov dword [ecx], ebp
push 0x2000
mov eax, dword [esp + 0x2c]
push 0x40
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1dc]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 0
mov dword [esp + 0x18], 0
lea eax, [esp + 0x38]
push 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], ebp
push 0
inc dword [esp + 0x40]
push 0
push eax
push 1
call dword [sym.imp.WSOCK32.dll_select]
mov ebx, eax
test ebx, ebx
jle 0x1000208a
lea eax, [esp + 0x38]
push eax
push ebp
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x1000208a
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0x4004667f
push ebp
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
test eax, eax
jne 0x100020a4
cmp dword [esp + 0x14], 0x2000
jbe 0x10002032
mov dword [esp + 0x14], 0x2000
mov eax, dword [esp + 0x14]
push 0
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebp
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
mov ebx, eax
je 0x100020a4
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx + 0x14]
test edi, edi
je 0x1000208a
add edi, dword [ecx + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, eax
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 [esp + 0x10]
mov eax, dword [ecx + 0x10]
add eax, ebx
push eax
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 0x14]
push eax
call fcn.10001740
mov dword [esp + 0x14], eax
test eax, eax
jne 0x100020d8
cmp ebx, 0xffffffff
je 0x100020a4
mov edx, dword [esp + 0x1c0]
cmp dword [edx + 4], 0
jne 0x100020a4
test ebx, ebx
jne 0x10001fbf
push ebp
call dword [sym.imp.WSOCK32.dll_closesocket]
mov edx, dword [esp + 0x1c0]
mov ecx, dword [esp + 0x10]
push ecx
mov dword [edx + 0x2444], 0
call dword [sym.imp.KERNEL32.dll_GetTapeStatus]
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1ac
ret 0x2c
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
mov eax, dword [edx + 0x14]
lea ecx, [esp + 0x30]
push eax
mov edx, dword [esp + 0x1cc]
push ecx
push edx
call fcn.10001240
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c0]
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [edx + 8], ecx
je 0x100020a4
cmp eax, 0xffffffff
je 0x100020a4
mov eax, dword [esp + 0x1d0]
cmp dword [esp + 0x28], eax
je 0x10002131
mov dword [esp + 0x1c], 0
jmp 0x100020a4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1e4]
mov edx, dword [esp + 0x1c0]
push eax
push ecx
push edx
call fcn.10001770
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 4]
add edi, edx
mov esi, dword [ecx + 0x10]
sub esi, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10002174
lea ecx, [edx + esi]
cmp ecx, eax
jbe 0x10002174
mov esi, eax
sub esi, edx
mov ecx, dword [esp + 0x10]
push esi
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + 0x14]
add eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1e0]
push eax
push edi
mov eax, dword [esp + 0x1cc]
push ecx
push edx
push eax
call fcn.10001690
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
add edx, esi
mov dword [ecx + 8], edx
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x100021c0
cmp edx, eax
jb 0x100021c0
mov dword [esp + 0x1c], 0
jmp 0x100020a4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetTapeStatus]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c0]
mov dword [ecx + 0x14], 0
cmp dword [esp + 0x18], 0
mov eax, dword [edx]
mov dword [esp + 0x34], eax
jne 0x100021f5
mov dword [esp + 0x34], 0
cmp dword [esp + 0x34], 0
je 0x10002273
mov edi, 1
cmp dword [esp + 0x1d8], edi
jbe 0x1000227e
mov ebx, dword [esp + 0x10]
xor esi, esi
add ebx, 0x20
mov eax, dword [esp + 0x18]
sub edx, edx
push 0x2000
add ebx, 0x1c
imul eax, edi
push 0x40
inc edi
div dword [esp + 0x1e0]
mov dword [esp + 0x30], eax
mov dword [ebx - 0x1c], eax
mov dword [ebx - 0x18], esi
mov dword [ebx - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
mov ecx, dword [esp + 0x1cc]
mov edx, dword [esp + 0x1c8]
push ecx
mov dword [ebx - 0xc], eax
mov eax, dword [esp + 0x1c8]
push edx
push eax
lea ecx, [ebx - 0x20]
push ecx
mov dword [ebx - 8], esi
call fcn.10001990
cmp edi, dword [esp + 0x1d8]
jb 0x10002213
jmp 0x1000227e
mov dword [esp + 0x1d8], 1
call dword [sym.imp.WINMM.dll_waveInReset]
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], eax
cmp dword [esp + 0x34], 0
je 0x100022bd
cmp dword [esp + 0x1d8], 0
je 0x100022bd
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1d8]
cmp dword [esi], 0
jne 0x100022b7
push esi
call fcn.10001a80
add esi, 0x1c
dec edi
jne 0x100022ac
mov dword [esp + 0x38], 0
cmp dword [esp + 0x1d8], 0
je 0x1000231b
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x1d8]
xor ecx, ecx
mov esi, 0x40
mov ebp, dword [edi]
test ebp, ebp
je 0x10002315
xor ebx, ebx
cmp dword [esp + 0x38], ecx
jbe 0x10002301
lea edx, [esp + 0x3c]
cmp dword [edx], ebp
je 0x10002301
add edx, 4
inc ebx
cmp ebx, dword [esp + 0x38]
jb 0x100022f3
cmp ebx, dword [esp + 0x38]
jne 0x10002315
cmp dword [esp + 0x38], esi
jae 0x10002315
mov dword [esp + ebx*4 + 0x3c], ebp
inc dword [esp + 0x38]
add edi, 0x1c
dec eax
jne 0x100022e1
lea eax, [esp + 0x38]
push 0
mov ecx, dword [esp + 0x1dc]
push 0
push 0
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x10002617
test eax, eax
jle 0x10002617
cmp dword [esp + 0x1d8], 0
je 0x10002572
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x1d8]
add ebx, 8
mov dword [esp + 0x1c], eax
mov eax, dword [ebx - 8]
test eax, eax
je 0x10002565
lea ecx, [esp + 0x38]
push ecx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x10002565
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
mov ecx, dword [ebx - 8]
push eax
push 0x4004667f
push ecx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1000254f
cmp dword [esp + 0x14], 0x2000
jbe 0x100023ba
mov dword [esp + 0x14], 0x2000
mov eax, dword [esp + 0x14]
push 0
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov edx, dword [ebx - 8]
push edx
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x100023e0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
jmp 0x1000254f
test eax, eax
jne 0x100023ff
cmp dword [esp + 0x18], 0
jne 0x1000254f
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov dword [ebx + 4], eax
jmp 0x1000254f
mov ebp, eax
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x10002504
add edi, dword [ebx + 8]
mov esi, dword [esp + 0x20]
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 8]
add eax, ebp
push eax
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 0xc]
push ecx
call fcn.10001740
mov dword [esp + 0x14], eax
test eax, eax
je 0x10002565
push 0
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x1c8]
push ecx
push edx
push eax
call fcn.10001240
test eax, eax
je 0x1000254f
mov edx, dword [ebx]
mov edi, dword [ebx - 4]
add edi, edx
cmp edi, dword [esp + 0x28]
je 0x100024a3
mov eax, dword [esp + 0x1e0]
cmp dword [ebx + 0x10], eax
jae 0x1000254f
mov eax, dword [esp + 0x1cc]
mov ecx, dword [esp + 0x1c8]
mov edx, dword [esp + 0x1c4]
push eax
push ecx
lea eax, [ebx - 8]
push edx
push eax
call fcn.10001c70
jmp 0x10002565
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
sub esi, dword [esp + 0x14]
test eax, eax
je 0x100024bc
lea ecx, [edx + esi]
cmp ecx, eax
jbe 0x100024bc
mov esi, eax
sub esi, edx
push esi
mov eax, dword [ebx + 0xc]
add eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1e0]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x1c8]
push edi
push ecx
push edx
push eax
call fcn.10001690
mov ecx, dword [ebx]
add ecx, esi
mov dword [ebx], ecx
mov eax, dword [ebx + 4]
test eax, eax
je 0x100024f1
cmp ecx, eax
jae 0x1000254f
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTapeStatus]
mov dword [ebx + 0xc], 0
jmp 0x1000255d
mov esi, dword [ebx]
mov edx, dword [ebx - 4]
add edx, esi
mov eax, dword [ebx + 4]
test eax, eax
je 0x1000251d
lea ecx, [esi + ebp]
cmp ecx, eax
jbe 0x1000251d
mov ebp, eax
sub ebp, esi
mov eax, dword [esp + 0x20]
push ebp
mov ecx, dword [esp + 0x1e0]
push eax
mov eax, dword [esp + 0x1c8]
push edx
mov edx, dword [esp + 0x38]
push ecx
push edx
push eax
call fcn.10001690
mov eax, dword [ebx]
add eax, ebp
mov dword [ebx], eax
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x10002565
cmp eax, ecx
jb 0x10002565
mov eax, dword [esp + 0x18]
lea ecx, [ebx - 8]
push eax
push ecx
call fcn.10001bb0
mov dword [esp + 0x24], 1
add ebx, 0x1c
dec dword [esp + 0x1c]
jne 0x10002365
cmp dword [esp + 0x24], 0
je 0x100025c0
mov eax, dword [esp + 0x1d8]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.10001e10
add esp, 8
test eax, eax
je 0x100025c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1d8]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.10001ca0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1d8]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call fcn.10001b10
mov esi, 1
xor ecx, ecx
mov dword [esp + 0x24], 0
cmp dword [esp + 0x1d8], ecx
je 0x100025f2
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
jne 0x100025f0
add eax, 0x1c
inc ecx
cmp ecx, dword [esp + 0x1d8]
jb 0x100025dc
jmp 0x100025f2
xor esi, esi
call dword [sym.imp.WINMM.dll_waveInReset]
sub eax, dword [esp + 0x30]
mov edx, dword [esp + 0x1c0]
cmp dword [edx + 4], 0
mov dword [edx + 0x2454], eax
jne 0x10002617
test esi, esi
je 0x10002290
cmp dword [esp + 0x1d8], 0
je 0x1000263d
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1d8]
mov eax, dword [esp + 0x18]
push eax
push esi
add esi, 0x1c
call fcn.10001bb0
dec edi
jne 0x1000262c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1d8]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.10001dd0
mov dword [esp + 0x30], eax
test eax, eax
mov eax, dword [esp + 0x1e8]
je 0x10002680
test eax, eax
je 0x1000279c
cmp byte [eax], 0
je 0x1000279c
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkTransactedA]
jmp 0x1000279c
test eax, eax
je 0x1000279c
cmp byte [eax], 0
je 0x1000279c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleIcon]
cmp eax, 0xffffffff
mov ebp, eax
je 0x1000279c
mov eax, dword [esp + 0x1cc]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentConsoleFontEx]
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x1e4]
push eax
call edi
mov edi, eax
mov ecx, dword [esp + 0x1d8]
inc ecx
mov eax, ecx
shl ecx, 3
sub ecx, eax
lea edx, [edi + ecx*4]
add edx, esi
mov dword [esp + 0x1c], edx
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
mov ebx, eax
mov ecx, dword [esp + 0x1c4]
mov eax, dword [esp + 0x1c8]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x34]
mov dword [ebx + 4], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1d8]
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x1cc]
push edx
mov dword [ebx + 0xc], ecx
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x10], esi
push ecx
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov ecx, dword [esp + 0x1e4]
lea eax, [ebx + esi]
push ecx
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov ecx, dword [esp + 0x1d8]
mov edx, dword [esp + 0x10]
push ecx
push edx
add esi, edi
call fcn.10001b90
mov eax, dword [esp + 0x1e0]
add esp, 8
shl eax, 3
lea edi, [esi + ebx + 0x1c]
sub eax, dword [esp + 0x1d8]
mov esi, dword [esp + 0x10]
shl eax, 2
mov ecx, eax
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 [esp + 0x1c]
push ecx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetConsoleLocalEUDC]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetConsoleHistoryInfo]
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetTapeStatus]
mov edx, dword [esp + 0x1c0]
mov ecx, dword [esp + 0x10]
push ecx
mov dword [edx + 0x2444], 0
call dword [sym.imp.KERNEL32.dll_GetTapeStatus]
cmp dword [esp + 0x2c], 0xffffffff
je 0x100027d1
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c0]
push eax
push edx
call fcn.10001850
mov eax, dword [esp + 0x30]
jmp 0x100020cb