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

Disassembly:
sub esp, 0x930
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0x928], eax
push ebx
push ebp
push edi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x135]
push ebx
push eax
mov byte [esp + 0x13c], bl
call fcn.10027680
add esp, 0xc
xor ebp, ebp
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], ebx
xor edi, edi
mov eax, dword [esi + 0x58]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
lea edx, [esp + 0x34]
mov dword [esp + 0x38], eax
push edx
add eax, 1
push eax
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jl 0x100143f9
jne 0x10014413
add ebp, 1
cmp ebp, 0xa
jle 0x100143c6
xor al, al
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x928]
xor ecx, esp
call fcn.1001d3e9
add esp, 0x930
ret
mov ecx, dword [esi + 0x58]
push ebx
push 1
lea eax, [esp + edi + 0x138]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x100143f9
add edi, 1
cmp edi, 0x400
jge 0x100143f9
cmp edi, 4
jl 0x100143c6
cmp byte [esp + edi + 0x12c], 0xd
jne 0x100143c6
cmp byte [esp + edi + 0x12d], 0xa
jne 0x100143c6
cmp byte [esp + edi + 0x12e], 0xd
jne 0x100143c6
cmp byte [esp + edi + 0x12f], 0xa
jne 0x100143c6
push 5
lea edx, [esp + 0x134]
push str.HTTP_
push edx
mov byte [esp + edi + 0x13c], bl
call fcn.100218d4
add esp, 0xc
test eax, eax
jne 0x100143f9
fldz
lea eax, [esp + 0xc]
push eax
fstp dword [esp + 0x28]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x138]
push str.HTTP__f__d
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.100218b5
add esp, 0x10
cmp eax, 2
jne 0x100143f9
lea eax, [esp + 0x130]
push str.Content_Length:
push eax
call fcn.1001da10
add esp, 8
cmp eax, ebx
je 0x100143f9
lea ecx, [esp + 0x10]
push ecx
push str.Content_Length:__I64d
push eax
call fcn.100218b5
add esp, 0xc
cmp eax, 1
jne 0x100143f9
mov eax, dword [esp + 0xc]
cmp eax, 0xc8
je 0x10014525
cmp eax, 0xce
jne 0x100143f9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, eax
or edx, ecx
je 0x100143f9
cmp dword [esi + 0x60], 1
jne 0x10014548
cmp dword [esi + 0x64], ebx
jne 0x10014548
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ecx
mov eax, dword [esi + 0x68]
or eax, dword [esi + 0x6c]
jne 0x100143f9
xor ebp, ebp
jmp 0x10014560
push 0x3ff
lea ecx, [esp + 0x535]
push ebx
push ecx
mov byte [esp + 0x53c], bl
call fcn.10027680
mov eax, dword [esi + 0x58]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], eax
push ecx
add eax, 1
push eax
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jl 0x100143f9
jne 0x100145b9
add ebp, 1
cmp ebp, 0xa
jle 0x10014560
jmp 0x100143f9
mov eax, dword [esi + 0x58]
push ebx
push 0x400
lea edx, [esp + 0x538]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jl 0x100143f9
je 0x1001460f
push edi
lea ecx, [esp + 0x534]
push ecx
lea eax, [esi + 0x3c]
call fcn.1000afc0
mov eax, edi
cdq
add dword [esi + 0x68], eax
adc dword [esi + 0x6c], edx
mov edx, dword [esi + 0x68]
cmp edx, dword [esi + 0x60]
jne 0x10014560
mov eax, dword [esi + 0x6c]
cmp eax, dword [esi + 0x64]
jne 0x10014560
mov ecx, dword [esp + 0x934]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.1001d3e9
add esp, 0x930
ret