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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423d6b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x42c670]
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 0x4079b2
jmp 0x4079c4
jmp 0x4079d6
push 0x10000000
pop dword [0x4493b4]
jmp 0x4079ef
cmp dword [0x4493b4], 0x10000000
je 0x407a61
xor eax, eax
mov dword [0x4281f8], eax
mov dword [0x4281fc], eax
mov dword [0x428200], eax
mov dword [str.Rwu__], eax
mov dword [0x428208], eax
mov dword [0x42820c], eax
mov dword [0x428210], eax
mov dword [0x428214], eax
mov dword [0x428218], eax
mov dword [0x42821c], eax
mov dword [str.p_H:], eax
mov dword [0x428224], eax
mov dword [0x428228], eax
mov dword [0x42822c], eax
mov dword [0x428230], eax
mov dword [0x428234], eax
mov dword [0x428238], eax
mov dword [str.r_], eax
mov dword [0x428240], eax
mov dword [0x428244], eax
lea eax, [ebp - 0x244]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x407a7c
call fcn.00407d00
push 0x50
push 0x48
push 0x42dd30
mov ecx, ebx
call fcn.00408150
push eax
mov ecx, ebx
call fcn.00407710
test al, al
jne 0x407aae
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], 0xffffffff
call fcn.00407d00
mov edx, dword [ebp + 8]
push edx
mov ecx, ebx
call fcn.00407830
test al, al
jne 0x407ad3
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], 0xffffffff
call fcn.00407d00
test byte [0x4493b0], 1
jne 0x407b00
mov ecx, dword [ebx + 4]
or dword [0x4493b0], 1
push 0
push 0x200
push 0x4491b0
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [0x4491a8], eax
jmp 0x407b05
mov eax, dword [0x4491a8]
cmp eax, 0xb4
jle 0x407c5b
cmp eax, 0x200
jae 0x407c5b
lea edx, [ebp - 0x24c]
push edx
push 0x428a2c
push 0x4491b0
mov dword [ebp - 0x250], 0
call fcn.0040eb09
add esp, 0xc
test eax, eax
je 0x407be3
mov esi, 0xfffffffe
inc dword [ebp - 0x250]
inc esi
mov dword [ebp - 0x254], esi
cmp esi, 4
ja case.default.0x407b5d
jmp dword [esi*4 + 0x407ce8]
push eax
push 0x20
push 0x4307c4
call fcn.0040ddab
add esp, 0xc
jmp case.default.0x407b5d
push eax
call fcn.0040ebff
add esp, 4
mov byte [ebx + 0x3f], al
jmp case.default.0x407b5d
push eax
call fcn.0040ebff
add esp, 4
mov byte [ebx + 0x40], al
jmp case.default.0x407b5d
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.0x407b5d
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 0x428a2c
push 0
call fcn.0040eb09
add esp, 0xc
test eax, eax
jne 0x407b4b
cmp dword [ebp - 0x250], 6
je 0x407bf9
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], 0xffffffff
call fcn.00407d00
lea esi, [ebx + 8]
mov edi, esi
call fcn.0040b760
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x254], esp
push eax
call fcn.00402080
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.004082b0
lea ecx, [ebp - 0xb0]
mov byte [ebp - 0x245], al
call fcn.00402110
cmp byte [ebp - 0x245], 0
jne 0x407a98
cmp byte [ebx + 0x40], 1
je 0x407c64
mov edx, dword [ebx + 4]
push edx
jmp 0x407a9c
mov ecx, ebx
call fcn.004075c0
test al, al
jne 0x407c78
mov eax, dword [ebx + 4]
push eax
jmp 0x407a9c
push 0
mov ecx, ebx
call fcn.00407d70
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.0040f6c0
add esp, 0xc
jmp 0x407cb1
jmp 0x407cc8
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.0040d6a3
mov esp, ebp
pop ebp
ret 4