Function at 0x408180
Capabilities:
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420b1b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x42a5f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
jmp 0x4081c2
jmp 0x4081d4
jmp 0x4081e6
push 0x10000000
pop dword [0x4fd90c]
jmp 0x4081ff
cmp dword [0x4fd90c], 0x10000000
je 0x408271
xor eax, eax
mov dword [0x4251e4], eax
mov dword [0x4251e8], eax
mov dword [0x4251ec], eax
mov dword [str.Rwu__], eax
mov dword [0x4251f4], eax
mov dword [0x4251f8], eax
mov dword [0x4251fc], eax
mov dword [0x425200], eax
mov dword [0x425204], eax
mov dword [0x425208], eax
mov dword [str.p_H:], eax
mov dword [0x425210], eax
mov dword [0x425214], eax
mov dword [0x425218], eax
mov dword [0x42521c], eax
mov dword [0x425220], eax
mov dword [0x425224], eax
mov dword [str.r_], eax
mov dword [0x42522c], eax
mov dword [0x425230], eax
lea eax, [ebp - 0x244]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40828c
call fcn.00408510
push 0x50
push 0x48
push 0x42c328
mov ecx, ebx
call fcn.00408960
push eax
mov ecx, ebx
call fcn.00407f20
test al, al
jne 0x4082be
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], 0xffffffff
call fcn.00408510
mov edx, dword [ebp + 8]
push edx
mov ecx, ebx
call fcn.00408040
test al, al
jne 0x4082e3
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], 0xffffffff
call fcn.00408510
test byte [0x4fd908], 1
jne 0x408310
mov ecx, dword [ebx + 4]
or dword [0x4fd908], 1
push 0
push 0x200
push 0x4fd708
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [0x4fd700], eax
jmp 0x408315
mov eax, dword [0x4fd700]
cmp eax, 0xb4
jle 0x40846b
cmp eax, 0x200
jae 0x40846b
lea edx, [ebp - 0x24c]
push edx
push 0x426bbc
push 0x4fd708
mov dword [ebp - 0x250], 0
call fcn.0040de1e
add esp, 0xc
test eax, eax
je 0x4083f3
mov esi, 0xfffffffe
inc dword [ebp - 0x250]
inc esi
mov dword [ebp - 0x254], esi
cmp esi, 4
ja case.default.0x40836d
jmp dword [esi*4 + 0x4084f8]
push eax
push 0x20
push 0x431b84
call fcn.0040d68b
add esp, 0xc
jmp case.default.0x40836d
push eax
call fcn.0040df14
add esp, 4
mov byte [ebx + 0x3f], al
jmp case.default.0x40836d
push eax
call fcn.0040df14
add esp, 4
mov byte [ebx + 0x40], al
jmp case.default.0x40836d
mov ecx, dword [eax]
mov dword [ebx + 0x35], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x39], edx
mov ax, word [eax + 8]
mov word [ebx + 0x3d], ax
jmp case.default.0x40836d
mov ecx, 0x20
mov esi, eax
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x254]
lea ecx, [ebp - 0x24c]
push ecx
push 0x426bbc
push 0
call fcn.0040de1e
add esp, 0xc
test eax, eax
jne 0x40835b
cmp dword [ebp - 0x250], 6
je 0x408409
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], 0xffffffff
call fcn.00408510
lea esi, [ebx + 8]
mov edi, esi
call fcn.0040b4b0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x254], esp
push eax
call fcn.00402640
lea eax, [ebp - 0xb0]
push eax
call fcn.004017f0
add esp, 0x20
mov edi, eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0
call fcn.00408ab0
lea ecx, [ebp - 0xb0]
mov byte [ebp - 0x245], al
call fcn.004026d0
cmp byte [ebp - 0x245], 0
jne 0x4082a8
cmp byte [ebx + 0x40], 1
je 0x408474
mov edx, dword [ebx + 4]
push edx
jmp 0x4082ac
mov ecx, ebx
call fcn.00407dd0
test al, al
jne 0x408488
mov eax, dword [ebx + 4]
push eax
jmp 0x4082ac
push 0
mov ecx, ebx
call fcn.00408580
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x2d
push 0
push esi
mov dword [ebx + 4], 0xffffffff
call fcn.0040eda0
add esp, 0xc
jmp 0x4084c1
jmp 0x4084d8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040cf87
mov esp, ebp
pop ebp
ret 4