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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, 0x80000000
mov edi, dword [esp + 0x80]
mov ebp, edx
mov esi, ecx
xor eax, dword [edx]
mov dword [esp], edi
mov dword [esp + 4], 1
cmp eax, 3
ja 0x584a37
cmp eax, 1
je 0x584a37
mov ecx, esi
mov edx, ebp
push dword [esp + 0x7c]
push dword [esp + 0x7c]
call fcn.00585770
add esp, 0x6c
jmp 0x584b9f
mov eax, dword [0x94bfb4]
xor ecx, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebp
cmp eax, 2
mov eax, 0xff
setne cl
cmovbe eax, ecx
cmp al, 0xff
je 0x584a63
movzx eax, al
test eax, eax
jne 0x584b4a
lea eax, [ebp + 0x78]
mov ecx, 0x93d1f8
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, esp
mov dword [esp + 0x14], fcn.0057d710
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x588580
mov eax, dword [0x94be3c]
mov dword [esp + 0x4c], 0x8a1194
mov dword [esp + 0x50], 2
mov dword [esp + 0x54], edx
lea edx, [esp + 0x20]
mov dword [esp + 0x58], 2
mov dword [esp + 0x5c], 0
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], str.rustls::checkC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rustls_0.22.4_srccheck.rs_handshake_message_while_expecting
mov dword [esp + 0x48], 0xd
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0xd
mov dword [esp + 0x2c], str.rustls::checkC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rustls_0.22.4_srccheck.rs_handshake_message_while_expecting
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0x64
mov dword [esp + 0x38], 0x8a110d
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x41
cmp eax, 2
mov eax, 0x83d3d8
cmove eax, dword [0x94a8fc]
cmove ecx, dword [0x94a8f8]
push edx
push ecx
call dword [eax + 0x10]
add esp, 8
mov ebx, dword [esp + 4]
mov edi, dword [esp]
test ebx, ebx
je 0x584b6c
cmp ebx, 0x3fffffff
ja 0x584b45
mov esi, ebx
add esi, ebx
jns 0x584b54
call fcn.00418cb0
mov esi, 2
mov ebx, 1
movzx eax, byte [0x94bfc5]
xor ecx, ecx
mov edx, esi
call fcn.0071ee80
test eax, eax
je 0x584ba4
mov ebp, eax
jmp 0x584b75
mov ebp, 1
xor ebx, ebx
xor esi, esi
push esi
push edi
push ebp
call fcn.007bd9b0
add esp, 0xc
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movzx eax, word [eax + 0x78]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov word [ecx + 1], ax
mov byte [ecx], 1
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 1
mov edx, esi
call fcn.007c1490
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
lea ebx, [esp + 0x14]
mov eax, dword [eax]
lea ecx, [eax + 0xc]
lea edx, [eax + 0x14]
lea ebp, [eax + 0x34]
lea edi, [eax + 0x10]
mov dword [esp + 8], eax
add eax, 0x58
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0x8a238c
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0x8a239c
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x8a23ac
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x8a0be8
mov dword [esp + 0x2c], eax
lea eax, [esp + 8]
mov dword [esp + 0x30], 0x8a2454
lea ebp, [esp + 0x24]
lea edi, [esp + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x38], 0x8a2464
push 0x12
push 0x89f0b4
push dword [esi + 0x14]
call dword [eax + 0xc]
add esp, 0xc
mov dword [esp], esi
mov esi, esp
mov byte [esp + 4], al
mov byte [esp + 5], 0
lea eax, [esp + 0xc]
mov edx, 0x8a242a
mov ecx, esi
push 0x810760
push eax
push 0xe
call fcn.00467280
add esp, 0xc
mov ecx, esi
mov edx, 0x8a23fa
push 0x810760
push ebx
push 6
call fcn.00467280
add esp, 0xc
mov ecx, esi
mov edx, 0x8a2400
push 0x810760
lea eax, [esp + 0x20]
push eax
push 0xa
call fcn.00467280
add esp, 0xc
mov ecx, esi
mov edx, 0x8a2438
push 0x810760
push ebp
push 0xc
call fcn.00467280
add esp, 0xc
mov ecx, esi
mov edx, str.compression_methodCertificateChain
push 0x810760
lea eax, [esp + 0x30]
push eax
push 0x12
call fcn.00467280
add esp, 0xc
mov ecx, esi
mov edx, str.extensionsOcsp
push 0x810760
push edi
push 0xa
call fcn.00467280
add esp, 0xc
movzx ecx, byte [esp + 4]
cmp byte [esp + 5], 0
je 0x584d0a
mov al, 1
test cl, cl
jne 0x584d24
mov eax, dword [esp]
test byte [eax + 0x1c], 4
jne 0x584d11
mov ecx, dword [eax + 0x18]
push 2
push 0x89e704
jmp 0x584d1b
test cl, cl
setne al
jmp 0x584d24
mov ecx, dword [eax + 0x18]
push 1
push 0x93472b
push dword [eax + 0x14]
call dword [ecx + 0xc]
add esp, 0xc
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret