Function at 0x429420
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x55b18c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, ecx
mov byte [ebp - 0x119], dl
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x124], eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x120], ecx
push esi
mov esi, dword [ebp + 0x1c]
push edi
cmp ebx, 0xffffffff
jne 0x4294b6
mov ecx, dword [eax]
mov eax, dword [0x56519c]
cmp eax, dword [ecx + 4]
jle 0x4294ab
push 0x56519c
call fcn.004d212f
add esp, 4
cmp dword [0x56519c], ebx
jne 0x4294ab
push 0x50a520
call fcn.004d25d3
add esp, 4
push 0x56519c
call fcn.004d20de
add esp, 4
mov dword [esi], 0x2719
jmp 0x42972f
mov edi, dword [eax]
mov eax, dword [ecx]
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x124]
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp + 0xc]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov ecx, dword [0x56519c]
mov ebx, eax
cmp ecx, dword [edi + 4]
jle 0x42952c
push 0x56519c
call fcn.004d212f
add esp, 4
cmp dword [0x56519c], 0xffffffff
jne 0x42952c
push 0x50a520
call fcn.004d25d3
add esp, 4
push 0x56519c
call fcn.004d20de
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x120]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], 0x55bc28
mov dword [ecx], eax
mov eax, dword [esi]
cmp eax, 0x40
jne 0x429599
mov eax, dword [0x56519c]
cmp eax, dword [edi + 4]
jle 0x42958a
push 0x56519c
call fcn.004d212f
add esp, 4
cmp dword [0x56519c], 0xffffffff
jne 0x42958a
push 0x50a520
call fcn.004d25d3
add esp, 4
push 0x56519c
call fcn.004d20de
add esp, 4
mov dword [esi], 0x2746
mov dword [esi + 4], 0x55bc28
jmp 0x4295fa
cmp eax, 0x4d2
jne 0x4295ec
mov eax, dword [0x56519c]
cmp eax, dword [edi + 4]
jle 0x4295dd
push 0x56519c
call fcn.004d212f
add esp, 4
cmp dword [0x56519c], 0xffffffff
jne 0x4295dd
push 0x50a520
call fcn.004d25d3
add esp, 4
push 0x56519c
call fcn.004d20de
add esp, 4
mov dword [esi], 0x274d
mov dword [esi + 4], 0x55bc28
jmp 0x4295fa
cmp eax, 0x2738
je 0x4295fe
cmp eax, 0xea
je 0x4295fe
test ebx, ebx
jne 0x42960f
mov eax, dword [ebp - 0xc]
mov dword [esi], 0
test eax, eax
jns 0x429738
test byte [ebp - 0x119], 1
jne 0x429736
mov eax, dword [0x56519c]
cmp eax, dword [edi + 4]
jle 0x429659
push 0x56519c
call fcn.004d212f
add esp, 4
cmp dword [0x56519c], 0xffffffff
jne 0x429659
push 0x50a520
call fcn.004d25d3
add esp, 4
push 0x56519c
call fcn.004d20de
add esp, 4
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [0x55bc2c]
jne 0x42966f
cmp dword [esi], 0x2733
je 0x4296a2
push 0x4d5
lea ecx, [ebp - 0x134]
call fcn.0042e140
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x130]
cmp ecx, dword [eax + 4]
jne 0x429736
mov eax, dword [esi]
cmp eax, dword [ebp - 0x134]
jne 0x429736
mov ebx, dword [ebp - 0x128]
lea eax, [ebp - 0x118]
push 0
push 0
push 0
push eax
lea eax, [ebx + 1]
mov dword [ebp - 0x114], ebx
push eax
mov dword [ebp - 0x118], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x4296ea
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x12c]
mov dword [esi], 0
jmp 0x4294b8
mov eax, dword [0x56519c]
cmp eax, dword [edi + 4]
jle 0x429727
push 0x56519c
call fcn.004d212f
add esp, 4
cmp dword [0x56519c], 0xffffffff
jne 0x429727
push 0x50a520
call fcn.004d25d3
add esp, 4
push 0x56519c
call fcn.004d20de
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], 0x55bc28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d20a0
mov esp, ebp
pop ebp
ret