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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5387a8
mov eax, dword fs:[0]
push eax
mov eax, 0x2844
call fcn.0051fe90
mov eax, dword [0x592dc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2824], esi
call fcn.0041ec06
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41d3b4
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x282c], eax
lea ecx, [ebp - 0x282c]
push ecx
push 0x40b
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00425a50
lea ecx, [ebp - 0x2850]
call fcn.0042dcd2
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x2838], esp
push 0x548888
mov byte [ebp - 4], 1
call fcn.00401680
mov eax, dword [ebp - 0x282c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x2834], esp
mov esi, esp
push eax
mov byte [ebp - 4], 2
call fcn.00401330
add eax, 0x10
lea edx, [ebp - 0x2850]
add esp, 4
mov dword [esi], eax
push edx
mov byte [ebp - 4], 1
call fcn.0041c060
add esp, 0x10
call fcn.0041ec06
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41d455
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2820], eax
mov byte [ebp - 4], 3
call fcn.0041ec06
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41d485
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x2814], ebx
mov ecx, dword [ebp - 0x2848]
xor eax, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x2828], eax
test ecx, ecx
jg 0x41d556
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d4d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2820]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d4f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2850]
mov byte [ebp - 4], 0
call fcn.0042df10
mov eax, dword [ebp - 0x282c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d52f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051d5c4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2828]
test eax, eax
js 0x41d99e
cmp eax, ecx
jge 0x41d99e
mov ecx, dword [ebp - 0x284c]
mov esi, dword [ecx + eax*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x41d595
cmp eax, dword [esi - 0x10]
jne 0x41d595
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41d5c6
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x41d999
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
inc eax
push eax
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0051d118
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x2818], edi
lea ecx, [ebp - 0x2818]
mov byte [ebp - 4], 5
call fcn.00404f30
mov ecx, eax
call fcn.00404930
mov ecx, dword [ebp - 0x2818]
cmp dword [ecx - 0xc], 0
jl 0x41d612
push 0x546f10
push ecx
call fcn.0051dbe5
mov ecx, dword [ebp - 0x2818]
add esp, 8
test eax, eax
je 0x41d612
sub eax, ecx
mov edi, eax
cmp edi, 0xffffffff
jne 0x41d679
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x41d66f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41d65f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41d65f
push eax
call fcn.00401330
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41d64c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x2814], ebx
mov ebx, 0x19
jmp 0x41d75a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x2814]
call fcn.004014f0
mov ebx, 0x19
jmp 0x41d75a
push edi
lea ecx, [ebp - 0x283c]
push ecx
lea ecx, [ebp - 0x2818]
call fcn.00401fa0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
mov byte [ebp - 4], 6
cmp eax, esi
je 0x41d6f1
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41d6e1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41d6e1
push eax
call fcn.00401330
mov dword [ebp - 0x281c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41d6d0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x281c]
add ecx, 0x10
mov dword [ebp - 0x2814], ecx
jmp 0x41d6f1
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x2814]
call fcn.004014f0
mov eax, dword [ebp - 0x283c]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d717
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
push edi
lea ecx, [ebp - 0x2834]
push ecx
lea ecx, [ebp - 0x2818]
call fcn.00402380
mov eax, dword [eax]
push eax
call fcn.0051e144
mov ebx, eax
mov eax, dword [ebp - 0x2834]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d75a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x2814]
push ebx
push ecx
lea edx, [ebp - 0x2820]
push str.connecting_to__s:_d...
push edx
call fcn.00402200
mov esi, dword [ebp - 0x2820]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esp, 0xc
mov dword [ebp - 0x281c], esp
mov dword [ebp - 0x281c], esp
call edx
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x41d7ae
cmp eax, dword [esi - 0x10]
jne 0x41d7ae
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41d7df
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x41d999
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
inc eax
push eax
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0051d118
add esp, 0x10
mov edx, dword [ebp - 0x281c]
mov ecx, dword [ebp - 0x2824]
add edi, 0x10
mov dword [edx], edi
call fcn.0041d140
push 0
push 0x14
push ecx
mov ecx, esp
mov dword [ebp - 0x281c], esp
push 0x547168
call fcn.00401680
mov esi, dword [ebp - 0x2814]
push ebx
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov byte [ebp - 4], 7
mov dword [ebp - 0x2830], esp
mov ebx, esp
call edx
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x41d846
cmp eax, dword [esi - 0x10]
jne 0x41d846
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41d877
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x41d999
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
inc eax
push eax
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0051d118
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
mov byte [ebp - 4], 5
call fcn.0041a4b0
add esp, 0x14
mov esi, eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2830], esp
cmp esi, 0xffffffff
jne 0x41d8a7
push str.connect_failed__r_n
call fcn.00401680
jmp 0x41d93b
push str.connect_successfully_
call fcn.00401680
mov ecx, dword [ebp - 0x2824]
call fcn.0041d140
push 4
lea edx, [ebp - 0x2838]
push edx
push 0x1006
push 0xffff
push esi
mov dword [ebp - 0x2838], 0x1388
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0x2800
lea eax, [ebp - 0x2810]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41d946
lea ecx, [ebp - 0x2810]
push ecx
lea edx, [ebp - 0x2820]
push str.received:__s
push edx
mov byte [ebp + eax - 0x2810], 0
call fcn.00402200
mov eax, dword [ebp - 0x2820]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x2830], esp
mov edi, esp
push eax
call fcn.00401330
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [ebp - 0x2824]
call fcn.0041d140
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x2818]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d973
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2828]
mov ecx, dword [ebp - 0x2848]
mov ebx, dword [ebp - 0x2814]
inc eax
mov dword [ebp - 0x2828], eax
cmp eax, ecx
jl 0x41d550
jmp 0x41d4b1
call fcn.00401170
call fcn.0041e9db
int3