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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41697b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x41f018]
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 0x412262
jmp 0x412274
jmp 0x412286
push 0x10000000
pop dword [0x5b74ec]
jmp 0x41229f
cmp dword [0x5b74ec], 0x10000000
je 0x412311
xor eax, eax
mov dword [0x4183c8], eax
mov dword [0x4183cc], eax
mov dword [0x4183d0], eax
mov dword [str.Rwu__], eax
mov dword [0x4183d8], eax
mov dword [0x4183dc], eax
mov dword [0x4183e0], eax
mov dword [0x4183e4], eax
mov dword [0x4183e8], eax
mov dword [0x4183ec], eax
mov dword [str.p_H:], eax
mov dword [0x4183f4], eax
mov dword [0x4183f8], eax
mov dword [0x4183fc], eax
mov dword [0x418400], eax
mov dword [0x418404], eax
mov dword [0x418408], eax
mov dword [str.r_], eax
mov dword [0x418410], eax
mov dword [0x418414], eax
lea eax, [ebp - 0x244]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41232c
call fcn.004125c0
push 0x50
push 0x48
push 0x41f930
mov ecx, ebx
call fcn.00412a10
push eax
mov ecx, ebx
call fcn.00411fc0
test al, al
jne 0x41235e
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], 0xffffffff
call fcn.004125c0
mov edx, dword [ebp + 8]
push edx
mov ecx, ebx
call fcn.004120e0
test al, al
jne 0x412383
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], 0xffffffff
call fcn.004125c0
test byte [0x5b74e8], 1
jne 0x4123b0
mov ecx, dword [ebx + 4]
or dword [0x5b74e8], 1
push 0
push 0x200
push 0x5b72e8
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [0x5b72e0], eax
jmp 0x4123b5
mov eax, dword [0x5b72e0]
cmp eax, 0xb4
jle 0x412520
cmp eax, 0x200
jae 0x412520
lea edx, [ebp - 0x24c]
push edx
push 0x41b370
push 0x5b72e8
mov dword [ebp - 0x254], 0
call dword [sym.imp.MSVCR100.dll_strtok_s]
add esp, 0xc
test eax, eax
je 0x412491
mov esi, 0xfffffffe
inc dword [ebp - 0x254]
inc esi
mov dword [ebp - 0x250], esi
cmp esi, 4
ja case.default.0x41240e
jmp dword [esi*4 + 0x4125a0]
mov ecx, 8
mov edi, 0x42282c
jmp 0x41245f
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov byte [ebx + 0x3f], al
jmp case.default.0x41240e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov byte [ebx + 0x40], al
jmp case.default.0x41240e
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.0x41240e
mov ecx, 0x20
lea edi, [ebp - 0x94]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
push ecx
push 0x41b370
push 0
call dword [sym.imp.MSVCR100.dll_strtok_s]
add esp, 0xc
test eax, eax
jne 0x4123fc
cmp dword [ebp - 0x254], 6
je 0x4124a7
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], 0xffffffff
call fcn.004125c0
lea edi, [ebx + 8]
mov dword [ebp - 0x250], edi
call fcn.00415610
sub esp, 0x1c
mov edi, esp
mov dword [ebp - 0x254], esp
call fcn.00401dd0
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.00412b60
lea esi, [ebp - 0xb0]
mov byte [ebp - 0x245], al
call fcn.004054e0
cmp byte [ebp - 0x245], 0
jne 0x412348
cmp byte [ebx + 0x40], 1
je 0x412515
mov edx, dword [ebx + 4]
push edx
jmp 0x41234c
mov ecx, ebx
call fcn.00411e70
test al, al
jne 0x412529
mov eax, dword [ebx + 4]
push eax
jmp 0x41234c
push 0
mov ecx, ebx
call fcn.00412630
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 0x250]
push 0x2d
push 0
push edx
mov dword [ebx + 4], 0xffffffff
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x412568
jmp 0x41257f
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.00415bda
mov esp, ebp
pop ebp
ret 4