Function at 0x585136
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c0
mov eax, dword [0x790f00]
xor eax, esp
mov dword [esp + 0x1bc], eax
push ebx
mov ebx, dword [esp + 0x1cc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1d4]
push edi
mov dword [esp + 0x20], ebx
mov esi, dword [edi + 8]
call fcn.0056b080
mov ebp, eax
push ebx
push edi
mov dword [esp + 0x58], ebp
call fcn.0056b060
xor ebx, ebx
mov dword [esp + 0x2c], 0
add esp, 0xc
mov dword [esp + 0x18], ebx
mov edx, eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x34], eax
cmp byte [ebp + 0x39], bl
je 0x5850df
mov cl, byte [eax + 0x48]
cmp byte [edx + 0x63], bl
je 0x5850b8
test cl, cl
mov eax, 0x1808
mov esi, 0x1820
cmove eax, esi
jmp 0x5850e4
cmp byte [edx + 0x65], bl
je 0x5850ce
test cl, cl
mov eax, 0x1a08
mov esi, 0x1a20
cmove eax, esi
jmp 0x5850e4
test cl, cl
mov eax, 0x208
mov esi, 0x220
cmove eax, esi
jmp 0x5850e4
mov eax, 0x1808
mov cl, byte [edx + 0x67]
mov esi, eax
or esi, 4
mov edx, str.schannel:_disabled_automatic_use_of_client_certificate
cmp byte [ebp + 0x3a], bl
cmovne esi, eax
mov eax, esi
or eax, 0x10
test cl, cl
cmove esi, eax
mov eax, str.schannel:_enabled_automatic_use_of_client_certificate
cmove eax, edx
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x1c]
push eax
push esi
call fcn.00571b80
movzx eax, byte [ebp + 0x38]
add esp, 8
cmp eax, 7
ja case.default.0x58512f
movzx eax, byte [eax + 0x585fc8]
jmp dword [eax*4 + 0x585fc0]
push edi
call fcn.0056b080
add esp, 4
mov edi, dword [eax + 0x34]
movzx esi, byte [eax + 0x38]
test edi, edi
je 0x585152
cmp edi, 0x10000
jne 0x585176
push 3
push 2
push 0x4f7c
push 0
push 0xa
call fcn.005a0790
add esp, 0x14
mov edi, 0x60000
test al, al
mov ecx, 0x70000
cmovne edi, ecx
sar edi, 0x10
cmp esi, edi
jg 0x5851d3
add esi, 0xfffffffc
cmp esi, 3
ja case.default.0x585185
jmp dword [esi*4 + 0x585fd0]
or dword [esp + 0x18], 0x80
jmp case.default.0x585185
or dword [esp + 0x18], 0x200
jmp case.default.0x585185
or dword [esp + 0x18], 0x800
jmp case.default.0x585185
push 3
push 2
push 0x4f7c
push 0
push 0xa
call fcn.005a0790
add esp, 0x14
test al, al
je 0x585233
or dword [esp + 0x18], 0x2000
inc esi
lea eax, [esi + 4]
cmp eax, edi
jle 0x585180
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0x3e0]
test ecx, ecx
jne 0x5851ed
cmp dword [edx + 0x3f4], ebx
je 0x5857fd
xor eax, eax
mov dword [esp + 0x3c], ebx
xor edi, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
xor ebp, ebp
mov dword [esp + 0x28], eax
xor ebx, ebx
mov eax, dword [edx + 0x3f4]
xor esi, esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x38], eax
test eax, eax
je 0x585242
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
jmp 0x58541b
mov ecx, dword [esp + 0x1c]
push str.schannel:_TLS_1.3_not_supported_on_Windows_prior_to_11
push ecx
jmp 0x585f99
push ecx
call fcn.00560bc0
mov esi, eax
add esp, 4
test esi, esi
je case.0x585f4d.2146893056
push 0x5c
push esi
call sub.VCRUNTIME140.dll_wcschr
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x585273
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
jmp 0x5853e3
mov edi, ebx
sub edi, esi
sar edi, 1
push edi
push str.CurrentUser
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x585296
mov ebp, 0x10000
jmp 0x585354
push edi
push str.LocalMachine
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x5852b3
mov ebp, 0x20000
jmp 0x585354
push edi
push str.CurrentService
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x5852d0
mov ebp, 0x40000
jmp 0x585354
push edi
push str.Services
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x5852ea
mov ebp, 0x50000
jmp 0x585354
push edi
push str.Users
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x585304
mov ebp, 0x60000
jmp 0x585354
push edi
push str.CurrentUserGroupPolicy
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x58531e
mov ebp, 0x70000
jmp 0x585354
push edi
push str.LocalMachineGroupPolicy
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x585338
mov ebp, 0x80000
jmp 0x585354
push edi
push str.LocalMachineEnterprise
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x5853db
mov ebp, 0x90000
add ebx, 2
push 0x5c
push ebx
call sub.VCRUNTIME140.dll_wcschr
mov edi, eax
add esp, 8
test edi, edi
jne 0x585372
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
jmp 0x5853e3
lea eax, [edi + 2]
mov ecx, eax
mov dword [esp + 0x3c], eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x585380
sub ecx, edx
sar ecx, 1
cmp ecx, 0x28
je 0x58539e
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
jmp 0x5853e3
xor eax, eax
push ebx
mov word [edi], ax
call dword [0x78ed3c]
mov dword [esp + 0x48], eax
add esp, 4
mov eax, 0x5c
mov word [edi], ax
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x5853ce
mov ecx, dword [esp + 0x18]
lea edi, [eax - 0x41]
mov dword [esp + 0x18], ecx
jmp 0x5853e8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
jmp 0x585475
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov edi, 0x3a
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x3e0]
cmp byte [eax], 0
je 0x585f5f
push 0x775908
push eax
call fcn.00560d30
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x585f5f
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x420]
test eax, eax
je 0x585461
push 0x6f7394
push eax
call fcn.005610b0
add esp, 8
test eax, eax
jne 0x58545d
cmp dword [esp + 0x38], eax
mov eax, str._memory_blob_
mov ecx, dword [esp + 0x1c]
jne 0x58544c
mov eax, dword [ecx + 0x3e0]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ecx
call fcn.00571ab0
add esp, 0xc
jmp 0x5854b2
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
test ebx, ebx
jne 0x585577
test eax, eax
jne 0x585577
push edi
mov eax, ebp
or eax, 0x4000
push eax
push 0
push 0
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov ebx, eax
test ebx, ebx
jne 0x5854cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1c]
push eax
push edi
push ebp
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push ecx
call fcn.00571ab0
push edi
call dword [0x78ed2c]
add esp, 0x18
test esi, esi
je 0x5857a7
push esi
call fcn.006dc59d
add esp, 4
mov eax, 0x3a
jmp 0x585fa6
push edi
call dword [0x78ed2c]
add esp, 4
mov dword [esp + 0x54], 0x14
lea eax, [esp + 0x94]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push 0
push 0
push eax
lea eax, [esp + 0xa0]
push eax
push 4
push 0x28
push dword [esp + 0x54]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x58552d
test esi, esi
je 0x585564
push esi
call fcn.006dc59d
add esp, 4
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x585fa6
push 0
lea eax, [esp + 0x58]
push eax
push 0x10000
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x20], eax
test esi, esi
je 0x58555c
push esi
call fcn.006dc59d
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x5857f9
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x585fa6
xor edi, edi
mov ebp, str._memory_blob_
test eax, eax
jne 0x585588
mov ebp, dword [edx + 0x3e0]
test esi, esi
je 0x585595
push esi
call fcn.006dc59d
add esp, 4
test ebx, ebx
je 0x58560c
push 2
xor esi, esi
push esi
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
mov dword [esp + 0x3c], eax
test eax, eax
sete byte [esp + 0x14]
test eax, eax
jne 0x5856b2
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov esi, eax
add esp, 4
test esi, esi
jns 0x5856ae
mov byte [esp + 0x14], 0
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x5856f7
push ebx
push 1
push ecx
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x5856f7
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
cmp byte [esp + 0x14], 0
je 0x585700
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x430]
mov dword [esp + 0x48], ebx
test eax, eax
je 0x585639
mov edi, eax
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x585630
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [0x78ed28]
mov esi, eax
add esp, 4
test esi, esi
je 0x585756
test edi, edi
je 0x585729
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 1]
push ecx
push esi
push edi
push dword [eax + 0x430]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x58572b
xor eax, eax
mov word [esi], ax
push 3
push 2
push 0
push 0
push 6
call fcn.005a0790
add esp, 0x14
test al, al
lea eax, [esp + 0x44]
je 0x58573e
push 0x8000
jmp 0x585740
mov eax, dword [esp + 0x3c]
mov ecx, esi
mov dword [esp + 0x28], ecx
test eax, eax
jne 0x5856ee
push eax
push eax
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
test eax, eax
sete byte [esp + 0x14]
test eax, eax
jne 0x5855d2
lea eax, [esi + 1]
push eax
call dword [0x78ed28]
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
jmp 0x5855d6
mov esi, dword [esp + 0x24]
jmp 0x5855da
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov eax, dword [esp + 0x1c]
push dword [eax + 0x3e0]
push str.schannel:_Failed_to_read_cert_file__s
push eax
call fcn.00571ab0
push esi
call dword [0x78ed2c]
add esp, 0x10
mov eax, 0x3a
jmp 0x585fa6
xor eax, eax
cmp eax, edi
jg 0x585681
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x585686
push 0
push esi
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push esi
mov dword [esp + 0x30], eax
call dword [0x78ed2c]
add esp, 4
cmp dword [esp + 0x38], 0
jne 0x585767
push ebx
call dword [0x78ed2c]
add esp, 4
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jne 0x5857b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x585794
push ebp
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push dword [esp + 0x24]
call fcn.00571ab0
add esp, 0xc
lea eax, [ebx + 0x3a]
jmp 0x585fa6
push eax
push ebp
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push dword [esp + 0x28]
call fcn.00571ab0
add esp, 0x10
mov eax, 0x3a
jmp 0x585fa6
push 0
push 0
push 0
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x5857f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push dword [esp + 0x28]
call fcn.00571ab0
add esp, 0x10
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x585fa6
mov ebp, dword [esp + 0x4c]
push 0x20
push 1
call dword [0x78ed38]
mov esi, dword [esp + 0x3c]
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x58584b
push str.schannel:_unable_to_allocate_memory
push dword [esp + 0x20]
call fcn.00571ab0
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x585834
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je case.0x585f4d.2146893056
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x1b
jmp 0x585fa6
push 3
push 2
mov dword [eax + 0x18], 1
mov eax, dword [esi]
push 0x4563
push 0
push 0xa
mov dword [eax + 0x14], ebx
call fcn.005a0790
add esp, 0x14
test al, al
je 0x585d3f
push 0x2c
lea eax, [esp + 0x60]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x70
xorps xmm0, xmm0
lea eax, [esp + 0xdc]
push 0
push eax
movups xmmword [esp + 0xac], xmm0
movq qword [esp + 0xbc], xmm0
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp + 0x14]
xorps xmm0, xmm0
add esp, 0x18
movlpd qword [esp + 0x3c], xmm0
xor ebp, ebp
movlpd qword [esp + 0x2c], xmm0
test edi, edi
je 0x585cc8
mov al, 1
mov byte [esp + 0x13], 1
movups xmmword [esp + 0xac], xmm0
mov byte [esp + 0x15], 1
movups xmmword [esp + 0xbc], xmm0
mov byte [esp + 0x16], 1
mov byte [esp + 0x17], 1
mov byte [esp + 0x14], al
cmp byte [edi], 0
je 0x585b2a
cmp ebp, 5
jge 0x585b2a
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x585919
mov esi, ebx
sub esi, edi
jmp 0x585929
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x585920
sub esi, ecx
cmp esi, 0x1f
ja 0x585b12
push esi
lea eax, [esp + 0xb0]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
add esp, 0xc
mov byte [esp + esi + 0xac], 0
cmp byte [esp + 0x13], 0
je 0x585998
lea ecx, [esp + 0xac]
mov eax, str.TLS_AES_256_GCM_SHA384
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x585980
test dl, dl
je 0x58597c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x585980
add eax, 2
add ecx, 2
test dl, dl
jne 0x585960
xor eax, eax
jmp 0x585985
sbb eax, eax
or eax, 1
test eax, eax
jne 0x585998
mov al, byte [esp + 0x14]
xor cl, cl
mov byte [esp + 0x13], cl
jmp 0x585ada
cmp byte [esp + 0x15], 0
je 0x5859ec
lea ecx, [esp + 0xac]
mov eax, str.TLS_AES_128_GCM_SHA256
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5859d0
test dl, dl
je 0x5859cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5859d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x5859b0
xor eax, eax
jmp 0x5859d5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5859ec
mov al, byte [esp + 0x14]
xor ah, ah
mov cl, byte [esp + 0x13]
mov byte [esp + 0x15], ah
jmp 0x585ade
cmp byte [esp + 0x16], 0
je 0x585a40
lea ecx, [esp + 0xac]
mov eax, str.TLS_CHACHA20_POLY1305_SHA256
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x585a20
test dl, dl
je 0x585a1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x585a20
add eax, 2
add ecx, 2
test dl, dl
jne 0x585a00
xor eax, eax
jmp 0x585a25
sbb eax, eax
or eax, 1
test eax, eax
jne 0x585a40
mov al, byte [esp + 0x14]
xor ch, ch
mov cl, byte [esp + 0x13]
mov ah, byte [esp + 0x15]
mov byte [esp + 0x16], ch
jmp 0x585ae2
cmp byte [esp + 0x17], 0
je 0x585a94
lea ecx, [esp + 0xac]
mov eax, str.TLS_AES_128_CCM_8_SHA256
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x585a73
test dl, dl
je 0x585a6f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x585a73
add eax, 2
add ecx, 2
test dl, dl
jne 0x585a53
xor eax, eax
jmp 0x585a78
sbb eax, eax
or eax, 1
test eax, eax
jne 0x585a94
mov al, byte [esp + 0x14]
xor dl, dl
mov cl, byte [esp + 0x13]
mov ah, byte [esp + 0x15]
mov ch, byte [esp + 0x16]
mov byte [esp + 0x17], dl
jmp 0x585ae6
cmp byte [esp + 0x14], 0
je 0x585afa
lea ecx, [esp + 0xac]
mov eax, str.TLS_AES_128_CCM_SHA256
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x585ac7
test dl, dl
je 0x585ac3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x585ac7
add eax, 2
add ecx, 2
test dl, dl
jne 0x585aa7
xor eax, eax
jmp 0x585acc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x585afa
mov cl, byte [esp + 0x13]
xor al, al
mov byte [esp + 0x14], al
mov ah, byte [esp + 0x15]
mov ch, byte [esp + 0x16]
mov dl, byte [esp + 0x17]
mov edi, ebx
test ebx, ebx
je 0x585aef
lea edi, [ebx + 1]
inc ebp
test edi, edi
jne 0x5858f0
jmp 0x585b3a
push str.Passed_in_an_unknown_TLS_1.3_cipher.
push dword [esp + 0x20]
call fcn.00571ab0
mov eax, 0x3b
jmp 0x585fa3
push str.Cipher_name_too_long__not_checked.
push dword [esp + 0x20]
call fcn.00571ab0
mov eax, 0x3b
jmp 0x585fa3
mov ch, byte [esp + 0x16]
mov dl, byte [esp + 0x17]
mov ah, byte [esp + 0x15]
mov cl, byte [esp + 0x13]
test cl, cl
je 0x585b66
test ah, ah
je 0x585b66
test ch, ch
je 0x585b66
test dl, dl
je 0x585b6a
test al, al
je 0x585b6e
push str.All_available_TLS_1.3_ciphers_were_disabled.
push dword [esp + 0x20]
call fcn.00571ab0
mov eax, 0x3b
jmp 0x585fa3
test dl, dl
jne 0x585b6e
test al, al
je 0x585be1
mov dword [esp + 0x3c], 0x200020
lea esi, [esp + 0x3c]
mov dword [esp + 0x40], str.ChainingModeCCM
mov dword [esp + 0xcc], 2
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], 1
mov dword [esp + 0xd0], 0x80008
mov dword [esp + 0xd4], 0x6f7654
cmp dl, al
je 0x585bda
test dl, dl
je 0x585bcf
mov dword [esp + 0xe0], 0x80
mov ebp, 1
jmp 0x585be3
mov dword [esp + 0xe4], 0x40
mov ebp, 1
jmp 0x585be3
xor ebp, ebp
mov al, ah
test cl, cl
jne 0x585c09
mov byte [esp + 0x13], cl
mov byte [esp + 0x16], ch
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x15], ah
mov dword [esp + 0x18], ecx
test al, al
je 0x585c92
mov cl, byte [esp + 0x13]
lea edx, [ebp*8]
mov dword [esp + 0x2c], 0x200020
sub edx, ebp
mov dword [esp + 0x30], str.ChainingModeGCM
cmp cl, ah
je 0x585c37
test cl, cl
mov esi, 0x6f767c
mov eax, 0x6f768c
cmove esi, eax
jmp 0x585c3c
mov esi, 0x6f7654
mov bl, byte [esp + 0x15]
xor eax, eax
cmp cl, bl
sete al
lea eax, [eax*4 + 4]
movzx ecx, ax
xor eax, eax
cmp byte [esp + 0x13], bl
setne al
add eax, 2
inc ebp
mov dword [esp + edx*4 + 0xcc], eax
lea eax, [esp + 0x2c]
mov word [esp + edx*4 + 0xd0], cx
mov word [esp + edx*4 + 0xd2], cx
mov dword [esp + edx*4 + 0xd4], esi
mov dword [esp + edx*4 + 0xdc], eax
mov dword [esp + edx*4 + 0xd8], 1
cmp byte [esp + 0x16], 0
mov esi, dword [esp + 0x34]
je 0x585cc8
lea eax, [ebp*8]
sub eax, ebp
inc ebp
mov dword [esp + eax*4 + 0xcc], 2
mov dword [esp + eax*4 + 0xd0], 0x240024
mov dword [esp + eax*4 + 0xd4], str.CHACHA20_POLY1305
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0xcc]
mov dword [esp + 0xa4], eax
or ecx, 0x400000
cmp dword [esp + 0x20], 0
lea eax, [esp + 0x94]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x18]
not eax
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x80], 1
mov dword [esp + 0x5c], 5
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x9c], eax
je 0x585d30
lea eax, [esp + 0x20]
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], eax
mov ecx, dword [esi]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x60]
jmp 0x585ed4
mov edi, dword [ebp + 0x10]
lea eax, [esp + 0x5c]
push 0x38
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x5c]
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], 4
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x7c], eax
test edi, edi
je 0x585ea6
xor ebx, ebx
mov dword [esp + 0x2c], ebx
nop dword [eax]
cmp byte [edi], 0
je 0x585e79
cmp ebx, 0x2f
jge 0x585e79
push 0
push 0
push edi
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
add esp, 0xc
test eax, eax
jne 0x585e52
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
je 0x585dbc
sub esi, edi
jmp 0x585dca
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x585dc1
sub esi, ecx
mov edx, dword [str.CALG_MD2]
xor ebx, ebx
test edx, edx
je 0x585e15
mov eax, edx
lea ebp, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x585de0
sub eax, ebp
cmp esi, eax
jne 0x585dfc
push esi
push edi
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
je 0x585e0a
mov edx, dword [ebx*8 + 0x6f6cd8]
inc ebx
test edx, edx
jne 0x585dd6
jmp 0x585e15
mov eax, dword [ebx*8 + 0x6f6cd4]
test eax, eax
jne 0x585e4e
push 0x11
push str.USE_STRONG_CRYPTO
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
je 0x585e3d
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x585e8e
or dword [esp + 0x8c], 0x400000
mov ebx, dword [esp + 0x2c]
jmp 0x585e5e
mov ebx, dword [esp + 0x2c]
mov dword [esp + ebx*4 + 0xcc], eax
inc ebx
mov dword [esp + 0x2c], ebx
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
lea edi, [eax + 1]
cmove edi, eax
test edi, edi
jne 0x585d80
mov esi, dword [esp + 0x34]
lea eax, [esp + 0xcc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebx
jmp 0x585eb3
push str.Unable_to_set_ciphers_to_from_connection_ssl_config
push dword [esp + 0x20]
call fcn.00571ab0
mov eax, 0x3b
jmp 0x585fa3
or ecx, 0x400000
mov dword [esp + 0x8c], ecx
cmp dword [esp + 0x20], 0
je 0x585eca
lea eax, [esp + 0x20]
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], eax
mov ecx, dword [esi]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x60]
push ecx
push 0
push 0
push eax
mov eax, dword [0x7938c8]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x585f00
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x585f5b
push 0x100
lea eax, [esp + 0xd0]
push eax
push esi
call fcn.00581df0
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push dword [esp + 0x30]
call fcn.00571ab0
mov edi, dword [esp + 0x4c]
push dword [edi]
call dword [0x78ed2c]
add esi, 0x7ff6fd00
mov dword [edi], 0
add esp, 0x1c
cmp esi, 0xe
ja case.0x585f4d.2146893055
movzx eax, byte [esi + 0x585fec]
jmp dword [eax*4 + 0x585fe0]
mov eax, 0x23
jmp 0x585fa6
xor eax, eax
jmp 0x585fa6
mov eax, dword [esp + 0x1c]
push dword [eax + 0x3e0]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push eax
call fcn.00571ab0
push esi
call fcn.006dc59d
add esp, 0x10
mov eax, edi
jmp 0x585fa6
push str.SSL_versions_not_supported
push esi
call fcn.00571ab0
mov eax, 4
jmp 0x585fa3
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push esi
call fcn.00571ab0
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006daf70
add esp, 0x1c0
ret