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

Disassembly:
sub esp, 0x840
push ebx
push ebp
push esi
push edi
push dword [0x101e2a94]
xor ebp, ebp
mov dword [esp + 0x14], ebp
call fcn.1004f0c7
mov ebx, dword [esp + 0x854]
mov edi, eax
xor eax, eax
mov dword [esp + 0x20], edi
inc eax
cmp word [ebx + 0x20], ax
jne 0x100417e8
push ebp
push ebp
push dword [ebx]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004194a
lea eax, [ebx + 0x28]
push 0x18
push eax
call fcn.1004fa63
pop ecx
pop ecx
mov ecx, eax
xor eax, eax
inc eax
mov dword [esp + 0x10], eax
mov dword [ecx], eax
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], ebx
mov eax, dword [ebx + 0x24]
mov dword [edi + 4], eax
mov dword [edi], ecx
jmp 0x1004194a
cmp word [ebx + 0x22], bp
je 0x1004181b
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x1c
push eax
lea eax, [esp + 0x38]
push eax
push ebp
push 0x800
lea eax, [esp + 0x60]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x10041846
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x10
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push 0x800
lea eax, [esp + 0x60]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
mov dword [esp + 0x14], eax
test edi, edi
jle 0x1004194a
mov esi, dword [ebx + 0x28]
mov dword [esp + 0x10], 2
jmp 0x10041886
lea eax, [esi + 0xc]
cmp word [ebx + 0x22], bp
je 0x1004186e
push dword [esp + 0x18]
lea ecx, [esp + 0x38]
jmp 0x10041876
push dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.10025fc7
add esp, 0xc
test eax, eax
je 0x1004188c
mov esi, dword [esi]
test esi, esi
jne 0x1004185b
jmp 0x10041898
mov eax, esi
push 8
pop ecx
lea ebp, [eax + ecx]
test esi, esi
jne 0x100418db
lea eax, [ebx + 0x28]
push 0x40
push eax
call fcn.1004fa63
mov ebp, eax
mov eax, dword [esp + 0x18]
pop ecx
pop ecx
mov dword [ebp], eax
lea edi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov al, byte [ebx + 0x22]
mov byte [ebp + 0x20], al
xor eax, eax
cmp word [ebx + 0x22], ax
je 0x100418d1
push 7
pop ecx
lea esi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
jmp 0x100418dd
lea esi, [esp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x100418cb
xor eax, eax
cmp dword [ebp + 0x2c], 0
jne 0x1004190b
push edi
push eax
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
lea ecx, [esp + 0x54]
mov dword [ebp + 0x2c], eax
push ecx
push eax
mov dword [ebp + 0x30], edi
mov dword [ebp + 0x34], eax
call fcn.10025090
add esp, 0xc
jmp 0x1004193e
mov eax, dword [ebp + 0x30]
add eax, edi
push eax
push dword [ebp + 0x2c]
push 8
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
lea eax, [esp + 0x50]
push edi
push eax
mov eax, dword [ebp + 0x30]
add eax, ecx
mov dword [ebp + 0x2c], ecx
push eax
call fcn.10025090
add esp, 0xc
add dword [ebp + 0x30], edi
mov eax, dword [esp + 0x20]
mov dword [eax], ebp
mov ecx, dword [ebx + 0x24]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret