Function at 0x10041910
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x48]
push edi
mov dword [ebp - 0x18], edx
movzx esi, byte [eax + 0x4c]
mov ecx, dword [eax]
and esi, 0x20
or esi, 0xd0
mov dword [ebp - 0x14], ecx
add esi, dword [ebx + 0x44]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov edi, eax
test edi, edi
jne 0x10041980
push esi
push dword [esi + 0xc]
push dword [esi + 8]
mov esi, dword [esi + 0x14]
mov ecx, esi
call dword [0x1004b298]
call esi
mov esi, dword [ebp - 0x10]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10041b33
mov dword [edi], esi
lea eax, [edi + 0x50]
mov dword [edi + 8], 0
xorps xmm0, xmm0
mov dword [edi + 4], ebx
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [eax], 0x8004
mov dword [eax + 4], eax
mov eax, 1
mov dword [edi + 0x4c], 0x57494e56
movups xmmword [edi + 0x58], xmm0
mov dword [edi + 0x68], 0
lock xadd dword [ebx], eax
inc eax
cmp eax, 1
jg 0x100419ed
mov ecx, 0xe
int 0x29
mov eax, dword [ebp - 0x14]
lea ecx, [edi + 0x88]
lea edx, [edi + 0x84]
push 0
mov eax, dword [eax + 0x6c]
add eax, edi
mov dword [edi + 0x8c], eax
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x48]
mov dword [ecx], eax
lea eax, [edi + 0x14]
mov dword [edi + 0x6c], eax
lea eax, [edi + 0x90]
mov dword [edi + 0x80], eax
lea eax, [edi + 0x58]
mov dword [edi + 0x70], 0x1c
mov dword [edi + 0x74], ecx
mov dword [edi + 0x78], 1
mov dword [edi + 0x7c], 0x44
mov dword [edx], 0
mov esi, dword [ebx + 0x48]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
test byte [esi + 0x4c], 3
lea esi, [edi + 0x4c]
jne 0x10041a7a
mov ecx, dword [ebx + 0x48]
push eax
lea eax, [edi + 0x6c]
push eax
mov esi, dword [ecx]
push dword [ebx + 0x4c]
mov esi, dword [esi + 0x24]
mov ecx, esi
call dword [0x1004b298]
call esi
lea esi, [edi + 0x4c]
jmp 0x10041a88
push edx
push eax
push 1
push ecx
push dword [ebx + 0x4c]
call dword [sym.imp.WS2_32.dll_WSARecv]
xor ecx, ecx
cmp eax, 0xffffffff
jne 0x10041ab1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
cmp ecx, 0x3e5
je 0x10041b1d
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x10041ab8
mov dword [esi], 0x57494e5e
mov dword [ebp - 8], ecx
jmp 0x10041ae6
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x10041ae3
mov dword [edi + 0x58], 0
mov ax, word [ebp - 8]
mov word [edx], ax
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
push ecx
mov edx, esi
mov ecx, ebx
call fcn.10040220
mov esi, eax
add esp, 4
test esi, esi
jns 0x10041b1d
mov ecx, ebx
lfence
call fcn.10041050
mov ecx, edi
call fcn.100412d0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
mov eax, 0x703e5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
test byte [0x10059ab8], 2
je 0x10041b57
mov ecx, dword [ebx + 0x48]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
add eax, dword [ecx + 0x48]
push eax
push str.Socket_Receive_Buffer
call fcn.10001500
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, 0x8007000e
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100483f7
mov esp, ebp
pop ebp
ret