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

Disassembly:
sub esp, 0x11c
mov eax, dword [0x6f7d14]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x128]
push esi
mov esi, dword [esp + 0x124]
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
test esi, esi
je 0x4b14ff
test eax, eax
je 0x4b14ff
test ecx, ecx
jg 0x4b12de
xor eax, eax
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0062fc3e
add esp, 0x11c
ret
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x30]
cmp eax, ecx
jge 0x4b14bf
push ebx
push ebp
push edi
nop
test byte [esi + 0x18], 2
je 0x4b14bc
nop word [eax + eax]
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x4b1332
push 0xfde8
call dword [sym.KomManager.exe_xmlMallocAtomic]
mov ebx, eax
add esp, 4
mov dword [esi + 0x24], ebx
test ebx, ebx
je 0x4b1463
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 0x4b1362
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 0x4b13b1
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 0x4b1481
mov ecx, dword [esp + 0x14]
sub edi, ebx
add edi, eax
add ecx, eax
sub ebp, ebx
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 0x4b144e
je 0x4b14bc
cmp eax, 0xffffffff
jne 0x4b13fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jg 0x4b13f2
je 0x4b13fd
cmp eax, 0xb
je 0x4b13fd
cmp eax, 0x6c
jmp 0x4b14a9
sub eax, 0x2733
jne 0x4b14a6
mov eax, dword [0x6f67c8]
lea ecx, [esp + 0x1c]
push ecx
push 0
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x2c]
mov eax, dword [esi + 0x14]
push 0
mov dword [esp + 0x34], eax
inc eax
push ecx
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jge 0x4b1442
call fcn.00636c72
cmp dword [eax], 4
jne 0x4b14bc
test byte [esi + 0x18], 2
jne 0x4b1300
jmp 0x4b14bc
add dword [esi + 0x2c], eax
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x30]
cmp eax, dword [esp + 0x10]
jl 0x4b12f0
jmp 0x4b14bc
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
jmp 0x4b14bc
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
jmp 0x4b14bc
sub eax, 0x17
je 0x4b14bc
push str.recv_failed_n
push 0
push 0xa
call fcn.00472980
add esp, 0xc
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
mov eax, dword [esp + 4]
sub ecx, edx
cmp ecx, eax
cmovl eax, ecx
push eax
push edx
push dword [esp + 0x14]
mov dword [esp + 0x10], eax
call fcn.00633410
mov eax, dword [esp + 0x10]
add esp, 0xc
add dword [esi + 0x30], eax
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0062fc3e
add esp, 0x11c
ret
mov ecx, dword [esp + 0x11c]
or eax, 0xffffffff
pop esi
xor ecx, esp
call fcn.0062fc3e
add esp, 0x11c
ret