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

Disassembly:
mov eax, 0x1118
call fcn.00630750
mov eax, dword [0x6f7d14]
xor eax, esp
mov dword [esp + 0x1114], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1128]
lea ebx, [esp + 0x120]
push edi
mov dword [esp + 0x10], ebx
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x2c]
jne 0x4b1fc4
test byte [esi + 0x18], 2
je 0x4b1fa2
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x4b1e86
push 0xfde8
call dword [sym.KomManager.exe_xmlMallocAtomic]
mov ebx, eax
add esp, 4
mov dword [esi + 0x24], ebx
test ebx, ebx
je 0x4b2007
mov dword [esi + 0x34], 0xfde8
mov dword [esi + 0x30], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov ebp, dword [esi + 0x30]
lea eax, [ebx + 0x1000]
cmp ebp, eax
jbe 0x4b1eb6
mov eax, dword [esi + 0x2c]
mov edi, ebp
sub eax, ebp
sub edi, ebx
push eax
push ebp
push ebx
call fcn.00633990
sub dword [esi + 0x30], edi
add esp, 0xc
sub dword [esi + 0x28], edi
mov ebp, dword [esi + 0x30]
sub dword [esi + 0x2c], edi
mov ebx, dword [esi + 0x24]
mov edi, dword [esi + 0x2c]
mov edx, dword [esi + 0x34]
lea eax, [edi + 0x1000]
lea ecx, [edx + ebx]
cmp ecx, eax
jae 0x4b1f07
mov eax, dword [esi + 0x28]
sub eax, ebx
mov dword [esp + 0x14], eax
lea eax, [edx + edx]
push eax
push ebx
mov dword [esi + 0x34], eax
call dword [sym.KomManager.exe_xmlRealloc]
add esp, 8
mov dword [esi + 0x24], eax
test eax, eax
je 0x4b2027
mov ecx, eax
sub ebp, ebx
sub ecx, ebx
add edi, ecx
mov ecx, dword [esp + 0x14]
add ecx, eax
mov dword [esi + 0x2c], edi
add ebp, eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x30], ebp
push 0
push 0x1000
push edi
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [esi + 0x38], eax
test eax, eax
jg 0x4b1fb8
je 0x4b1f9e
cmp eax, 0xffffffff
jne 0x4b1f4f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jg 0x4b1f44
je 0x4b1f4f
cmp eax, 0xb
je 0x4b1f4f
cmp eax, 0x6c
jmp 0x4b2051
sub eax, 0x2733
jne 0x4b204e
mov eax, dword [0x6f67c8]
lea ecx, [esp + 0x18]
push ecx
push 0
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x28]
mov eax, dword [esi + 0x14]
push 0
mov dword [esp + 0x30], eax
inc eax
push ecx
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jge 0x4b1f94
call fcn.00636c72
cmp dword [eax], 4
jne 0x4b1f9e
test byte [esi + 0x18], 2
jne 0x4b1e54
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x124]
cmp ebx, eax
jne 0x4b206c
xor eax, eax
jmp 0x4b2080
add dword [esi + 0x2c], eax
cmp eax, 0xffffffff
je 0x4b1fb1
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
mov cl, byte [eax]
lea edx, [eax + 1]
mov byte [ebx], cl
mov dword [esi + 0x30], edx
cmp cl, 0xa
je 0x4b206c
cmp cl, 0xd
lea eax, [ebx + 1]
lea ecx, [esp + 0x124]
cmove eax, ebx
mov ebx, eax
mov dword [esp + 0x10], eax
sub eax, ecx
cmp eax, 0xfff
jl 0x4b1e41
mov byte [esp + 0x1123], 0
jmp 0x4b206f
push str.allocating_input
push 0
push 0
push 2
push 0xa
call sym.KomManager.exe___xmlSimpleError
add esp, 0x14
mov dword [esi + 0x38], 0xffffffff
xor eax, eax
jmp 0x4b2080
push str.allocating_input_buffer
push 0
push 0
push 2
push 0xa
call sym.KomManager.exe___xmlSimpleError
push ebx
call dword [sym.KomManager.exe_xmlFree]
add esp, 0x18
mov dword [esi + 0x38], 0xffffffff
xor eax, eax
jmp 0x4b2080
sub eax, 0x17
je 0x4b1f9e
push str.recv_failed_n
push 0
push 0xa
call fcn.00472980
add esp, 0xc
xor eax, eax
jmp 0x4b2080
mov byte [ebx], 0
lea eax, [esp + 0x124]
push eax
call dword [sym.KomManager.exe_xmlMemStrdup]
add esp, 4
mov ecx, dword [esp + 0x1124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0062fc3e
add esp, 0x1118
ret