Function at 0x58eaf9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x178
mov ebx, edx
mov edx, dword [edx]
lea esi, [esp + 0xb0]
mov dword [esp + 0x30], ecx
mov ecx, esi
add edx, 8
call fcn.004c8758
mov ecx, esi
mov edx, 0x9ffbcc
call fcn.0058b85e
mov byte [esp + 0x13], dl
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
lea esi, [esp + 0x14]
mov edi, eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov edx, dword [ebx + 0xc]
lea ecx, [edi + 0x128]
lea ebx, [esp + 0xb0]
mov dword [esi], ecx
mov ecx, ebx
add edx, 8
call fcn.00438e75
mov ecx, ebx
mov edx, 0x9ffbdc
call fcn.0058b89a
mov ecx, esi
mov dword [esp + 0x38], eax
mov bh, dl
call fcn.004c92a1
mov eax, dword [eax + 0x18]
mov ecx, esi
mov dword [esp + 0x50], eax
call fcn.004c92a1
mov eax, dword [eax + 0xcc]
test eax, eax
je 0x58f42e
mov ecx, dword [ebp + 8]
mov dl, byte [ebp + 0xc]
movsd xmm0, qword [ecx + 0x10]
movsd xmm1, qword [ecx]
movsd xmm2, qword [ecx + 8]
lea ecx, [esp + 0x78]
movsd qword [ecx + 0x10], xmm0
movsd qword [ecx + 8], xmm2
movsd qword [ecx], xmm1
mov dword [ecx + 0x18], eax
lea eax, [edi + 0x170]
mov byte [ecx + 0x1c], 0
mov byte [ecx + 0x1e], dl
mov dword [esp + 0x34], eax
call fcn.0058f47f
test eax, eax
js 0x58ecee
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x54], eax
call fcn.004c92a1
lea ecx, [eax + 0x20]
call fcn.004cb30c
lea ecx, [esp + 0x14]
test al, al
je 0x58ecf2
call fcn.004c9289
add dword [eax + 0xd8], esi
mov eax, dword [0xa70a24]
test eax, eax
je 0x58ed10
and dword [esp + 0x9c], 0
and dword [esp + 0x98], 0
and dword [esp + 0xa8], 0
mov eax, dword [0xa70a24]
test eax, eax
je 0x58ed8f
lea esi, [esp + 0x14]
lea eax, [edi + 0xc0]
mov byte [esp + 0x20], bh
mov ecx, esi
mov dword [esp + 8], eax
call fcn.004c92a1
mov ebx, dword [eax + 0xd4]
mov ecx, esi
call fcn.004c92a1
cmp ebx, dword [eax + 0xd8]
jae 0x58ec92
lea esi, [esp + 0x14]
mov ecx, esi
call fcn.004c92a1
mov ebx, dword [eax + 0xd8]
mov ecx, esi
call fcn.004c9289
mov ecx, dword [esp + 8]
mov edx, esi
mov dword [eax + 0xd4], ebx
call fcn.004cb333
cmp byte [ebp + 0xc], 0
je 0x58f0ee
lea esi, [esp + 0x14]
mov ecx, esi
call fcn.004c9289
mov ebx, eax
lea ecx, [eax + 0x20]
mov al, byte [eax + 0x20]
add al, 0xfa
movzx edx, al
cmp al, 6
push 6
pop eax
cmovb eax, edx
cmp al, 3
je 0x58edfa
movzx eax, al
mov ebx, ecx
cmp eax, 5
jne 0x58f443
mov eax, dword [0xa70a24]
test eax, eax
je 0x58ee85
mov ecx, ebx
call fcn.004c911c
mov byte [ebx], 3
jmp 0x58f0dc
mov bl, 2
jmp 0x58ecfe
call fcn.004c92a1
cmp byte [eax + 0x20], 6
setae bl
lea ecx, [esp + 0x78]
call fcn.0058aa30
mov esi, dword [esp + 0x30]
jmp 0x58f281
mov ecx, 0xa70168
call fcn.0040e00b
test al, al
je 0x58ec16
mov ecx, dword [0xa70168]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x58ec16
mov ecx, dword [0xa70168]
mov esi, dword [ecx + 0x20]
mov eax, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x24]
mov dword [esp + 8], esi
test esi, esi
mov esi, dword [ecx + 0x28]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], esi
je 0x58eef0
mov eax, dword [esp + 8]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], esi
and dword [esp + 0xc0], 0
xor esi, esi
inc esi
jmp 0x58eef4
mov ecx, 0xa70174
call fcn.0040e00b
test al, al
je 0x58ec3b
mov ecx, dword [0xa70174]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x58ec3b
mov ecx, dword [0xa70174]
mov edx, dword [ecx + 0x20]
lea eax, [ecx + 0x1c]
mov dword [esp + 8], eax
test edx, edx
je 0x58efe3
mov eax, dword [ecx + 0x1c]
mov esi, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], ecx
and dword [esp + 0xc0], 0
jmp 0x58efe5
mov al, byte [ebx + 0x22]
mov byte [esp + 4], al
mov byte [esp + 0x24], al
mov eax, dword [0xa70a24]
test eax, eax
jne 0x58f0cc
mov dword [esp + 0xc], ecx
mov ecx, 0xa6fa28
call fcn.0040e00b
test al, al
je 0x58f0c8
mov ecx, dword [0xa6fa28]
movzx edx, al
call fcn.00605cf4
mov ecx, dword [esp + 0xc]
test al, al
je 0x58f0cc
mov ecx, dword [0xa6fa28]
mov edx, dword [ecx + 0x20]
lea eax, [ecx + 0x1c]
mov dword [esp + 4], eax
test edx, edx
je 0x58f041
mov eax, dword [ecx + 0x1c]
mov esi, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], ecx
and dword [esp + 0xc0], 0
jmp 0x58f043
mov ecx, 0xa6fa34
call fcn.0040e00b
test al, al
je 0x58ecdf
mov ecx, dword [0xa6fa34]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x58ecdf
mov ecx, dword [0xa6fa34]
mov edx, dword [ecx + 0x20]
lea eax, [ecx + 0x1c]
mov dword [esp + 4], eax
test edx, edx
je 0x58f3bf
mov eax, dword [ecx + 0x1c]
mov esi, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], ecx
and dword [esp + 0xc0], 0
jmp 0x58f3c1
xor esi, esi
xor eax, eax
mov dword [esp + 4], ecx
add ecx, 0x1c
lea edx, [esp + 0xb0]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x58]
mov dword [edx], eax
push 0x9ff534
call fcn.0057917a
pop eax
mov ecx, dword [esp + 8]
mov eax, 0
cmp esi, ecx
jae 0x58ef4c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc0], esi
lea esi, [esp + 0xb0]
lea ecx, [esp + 0x3c]
mov dword [esi], eax
mov edx, esi
push 0x9ff534
call fcn.0057917a
pop eax
lea ecx, [esp + 0x14]
call fcn.004c92a1
lea ecx, [esp + 0x58]
add eax, 0xd4
lea edx, [esp + 0x3c]
mov dword [esi], ecx
lea ecx, [esp + 0x54]
mov dword [esi + 4], ecx
mov ecx, 0x9ff45c
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
lea eax, [esp + 0x6c]
mov dword [eax], esi
lea esi, [esp + 0x98]
mov dword [eax + 4], 2
mov dword [eax + 8], ecx
mov ecx, esi
push eax
call fcn.00605c1b
pop eax
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x58ec2e
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
push esi
call fcn.00606ebe
pop eax
jmp 0x58ec2e
xor eax, eax
lea esi, [esp + 0xb0]
lea ecx, [esp + 0x3c]
mov dword [esi], eax
mov edx, esi
push 0x9ff544
call fcn.0057917a
pop eax
lea ecx, [esp + 0x14]
call fcn.004c92a1
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x58]
add eax, 0xd8
mov dword [esi], ecx
mov ecx, dword [esp + 8]
mov dword [edx], esi
mov dword [edx + 4], 1
mov dword [esi + 4], eax
mov dword [esi + 8], 0x9fe8c8
mov dword [edx + 8], ecx
mov ecx, dword [0xa70174]
call fcn.00606f01
jmp 0x58ec3b
xor eax, eax
lea esi, [esp + 0xb0]
lea ecx, [esp + 0x3c]
mov dword [esi], eax
mov edx, esi
push 0x9c5dec
call fcn.0057917a
pop eax
lea ecx, [esp + 0x24]
lea eax, [esp + 0x16c]
mov dword [esi], str.send_close:_Open___HalfClosedLocal_
mov dword [esi + 4], 2
and dword [esi + 0x10], 0
lea edx, [esp + 0x6c]
mov dword [eax], ecx
mov dword [eax + 4], fcn.004ca1c2
mov dword [esi + 8], eax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x3c]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], 0x9ba4f0
mov dword [edx], eax
mov eax, dword [esp + 4]
inc ecx
mov dword [edx + 4], ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [0xa6fa28]
mov dword [edx + 8], eax
call fcn.00606f01
lea eax, [esp + 0x24]
lea esi, [esp + 0x14]
mov al, byte [eax]
mov byte [esp + 4], al
mov ecx, dword [esp + 0xc]
call fcn.004c911c
mov al, byte [esp + 4]
mov byte [ebx + 0x20], 0xa
mov byte [ebx + 0x21], al
mov ecx, dword [esp + 8]
xor edx, edx
push dword [esp + 0x34]
push esi
call fcn.004d771b
pop eax
pop ecx
mov eax, dword [0xa70a24]
test eax, eax
je 0x58f16c
mov eax, dword [esp + 0x38]
lea esi, [esp + 0x14]
mov ecx, esi
lea ebx, [eax + 8]
call fcn.004c92a1
cmp dword [eax + 0x3c], 0
jle 0x58f1e3
movsd xmm1, qword [esp + 0x88]
lea edx, [esp + 0xb0]
movsd xmm0, qword [esp + 0x90]
movsd xmm2, qword [esp + 0x78]
mov ecx, dword [esp + 8]
lea eax, [edi + 0xb0]
movsd qword [edx + 0x18], xmm1
movsd xmm1, qword [esp + 0x80]
movsd qword [edx + 0x20], xmm0
movsd qword [edx + 8], xmm2
movsd qword [edx + 0x10], xmm1
mov byte [edx], 0
push eax
push esi
push ebx
call fcn.0058bde5
add esp, 0xc
jmp 0x58f262
mov ecx, 0xa70180
call fcn.0040e00b
test al, al
je 0x58f0f7
mov ecx, dword [0xa70180]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x58f0f7
mov ebx, dword [0xa70180]
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x24]
mov edx, dword [ebx + 0x28]
test esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
je 0x58f2df
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
and dword [esp + 0xc0], 0
xor ecx, ecx
inc ecx
mov dword [esp + 4], ecx
jmp 0x58f2e9
lea ecx, [esp + 0x14]
call fcn.004c92a1
cmp dword [eax + 0xd8], 0
je 0x58f113
lea ecx, [esp + 0x14]
call fcn.004c9289
movsd xmm1, qword [esp + 0x88]
movsd xmm0, qword [esp + 0x90]
movsd xmm2, qword [esp + 0x78]
lea ecx, [eax + 0x64]
lea eax, [esp + 0xb0]
mov edx, ebx
movsd qword [esp + 0xc8], xmm1
movsd xmm1, qword [esp + 0x80]
movsd qword [esp + 0xd0], xmm0
movsd qword [esp + 0xb8], xmm2
movsd qword [esp + 0xc0], xmm1
mov byte [esp + 0xb0], 0
push eax
call fcn.0058bf2d
pop eax
lea esi, [esp + 0x98]
mov ecx, esi
call fcn.0058bfa1
mov ecx, esi
call fcn.004cb2d7
mov esi, dword [esp + 0x30]
mov bh, byte [esp + 0x20]
mov bl, 0xc
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp dword [esp + 0x50], 0x3b9aca00
lea edx, [esp + 0xb0]
movsd xmm0, qword [esp + 0x14]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x34]
setne al
movsd qword [edx], xmm0
push eax
call fcn.004c9830
pop eax
mov ecx, dword [esp + 0x38]
movzx edx, bh
call fcn.00608264
movzx edx, byte [esp + 0x13]
mov ecx, edi
call fcn.00608264
mov al, 5
cmp bl, 0xc
je 0x58f2d5
mov al, 3
mov byte [esi + 1], bl
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], 0
xor eax, eax
lea edx, [esp + 0xb0]
add ebx, 0x1c
lea ecx, [esp + 0x58]
mov dword [edx], eax
push 0x9ff554
call fcn.0057917a
pop eax
lea ecx, [esp + 0x14]
call fcn.004c92a1
mov eax, dword [eax + 0x3c]
lea ecx, [esp + 0x16c]
mov dword [esp + 0x24], ecx
mov dword [ecx], eax
mov ecx, dword [esp + 4]
mov eax, 0
cmp ecx, esi
jae 0x58f352
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc0], ecx
lea esi, [esp + 0xb0]
lea ecx, [esp + 0x3c]
mov dword [esi], eax
mov edx, esi
push 0x9ff554
call fcn.0057917a
pop eax
lea ecx, [esp + 0x14]
call fcn.004c92a1
lea ecx, [esp + 0x58]
lea edx, [esp + 0x6c]
add eax, 0xd8
mov dword [esi], ecx
lea ecx, [esp + 0x24]
mov dword [edx], esi
mov dword [edx + 4], 2
mov dword [edx + 8], ebx
mov dword [esi + 4], ecx
lea ecx, [esp + 0x3c]
mov dword [esi + 8], 0x9ff44c
mov dword [esi + 0xc], ecx
mov ecx, dword [0xa70180]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x9fe8c8
call fcn.00606f01
jmp 0x58f0f7
xor eax, eax
lea esi, [esp + 0xb0]
lea ecx, [esp + 0x3c]
mov dword [esi], eax
mov edx, esi
push 0x9c5dac
call fcn.0057917a
pop eax
lea ecx, [esp + 0x58]
lea edx, [esp + 0x3c]
xor eax, eax
mov dword [esi], str.send_close:_HalfClosedRemote___Closed
mov dword [ecx], edx
lea edx, [esp + 0x6c]
mov dword [ecx + 4], esi
mov dword [ecx + 8], 0x9ba4f0
inc eax
mov dword [edx], ecx
mov ecx, dword [esp + 4]
mov dword [edx + 4], eax
mov dword [esi + 4], eax
and dword [esi + 0x10], 0
mov dword [esi + 8], str.dest_is_out_of_bounds
and dword [esi + 0xc], 0
mov dword [edx + 8], ecx
mov ecx, dword [0xa6fa34]
call fcn.00606f01
lea esi, [esp + 0x14]
jmp 0x58ecdf
push 0x26
pop edx
mov ecx, str.assertion_failed:__stream_id.is_zero__
push 0x9febb4
call fcn.0063cd70
pop eax
ud2
lea eax, [esp + 0x58]
lea edx, [esp + 0x3c]
lea ecx, [esp + 0xb0]
mov dword [edx], eax
mov dword [eax], ebx
xor eax, eax
mov dword [ecx], 0x9c5d94
mov dword [edx + 4], 0x4ca030
inc eax
mov dword [ecx + 4], eax
and dword [ecx + 0x10], 0
mov dword [ecx + 8], edx
mov edx, 0x9c5d9c
mov dword [ecx + 0xc], eax
call fcn.0063cbf0
ud2