Function at 0x433d60
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4444f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x450040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x150], esi
mov eax, ecx
mov dword [ebp - 0x160], eax
mov eax, dword [eax]
mov byte [ebp - 0x145], 0
cmp eax, 0xffffffff
je 0x434085
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jbe 0x434085
lea ecx, [ebp - 0x17c]
call fcn.004016b0
lea edi, [esi + 1]
nop
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x144], 1
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0x2710
lea eax, [ebp - 0x168]
push eax
push 0
push 0
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x433e22
call ebx
cmp dword [eax], 4
je 0x433df4
test esi, esi
js 0x434085
jne 0x433eb3
lea ecx, [ebp - 0x174]
call fcn.004016b0
mov ecx, dword [ebp - 0x174]
sub ecx, dword [ebp - 0x17c]
mov eax, dword [ebp - 0x170]
sbb eax, dword [ebp - 0x178]
push 0
push 0xf4240
push eax
push ecx
call fcn.00441320
push 0
push 0x3e8
push dword [ebp + 0x10]
mov dword [ebp - 0x14c], eax
mov esi, edx
push dword [ebp + 0xc]
call fcn.004414b0
cmp esi, edx
jg 0x434085
jl 0x433e89
cmp dword [ebp - 0x14c], eax
ja 0x434085
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x184], 1
mov dword [ebp - 0x180], 0
call fcn.00401e30
mov esi, dword [ebp - 0x150]
jmp 0x433dd0
mov eax, dword [ebp + 0x24]
mov byte [ebp - 0x146], 0
cmp dword [ebp + 8], 1
push 0x1000
mov ecx, dword [eax]
sete byte [ebp - 0x15c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x154], ecx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x1bc], ecx
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - method.httplib::detail::SocketStream.virtual_0], vtable.httplib::detail::SocketStream.0
mov dword [ebp - 0x1b8], edx
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1b0], edi
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
call fcn.0042f0a0
mov esi, dword [ebp - 0x19c]
push 0x1000
push 0
push esi
call sub.VCRUNTIME140.dll_memset
lea eax, [esi + 0x1000]
mov dword [ebp - 0x190], 0
add esp, 0xc
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x18c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x28]
push eax
lea eax, [ebp - 0x146]
push eax
push dword [ebp - 0x15c]
mov ecx, dword [ecx]
lea eax, [ebp - 0x1c4]
push eax
call fcn.00423ec0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x145], al
test ecx, ecx
je 0x43400b
mov edx, dword [ecx]
lea eax, [ebp - 0x3c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x19c]
mov dword [ebp - method.httplib::detail::SocketStream.virtual_0], vtable.httplib::detail::SocketStream.0
test ecx, ecx
je 0x434052
mov edx, dword [ebp - 0x194]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x434048
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43407f
push edx
push ecx
call fcn.00440679
add esp, 8
cmp byte [ebp - 0x145], 0
je 0x434085
cmp byte [ebp - 0x146], 0
jne 0x434085
mov eax, dword [ebp - 0x160]
dec dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x434085
mov esi, dword [ebp - 0x150]
jmp 0x433db0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov al, byte [ebp - 0x145]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004403ea
mov esp, ebp
pop ebp
ret