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

Disassembly:
push 0xffffffffffffffff
push 0x7582ad
mov eax, dword fs:[0]
push eax
sub esp, 0x580
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x57c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x594]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x5a4]
mov edx, dword [esp + 0x5a8]
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
mov dword [esp + 0x70], vtable.wbs::StringBase_char_.0
mov al, byte [esi + 0x100]
mov dword [esp + 0x59c], 0
test al, al
je 0x52d6ff
mov eax, dword [esi + 0x4c]
mov al, byte [eax]
test al, al
jne 0x52d6ff
push 0x193
mov ecx, esi
call fcn.005318d0
xor bl, bl
jmp 0x52dadb
xor edi, edi
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], edi
mov byte [esp + 0x50], 0
push edx
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x5a4], 1
mov dword [esp + 0x54], vtable.wbs::StringBase_char_.0
call fcn.004f5e20
mov ebp, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
xor al, al
mov byte [esp + 0x59c], 2
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], al
mov ecx, 0x1f4
mov dword [esp + 0x6c], 0
test edi, edi
mov dword [esp + 0x68], 0
mov eax, 0x249f0
mov dword [esp + 0x8c], 1
cmove eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x48]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x68]
push eax
push 0
push 0
lea eax, [esp + 0x98]
push eax
push 0x40
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x52d83b
push 0
push 0x400
lea eax, [esp + 0x198]
push eax
push dword [esi + 0x48]
call ebp
cmp eax, 0xffffffff
je 0x52d952
test eax, eax
je 0x52d952
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
push eax
lea eax, [esp + 0x194]
mov byte [esp + 0x5a0], 3
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.wbs::StringBase_char_.0
call fcn.004f5e20
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x24]
mov byte [esp + 0x5a4], 4
push eax
lea ecx, [esp + 0x5c]
call fcn.004094b0
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x59c], 2
mov dword [esp + 0x18], vtable.wbs::StringBase_char_.0
jb 0x52d840
push dword [esp + 0x1c]
call fcn.006f75a9
add esp, 4
jmp 0x52d840
mov byte [esp + 0x16], 1
cmp byte [esp + 0x17], 0
jne 0x52d879
cmp dword [esp + 0x64], 0x10
lea ecx, [esp + 0x70]
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
push ecx
push eax
mov ecx, esi
call fcn.0052ea70
mov ebx, eax
cmp ebx, 0xffffffff
je 0x52d952
test ebx, ebx
je 0x52d878
mov byte [esp + 0x17], 1
jmp 0x52d879
inc edi
cmp byte [esp + 0x16], 0
jne 0x52d88a
cmp edi, 5
jae 0x52d88d
jmp 0x52d747
cmp edi, 5
je 0x52d952
cmp dword [esi + 0x104], 0
je 0x52d965
push 0xffffffffffffffff
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x5c]
call fcn.00404fa0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x5a8], 5
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.00404c20
mov dword [esp + 0x18], vtable.wbs::StringBase_char_.0
lea eax, [esp + 0x18]
mov byte [esp + 0x59c], 6
push eax
lea ecx, [esi + 0x1c]
call fcn.004f59b0
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x18], vtable.wbs::StringBase_char_.0
jb 0x52d917
push dword [esp + 0x1c]
call fcn.006f75a9
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov byte [esp + 0x59c], 2
jb 0x52d947
push dword [esp + 0x34]
call fcn.006f75a9
add esp, 4
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x104]
je 0x52d965
push 0x190
mov ecx, esi
call fcn.005318d0
xor bl, bl
jmp 0x52daab
mov ebp, dword [esp + 0x88]
lea ecx, [esp + 0x74]
mov ebx, dword [esp + 0x84]
cmp ebp, 0x10
mov edx, 3
cmovae ecx, dword [esp + 0x74]
cmp ebx, edx
cmovb edx, ebx
test edx, edx
je 0x52d9e7
mov edi, 0x78c5cc
sub edx, 4
jb 0x52d9a8
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x52d9ad
add ecx, 4
add edi, 4
sub edx, 4
jae 0x52d997
cmp edx, 0xfffffffc
je 0x52d9e1
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x52d9da
cmp edx, 0xfffffffd
je 0x52d9e1
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x52d9da
cmp edx, 0xfffffffe
je 0x52d9e1
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x52d9da
cmp edx, 0xffffffff
je 0x52d9e1
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x52d9e1
sbb eax, eax
or eax, 1
jmp 0x52d9e3
xor eax, eax
test eax, eax
jne 0x52da04
cmp ebx, 3
jb 0x52da04
xor eax, eax
cmp ebx, 3
setne al
test eax, eax
jne 0x52da04
mov ecx, esi
call fcn.0052db30
jmp 0x52daa9
cmp ebp, 0x10
lea ecx, [esp + 0x74]
mov edx, 4
cmovae ecx, dword [esp + 0x74]
cmp ebx, edx
cmovb edx, ebx
test edx, edx
je 0x52da78
mov edi, 0x78c3dc
sub edx, 4
jb 0x52da39
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x52da3e
add ecx, 4
add edi, 4
sub edx, 4
jae 0x52da28
cmp edx, 0xfffffffc
je 0x52da72
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x52da6b
cmp edx, 0xfffffffd
je 0x52da72
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x52da6b
cmp edx, 0xfffffffe
je 0x52da72
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x52da6b
cmp edx, 0xffffffff
je 0x52da72
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x52da72
sbb eax, eax
or eax, 1
jmp 0x52da74
xor eax, eax
test eax, eax
jne 0x52da9d
cmp ebx, 4
jb 0x52da9d
xor eax, eax
cmp ebx, 4
setne al
test eax, eax
jne 0x52da9d
mov ecx, esi
call fcn.0052e010
test al, al
je 0x52daa9
mov ecx, esi
call fcn.0052db30
jmp 0x52daa9
push 0x1f5
mov ecx, esi
call fcn.005318d0
mov bl, 1
cmp dword [esp + 0x64], 0x10
mov dword [esp + 0x4c], vtable.wbs::StringBase_char_.0
jb 0x52dac6
push dword [esp + 0x50]
call fcn.006f75a9
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x70], vtable.wbs::StringBase_char_.0
jb 0x52daf9
push dword [esp + 0x74]
call fcn.006f75a9
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x594]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x57c]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x58c
ret 8