Function at 0x402d60
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f7e
mov eax, dword fs:[0]
push eax
mov eax, 0x115c
call fcn.00420900
mov eax, dword [0x431004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1058], 0
push 0x101d
push 0
lea eax, [ebp - 0x1030]
push eax
call fcn.0040cee0
add esp, 0xc
push 0x42aa14
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041160e
add esp, 8
mov dword [ebp - 0x1064], eax
lea ecx, [ebp - 0x1054]
call fcn.004018e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1074], 0
mov dword [ebp - 0x103c], 0x2bf20
push 4
lea edx, [ebp - 0x103c]
push edx
push 0x1006
push 0xffff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 1
test ecx, ecx
je 0x40323a
mov dword [ebp - 0x1068], 0x101c
mov edx, dword [ebp - 0x1068]
push edx
push 0
lea eax, [ebp - 0x1030]
push eax
call fcn.0040cee0
add esp, 0xc
mov dword [ebp - 0x1060], 0
mov ecx, dword [ebp - 0x1060]
cmp ecx, dword [ebp - 0x1068]
jge 0x402e9c
push 0
mov edx, dword [ebp - 0x1068]
sub edx, dword [ebp - 0x1060]
push edx
mov eax, dword [ebp - 0x1060]
lea ecx, [ebp + eax - 0x1030]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x106c], eax
cmp dword [ebp - 0x106c], 0
jg 0x402e88
jmp 0x402e9c
mov eax, dword [ebp - 0x1060]
add eax, dword [ebp - 0x106c]
mov dword [ebp - 0x1060], eax
jmp 0x402e42
cmp dword [ebp - 0x1060], 0
jg 0x402eaa
jmp 0x40323a
push 8
lea ecx, [ebp - 0x1038]
call fcn.00402690
lea ecx, [ebp - 0x1030]
push ecx
lea edx, [ebp - 0x1038]
push edx
call fcn.004026b0
add esp, 8
mov byte [ebp - 4], 1
push 0x42aa18
lea ecx, [ebp - 0x10c0]
call fcn.00403930
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1058]
or eax, 1
mov dword [ebp - 0x1058], eax
lea ecx, [ebp - 0x10c0]
push ecx
lea ecx, [ebp - 0x1038]
call fcn.00403780
cmp dword [eax], 0
je 0x402f95
push 0x42aa20
lea ecx, [ebp - 0x10a8]
call fcn.00403930
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x1058]
or edx, 2
mov dword [ebp - 0x1058], edx
lea eax, [ebp - 0x10a8]
push eax
lea ecx, [ebp - 0x1038]
call fcn.00403780
cmp dword [eax], 0
je 0x402f95
push 0x42aa24
lea ecx, [ebp - 0x1090]
call fcn.00403930
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x1058]
or ecx, 4
mov dword [ebp - 0x1058], ecx
lea edx, [ebp - 0x1090]
push edx
lea ecx, [ebp - 0x1038]
call fcn.00403780
cmp dword [eax], 0
je 0x402f95
mov dword [ebp - 0x1070], 0
jmp 0x402f9f
mov dword [ebp - 0x1070], 1
mov al, byte [ebp - 0x1070]
mov byte [ebp - 0x1059], al
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x1058]
and ecx, 4
je 0x402fcf
and dword [ebp - 0x1058], 0xfffffffb
lea ecx, [ebp - 0x1090]
call fcn.00401870
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x1058]
and edx, 2
je 0x402ff3
and dword [ebp - 0x1058], 0xfffffffd
lea ecx, [ebp - 0x10a8]
call fcn.00401870
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x1058]
and eax, 1
je 0x403017
and dword [ebp - 0x1058], 0xfffffffe
lea ecx, [ebp - 0x10c0]
call fcn.00401870
movzx ecx, byte [ebp - 0x1059]
test ecx, ecx
je 0x403036
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1038]
call fcn.00402930
jmp 0x402e09
push 0x42aa2c
lea ecx, [ebp - 0x1108]
call fcn.00403930
mov byte [ebp - 4], 5
push 0x42aa34
lea ecx, [ebp - 0x10f0]
call fcn.00403930
mov byte [ebp - 4], 6
push 0x42aa38
lea ecx, [ebp - 0x10d8]
call fcn.00403930
mov byte [ebp - 4], 7
lea edx, [ebp - 0x1108]
push edx
lea ecx, [ebp - 0x1038]
call fcn.00403780
mov eax, dword [eax]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x10f0]
push edx
lea ecx, [ebp - 0x1038]
call fcn.00403780
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10d8]
push ecx
lea ecx, [ebp - 0x1038]
call fcn.00403780
mov edx, dword [eax]
push edx
call fcn.00401270
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10d8]
call fcn.00401870
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10f0]
call fcn.00401870
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1108]
call fcn.00401870
mov eax, dword [ebp - 0x1064]
push eax
call fcn.00411939
add esp, 4
push 0x42aa40
lea ecx, [ebp - 0x1138]
call fcn.00403930
mov byte [ebp - 4], 8
push str.content
lea ecx, [ebp - 0x1120]
call fcn.00403930
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1064]
push ecx
push 1
lea edx, [ebp - 0x1138]
push edx
lea ecx, [ebp - 0x1038]
call fcn.00403780
mov eax, dword [eax]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x1120]
push edx
lea ecx, [ebp - 0x1038]
call fcn.00403780
mov eax, dword [eax]
push eax
call fcn.00411dab
add esp, 0x10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1120]
call fcn.00401870
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1138]
call fcn.00401870
push str.length
lea ecx, [ebp - 0x1150]
call fcn.00403930
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1150]
push ecx
lea ecx, [ebp - 0x1038]
call fcn.00403780
mov edx, dword [eax]
mov eax, dword [ebp - 0x1074]
add eax, dword [edx]
mov dword [ebp - 0x1074], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1150]
call fcn.00401870
push 0x42aa58
lea ecx, [ebp - 0x1168]
call fcn.00403930
mov byte [ebp - 4], 0xb
push 0
push 0x10
lea ecx, [ebp - 0x1168]
push ecx
lea ecx, [ebp - 0x1038]
call fcn.00403780
mov edx, dword [eax]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402c70
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1168]
call fcn.00401870
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x1078], esp
lea edx, [ebp - 0x1038]
push edx
call fcn.004037b0
call fcn.00402970
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1038]
call fcn.00402930
jmp 0x402e09
mov eax, dword [ebp - 0x1064]
push eax
call fcn.00411ab3
add esp, 4
mov dword [ebp - 0x1064], 0
mov byte [ebp - 0x105a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1054]
call fcn.00401870
movzx eax, byte [ebp - 0x105a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b794
mov esp, ebp
pop ebp
ret