Function at 0x45b570
Capabilities:
Get socket status
Receive data
Receive data on socket
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b5f2e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x120c
call fcn.004a6330
mov eax, dword [0x629960]
xor eax, esp
mov dword [esp + 0x1208], eax
push ebx
push esi
push edi
mov eax, dword [0x629960]
xor eax, esp
push eax
lea eax, [esp + 0x1220]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x38], edi
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xc]
push 0xfff
mov byte [esp + 0x1c], al
lea eax, [esp + 0x219]
push 0
push eax
mov byte [esp + 0x220], 0
call fcn.004a3440
mov eax, dword [edi + 0xc8]
add esp, 0xc
mov dword [esp + 0x110], eax
lea eax, [esp + 0xec]
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0xa
push eax
push 0
push 0
lea eax, [esp + 0x118]
mov dword [esp + 0x118], 1
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
mov ebx, dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x45b66a
push 0
push 0x1000
lea eax, [esp + 0x21c]
push eax
push dword [edi + 0xc8]
call ebx
push 0x1000
lea eax, [esp + 0x218]
push 0
push eax
call fcn.004a3440
add esp, 0xc
push dword [esp + 0x18]
lea eax, [esp + 0xf8]
mov ecx, edi
push dword [ebp + 0x10]
push eax
call fcn.00461080
mov dword [esp + 0x1228], 0
lea eax, [esp + 0xf4]
cmp dword [esp + 0x108], 0x10
push 0
push dword [esp + 0x108]
cmovae eax, dword [esp + 0xfc]
push eax
push dword [edi + 0xc8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x45b921
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [esp + 0x90]
call fcn.0044d4d0
mov edi, eax
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0xd8]
mov byte [esp + 0x122c], 1
movzx edx, word [ebx + 0x6c]
call fcn.0044d4d0
add esp, 4
mov esi, eax
lea ecx, [ebx + 0xc]
mov byte [esp + 0x1228], 2
push ecx
mov edx, str.sock_send_data_error._addr:
lea ecx, [esp + 0xa8]
call fcn.0043e9c0
add esp, 4
push str.__port:
mov edx, eax
mov byte [esp + 0x122c], 3
lea ecx, [esp + 0x78]
call fcn.004407a0
add esp, 4
push esi
mov edx, eax
mov byte [esp + 0x122c], 4
lea ecx, [esp + 0x60]
call fcn.00445c00
add esp, 4
push str.__window_error_code:
mov edx, eax
mov byte [esp + 0x122c], 5
lea ecx, [esp + 0x48]
call fcn.004407a0
add esp, 4
push edi
mov edx, eax
mov byte [esp + 0x122c], 6
lea ecx, [esp + 0x20]
call fcn.00445c00
mov esi, eax
lea edi, [ebx + 0xb0]
add esp, 4
cmp edi, esi
je 0x45b7ea
cmp dword [edi + 0x14], 0x10
jb 0x45b799
push dword [edi]
call fcn.0048c32c
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp dword [esi + 0x14], 0x10
jae 0x45b7c3
mov eax, dword [esi + 0x10]
inc eax
je 0x45b7cd
push eax
push esi
push edi
call fcn.004a1700
add esp, 0xc
jmp 0x45b7cd
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x30], 0x10
jb 0x45b7fd
push dword [esp + 0x1c]
call fcn.0048c32c
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
jb 0x45b825
push dword [esp + 0x44]
call fcn.0048c32c
add esp, 4
cmp dword [esp + 0x70], 0x10
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jb 0x45b84d
push dword [esp + 0x5c]
call fcn.0048c32c
add esp, 4
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
jb 0x45b878
push dword [esp + 0x74]
call fcn.0048c32c
add esp, 4
cmp dword [esp + 0xb8], 0x10
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
jb 0x45b8ac
push dword [esp + 0xa4]
call fcn.0048c32c
add esp, 4
cmp dword [esp + 0xe8], 0x10
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], 0
mov byte [esp + 0xa4], 0
jb 0x45b8e3
push dword [esp + 0xd4]
call fcn.0048c32c
add esp, 4
cmp dword [esp + 0xa0], 0x10
mov dword [esp + 0xe8], 0xf
mov dword [esp + 0xe4], 0
mov byte [esp + 0xd4], 0
jb 0x45b91a
push dword [esp + 0x8c]
call fcn.0048c32c
add esp, 4
xor bl, bl
jmp 0x45bdd5
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], 0
mov byte [esp + 0xbc], 0
push 0x1000
lea eax, [esp + 0x218]
mov byte [esp + 0x122c], 7
push 0
push eax
call fcn.004a3440
add esp, 0xc
mov byte [esp + 0x13], 1
xor esi, esi
mov byte [esp + 0x12], 1
lea eax, [esp + 0x214]
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], esi
push esi
push 0xfff
push eax
push dword [edi + 0xc8]
call ebx
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x45bbb3
lea ebx, [ebx]
cmp ebx, 0xffffffff
je 0x45bbb3
cmp byte [esp + 0x214], 0
jne 0x45b9b7
xor eax, eax
jmp 0x45b9ca
lea eax, [esp + 0x214]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45b9c1
sub eax, edx
push eax
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0xc4]
call fcn.004406b0
push 0x1000
lea eax, [esp + 0x218]
push 0
push eax
call fcn.004a3440
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x45bb08
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xc4]
mov dword [esp + 0x38], 0xf
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.004374f0
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x1c]
cmp edx, 0x10
lea ebx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, ecx
cmp edx, 0x10
cmovae ebx, dword [esp + 0x1c]
cmp ebx, eax
je 0x45ba91
xor edi, edi
mov ecx, eax
sub ecx, ebx
cmp ebx, eax
cmova ecx, edi
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x45ba8d
sub ebx, esi
nop
movsx eax, byte [esi + ebx]
push eax
call fcn.004ac760
inc edi
mov byte [esi], al
add esp, 4
lea esi, [esi + 1]
cmp edi, dword [esp + 0x14]
jne 0x45ba70
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
cmp edx, 0x10
lea eax, [esp + 0x1c]
push str.transfer_encoding:_chunked
cmovae eax, dword [esp + 0x20]
push eax
call fcn.004da8a0
add esp, 8
test eax, eax
setne bl
cmp dword [esp + 0x30], 0x10
jb 0x45bac3
push dword [esp + 0x1c]
call fcn.0048c32c
add esp, 4
test bl, bl
jne 0x45bafa
sub esp, 0x18
mov byte [esp + 0x2a], bl
mov ecx, esp
lea eax, [esp + 0xd4]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], bl
call fcn.004374f0
call fcn.00462e90
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x18]
xor al, al
mov esi, dword [esp + 0x3c]
mov byte [esp + 0x13], al
cmp byte [esp + 0x12], 0
je 0x45bb7e
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xc4]
mov dword [esp + 0x38], 0xf
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.004374f0
cmp dword [esp + 0x30], 0x10
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x2c]
cmovae ecx, dword [esp + 0x1c]
add eax, 0xfffffffb
push 5
add eax, ecx
push str.0_r_n_r_n
push eax
call fcn.004dc000
add esp, 0xc
test eax, eax
sete bl
cmp dword [esp + 0x30], 0x10
jb 0x45bb78
push dword [esp + 0x1c]
call fcn.0048c32c
add esp, 4
test bl, bl
jne 0x45bbb3
jmp 0x45bb8a
add esi, ebx
mov dword [esp + 0x3c], esi
cmp esi, dword [esp + 0x40]
jge 0x45bbb3
push 0
push 0xfff
lea eax, [esp + 0x21c]
push eax
push dword [edi + 0xc8]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x45b9a0
cmp dword [esp + 0xd0], 0x10
lea eax, [esp + 0xbc]
push dword [esp + 0xcc]
cmovae eax, dword [esp + 0xc0]
push eax
call fcn.00460360
mov ecx, eax
mov dword [esp + 0x14], eax
sub ecx, 0x12d
je 0x45bcc8
dec ecx
je 0x45bcc8
sub esp, 0x18
lea eax, [esp + 0xd4]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004374f0
lea eax, [esp + 0xa4]
push eax
call fcn.0045fc10
mov ebx, dword [esp + 0x34]
mov esi, eax
cmp ebx, esi
je 0x45bc8f
cmp dword [ebx + 0x14], 0x10
jb 0x45bc3e
push dword [ebx]
call fcn.0048c32c
add esp, 4
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp dword [esi + 0x14], 0x10
jae 0x45bc68
mov eax, dword [esi + 0x10]
inc eax
je 0x45bc72
push eax
push esi
push ebx
call fcn.004a1700
add esp, 0xc
jmp 0x45bc72
mov eax, dword [esi]
mov dword [ebx], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0xa0], 0x10
jb 0x45bca8
push dword [esp + 0x8c]
call fcn.0048c32c
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, 0xc8
je 0x45bcc1
cmp eax, 0xce
je 0x45bcc1
xor bl, bl
jmp 0x45bd9e
mov bl, 1
jmp 0x45bd9e
push 2
push dword [edi + 0xc8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [edi + 0xc8]
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [esp + 0xd0], 0x10
lea eax, [esp + 0xbc]
push dword [esp + 0xcc]
cmovae eax, dword [esp + 0xc0]
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.00460760
push 0
push dword [esp + 0x38]
mov byte [esp + 0x1230], 8
lea eax, [edi + 0x54]
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004374f0
sub esp, 0x18
mov byte [esp + 0x1260], 9
mov ecx, esp
lea eax, [esp + 0x10c]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004374f0
mov eax, dword [edi]
mov ecx, edi
mov byte [esp + 0x1260], 8
mov eax, dword [eax + 0xc]
call eax
cmp dword [esp + 0xe8], 0x10
mov bl, al
jb 0x45bd9e
push dword [esp + 0xd4]
call fcn.0048c32c
add esp, 4
cmp dword [esp + 0xd0], 0x10
jb 0x45bdb7
push dword [esp + 0xbc]
call fcn.0048c32c
add esp, 4
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], 0
mov byte [esp + 0xbc], 0
cmp dword [esp + 0x108], 0x10
jb 0x45bdee
push dword [esp + 0xf4]
call fcn.0048c32c
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x1220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1208]
xor ecx, esp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret 0xc