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

Disassembly:
sub esp, 0x120
mov eax, dword [0x6f7d14]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x12c]
test eax, eax
mov ecx, dword [esp + 0x128]
push ebx
lea ebx, [esp + 0x10]
cmovne ebx, eax
lea eax, [esp + 0xc]
test ecx, ecx
mov dword [esp + 0x10], ebx
push esi
mov esi, dword [esp + 0x12c]
cmovne eax, ecx
mov dword [esp + 0xc], eax
test esi, esi
je 0x4b1b74
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4b1b70
mov ebx, dword [esi + 0x2c]
sub ebx, eax
push ebp
mov dword [esp + 0xc], ebx
push edi
test byte [esi + 0x18], 2
je 0x4b1b12
nop dword [eax]
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x4b1972
push 0xfde8
call dword [sym.KomManager.exe_xmlMallocAtomic]
mov ecx, eax
add esp, 4
mov dword [esi + 0x24], ecx
test ecx, ecx
je 0x4b1ab5
mov dword [esi + 0x34], 0xfde8
mov dword [esi + 0x30], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov ebp, dword [esi + 0x30]
lea eax, [ecx + 0x1000]
mov ebx, dword [esi + 0x2c]
cmp ebp, eax
jbe 0x4b19a2
sub ebx, ebp
mov edi, ebp
push ebx
push ebp
push ecx
sub edi, ecx
call fcn.00633990
sub dword [esi + 0x30], edi
add esp, 0xc
sub dword [esi + 0x28], edi
sub dword [esi + 0x2c], edi
mov ebp, dword [esi + 0x30]
mov ebx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x34]
lea eax, [ebx + 0x1000]
mov edi, dword [esi + 0x24]
add ecx, edi
mov edx, dword [esi + 0x28]
cmp ecx, eax
jae 0x4b19f2
mov eax, dword [esi + 0x34]
sub edx, edi
add eax, eax
mov dword [esp + 0x18], edx
push eax
push edi
mov dword [esi + 0x34], eax
call dword [sym.KomManager.exe_xmlRealloc]
add esp, 8
mov dword [esi + 0x24], eax
test eax, eax
je 0x4b1ad3
mov ecx, dword [esp + 0x18]
sub ebx, edi
add ebx, eax
add ecx, eax
sub eax, edi
mov dword [esi + 0x2c], ebx
add eax, ebp
mov dword [esi + 0x28], ecx
mov dword [esi + 0x30], eax
push 0
push 0x1000
push ebx
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [esi + 0x38], eax
test eax, eax
jg 0x4b1a93
je 0x4b1b0e
cmp eax, 0xffffffff
jne 0x4b1a3e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jg 0x4b1a33
je 0x4b1a3e
cmp eax, 0xb
je 0x4b1a3e
cmp eax, 0x6c
jmp 0x4b1afb
sub eax, 0x2733
jne 0x4b1af8
mov eax, dword [0x6f67c8]
lea ecx, [esp + 0x20]
push ecx
push 0
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x30]
mov eax, dword [esi + 0x14]
push 0
mov dword [esp + 0x38], eax
inc eax
push ecx
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jge 0x4b1a87
call fcn.00636c72
cmp dword [eax], 4
jne 0x4b1b0e
test byte [esi + 0x18], 2
jne 0x4b1940
jmp 0x4b1b0e
mov ebx, dword [esp + 0x10]
add dword [esi + 0x2c], eax
add ebx, eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x10], ebx
test eax, eax
jle 0x4b1933
cmp ebx, eax
jl 0x4b1933
jmp 0x4b1b12
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 0x4b1b0e
push str.allocating_input_buffer
push 0
push 0
push 2
push 0xa
call sym.KomManager.exe___xmlSimpleError
push edi
call dword [sym.KomManager.exe_xmlFree]
add esp, 0x18
mov dword [esi + 0x38], 0xffffffff
jmp 0x4b1b0e
sub eax, 0x17
je 0x4b1b0e
push str.recv_failed_n
push 0
push 0xa
call fcn.00472980
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x28]
pop edi
pop ebp
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
mov eax, dword [esi + 0x44]
test eax, eax
jle 0x4b1b4a
cmp ebx, eax
jge 0x4b1b4a
or edx, 0xffffffff
pop esi
mov eax, edx
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0062fc3e
add esp, 0x120
ret
or eax, 0xffffffff
mov edx, 0
test ebx, ebx
pop esi
cmove edx, eax
mov eax, edx
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0062fc3e
add esp, 0x120
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x124]
mov dword [ebx], 0
pop esi
pop ebx
mov dword [eax], 0
xor ecx, esp
or eax, 0xffffffff
call fcn.0062fc3e
add esp, 0x120
ret