Function at 0x45b1b0
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 0x5b4dee
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x120c
call fcn.004a52e0
mov eax, dword [0x628960]
xor eax, esp
mov dword [esp + 0x1208], eax
push ebx
push esi
push edi
mov eax, dword [0x628960]
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.004a2440
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 0x45b2aa
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.004a2440
add esp, 0xc
push dword [esp + 0x18]
lea eax, [esp + 0xf8]
mov ecx, edi
push dword [ebp + 0x10]
push eax
call fcn.00460b80
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 0x45b561
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [esp + 0x90]
call fcn.0044d6c0
mov edi, eax
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0xd8]
mov byte [esp + 0x122c], 1
movzx edx, word [ebx + 0x6c]
call fcn.0044d6c0
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.0043ec30
add esp, 4
push str.__port:
mov edx, eax
mov byte [esp + 0x122c], 3
lea ecx, [esp + 0x78]
call fcn.00440b60
add esp, 4
push esi
mov edx, eax
mov byte [esp + 0x122c], 4
lea ecx, [esp + 0x60]
call fcn.00445c30
add esp, 4
push str.__window_error_code:
mov edx, eax
mov byte [esp + 0x122c], 5
lea ecx, [esp + 0x48]
call fcn.00440b60
add esp, 4
push edi
mov edx, eax
mov byte [esp + 0x122c], 6
lea ecx, [esp + 0x20]
call fcn.00445c30
mov esi, eax
lea edi, [ebx + 0xb0]
add esp, 4
cmp edi, esi
je 0x45b42a
cmp dword [edi + 0x14], 0x10
jb 0x45b3d9
push dword [edi]
call fcn.0048b2ba
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp dword [esi + 0x14], 0x10
jae 0x45b403
mov eax, dword [esi + 0x10]
inc eax
je 0x45b40d
push eax
push esi
push edi
call fcn.004a0690
add esp, 0xc
jmp 0x45b40d
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 0x45b43d
push dword [esp + 0x1c]
call fcn.0048b2ba
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
jb 0x45b465
push dword [esp + 0x44]
call fcn.0048b2ba
add esp, 4
cmp dword [esp + 0x70], 0x10
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jb 0x45b48d
push dword [esp + 0x5c]
call fcn.0048b2ba
add esp, 4
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
jb 0x45b4b8
push dword [esp + 0x74]
call fcn.0048b2ba
add esp, 4
cmp dword [esp + 0xb8], 0x10
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
jb 0x45b4ec
push dword [esp + 0xa4]
call fcn.0048b2ba
add esp, 4
cmp dword [esp + 0xe8], 0x10
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], 0
mov byte [esp + 0xa4], 0
jb 0x45b523
push dword [esp + 0xd4]
call fcn.0048b2ba
add esp, 4
cmp dword [esp + 0xa0], 0x10
mov dword [esp + 0xe8], 0xf
mov dword [esp + 0xe4], 0
mov byte [esp + 0xd4], 0
jb 0x45b55a
push dword [esp + 0x8c]
call fcn.0048b2ba
add esp, 4
xor bl, bl
jmp 0x45ba15
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.004a2440
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 0x45b7f3
lea ebx, [ebx]
cmp ebx, 0xffffffff
je 0x45b7f3
cmp byte [esp + 0x214], 0
jne 0x45b5f7
xor eax, eax
jmp 0x45b60a
lea eax, [esp + 0x214]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45b601
sub eax, edx
push eax
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0xc4]
call fcn.00440a70
push 0x1000
lea eax, [esp + 0x218]
push 0
push eax
call fcn.004a2440
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x45b748
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.00437570
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 0x45b6d1
xor edi, edi
mov ecx, eax
sub ecx, ebx
cmp ebx, eax
cmova ecx, edi
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x45b6cd
sub ebx, esi
nop
movsx eax, byte [esi + ebx]
push eax
call fcn.004ab887
inc edi
mov byte [esi], al
add esp, 4
lea esi, [esi + 1]
cmp edi, dword [esp + 0x14]
jne 0x45b6b0
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.004d97e0
add esp, 8
test eax, eax
setne bl
cmp dword [esp + 0x30], 0x10
jb 0x45b703
push dword [esp + 0x1c]
call fcn.0048b2ba
add esp, 4
test bl, bl
jne 0x45b73a
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.00437570
call fcn.00462970
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 0x45b7be
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.00437570
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.004daf40
add esp, 0xc
test eax, eax
sete bl
cmp dword [esp + 0x30], 0x10
jb 0x45b7b8
push dword [esp + 0x1c]
call fcn.0048b2ba
add esp, 4
test bl, bl
jne 0x45b7f3
jmp 0x45b7ca
add esi, ebx
mov dword [esp + 0x3c], esi
cmp esi, dword [esp + 0x40]
jge 0x45b7f3
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 0x45b5e0
cmp dword [esp + 0xd0], 0x10
lea eax, [esp + 0xbc]
push dword [esp + 0xcc]
cmovae eax, dword [esp + 0xc0]
push eax
call fcn.0045feb0
mov ecx, eax
mov dword [esp + 0x14], eax
sub ecx, 0x12d
je 0x45b908
dec ecx
je 0x45b908
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.00437570
lea eax, [esp + 0xa4]
push eax
call fcn.0045f7b0
mov ebx, dword [esp + 0x34]
mov esi, eax
cmp ebx, esi
je 0x45b8cf
cmp dword [ebx + 0x14], 0x10
jb 0x45b87e
push dword [ebx]
call fcn.0048b2ba
add esp, 4
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp dword [esi + 0x14], 0x10
jae 0x45b8a8
mov eax, dword [esi + 0x10]
inc eax
je 0x45b8b2
push eax
push esi
push ebx
call fcn.004a0690
add esp, 0xc
jmp 0x45b8b2
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 0x45b8e8
push dword [esp + 0x8c]
call fcn.0048b2ba
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, 0xc8
je 0x45b901
cmp eax, 0xce
je 0x45b901
xor bl, bl
jmp 0x45b9de
mov bl, 1
jmp 0x45b9de
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.004602b0
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.00437570
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.00437570
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 0x45b9de
push dword [esp + 0xd4]
call fcn.0048b2ba
add esp, 4
cmp dword [esp + 0xd0], 0x10
jb 0x45b9f7
push dword [esp + 0xbc]
call fcn.0048b2ba
add esp, 4
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], 0
mov byte [esp + 0xbc], 0
cmp dword [esp + 0x108], 0x10
jb 0x45ba2e
push dword [esp + 0xf4]
call fcn.0048b2ba
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.004a0676
mov esp, ebp
pop ebp
ret 0xc