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

Disassembly:
sub esp, 0x1bc
mov eax, dword [0x6a8c7c]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
mov ebx, dword [esp + 0x1c8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1d0]
push edi
mov dword [esp + 0x1c], ebx
mov esi, dword [edi + 8]
call fcn.004f22c0
mov ebp, eax
push ebx
push edi
mov dword [esp + 0x50], ebp
call fcn.004f22a0
xor ebx, ebx
mov dword [esp + 0x30], 0
add esp, 0xc
mov dword [esp + 0x20], ebx
mov edx, eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x40], eax
cmp byte [ebp + 0x39], bl
je 0x50f7cf
mov cl, byte [eax + 0x48]
cmp byte [edx + 0x63], bl
je 0x50f7a8
test cl, cl
mov eax, 0x1808
mov esi, 0x1820
cmove eax, esi
jmp 0x50f7d4
cmp byte [edx + 0x65], bl
je 0x50f7be
test cl, cl
mov eax, 0x1a08
mov esi, 0x1a20
cmove eax, esi
jmp 0x50f7d4
test cl, cl
mov eax, 0x208
mov esi, 0x220
cmove eax, esi
jmp 0x50f7d4
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 + 0x4c], esi
mov esi, dword [esp + 0x18]
push eax
push esi
call fcn.004f9700
movzx eax, byte [ebp + 0x38]
add esp, 8
cmp eax, 7
ja case.default.0x50f81f
movzx eax, byte [eax + 0x5106d0]
jmp dword [eax*4 + 0x5106c8]
push edi
call fcn.004f22c0
add esp, 4
mov edi, dword [eax + 0x34]
movzx esi, byte [eax + 0x38]
test edi, edi
je 0x50f842
cmp edi, 0x10000
jne 0x50f866
push 3
push 2
push 0x4f7c
push 0
push 0xa
call fcn.0052d830
add esp, 0x14
mov edi, 0x60000
test al, al
mov ecx, 0x70000
cmovne edi, ecx
sar edi, 0x10
cmp esi, edi
jg 0x50f8c3
add esi, 0xfffffffc
cmp esi, 3
ja case.default.0x50f875
jmp dword [esi*4 + 0x5106d8]
or dword [esp + 0x20], 0x80
jmp case.default.0x50f875
or dword [esp + 0x20], 0x200
jmp case.default.0x50f875
or dword [esp + 0x20], 0x800
jmp case.default.0x50f875
push 3
push 2
push 0x4f7c
push 0
push 0xa
call fcn.0052d830
add esp, 0x14
test al, al
je 0x50f90d
or dword [esp + 0x20], 0x2000
inc esi
lea eax, [esi + 4]
cmp eax, edi
jle 0x50f870
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 0x3d0]
test edx, edx
jne 0x50f929
cmp dword [esi + 0x3e4], ebx
je 0x50fed3
mov eax, dword [esi + 0x3e4]
xor ecx, ecx
mov dword [esp + 0x3c], ecx
xor ebp, ebp
mov dword [esp + 0x28], ecx
xor ebx, ebx
mov dword [esp + 0x38], ecx
xor esi, esi
mov ecx, dword [eax]
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
jmp 0x50fae8
mov eax, dword [esp + 0x18]
push str.schannel:_TLS_1.3_not_supported_on_Windows_prior_to_11
push eax
call fcn.004f9630
add esp, 8
mov eax, 0x23
jmp 0x5106ae
mov eax, dword [esi + 0x3e4]
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x3c], ecx
xor ebx, ebx
mov dword [esp + 0x28], ecx
xor esi, esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], eax
test eax, eax
je 0x50f965
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
jmp 0x50fae8
push edx
call fcn.00602bbc
mov esi, eax
add esp, 4
test esi, esi
je case.0x51065c.2146893056
push 0x5c
push esi
call fcn.005ed470
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x50fab8
mov edi, ebx
sub edi, esi
push edi
push str.CurrentUser
push esi
call fcn.005fd200
add esp, 0xc
test eax, eax
jne 0x50f9ae
mov ebp, 0x10000
jmp 0x50fa68
push edi
push str.LocalMachine
push esi
call fcn.005fd200
add esp, 0xc
test eax, eax
jne 0x50f9cb
mov ebp, 0x20000
jmp 0x50fa68
push edi
push str.CurrentService
push esi
call fcn.005fd200
add esp, 0xc
test eax, eax
jne 0x50f9e8
mov ebp, 0x40000
jmp 0x50fa68
push edi
push str.Services
push esi
call fcn.005fd200
add esp, 0xc
test eax, eax
jne 0x50fa02
mov ebp, 0x50000
jmp 0x50fa68
push edi
push str.Users
push esi
call fcn.005fd200
add esp, 0xc
test eax, eax
jne 0x50fa1c
mov ebp, 0x60000
jmp 0x50fa68
push edi
push str.CurrentUserGroupPolicy
push esi
call fcn.005fd200
add esp, 0xc
test eax, eax
jne 0x50fa36
mov ebp, 0x70000
jmp 0x50fa68
push edi
push str.LocalMachineGroupPolicy
push esi
call fcn.005fd200
add esp, 0xc
test eax, eax
jne 0x50fa50
mov ebp, 0x80000
jmp 0x50fa68
push edi
push str.LocalMachineEnterprise
push esi
call fcn.005fd200
add esp, 0xc
test eax, eax
jne 0x50fab8
mov ebp, 0x90000
lea edi, [ebx + 1]
push 0x5c
push edi
call fcn.005ed470
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x50fab8
lea eax, [ebx + 1]
mov ecx, eax
mov dword [esp + 0x28], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50fa88
sub ecx, edx
cmp ecx, 0x28
jne 0x50fab8
push edi
mov byte [ebx], al
call dword [0x6a400c]
mov edi, eax
mov byte [ebx], 0x5c
add esp, 4
mov dword [esp + 0x3c], edi
test edi, edi
jne 0x50fb42
lea edi, [eax + 0x1b]
jmp 0x50fabd
mov edi, 0x3a
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x3d0]
cmp byte [eax], 0
je 0x510667
push 0x6868a8
push eax
call fcn.0050be40
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x510667
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x410]
test eax, eax
je 0x50fb2a
push 0x62ae18
push eax
call fcn.004fe010
add esp, 8
test eax, eax
jne 0x50fb2a
cmp dword [esp + 0x1c], eax
mov eax, str._memory_blob_
jne 0x50fb19
mov eax, dword [edi + 0x3d0]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push edi
call fcn.004f9630
add esp, 0xc
jmp 0x50fb7f
mov eax, dword [esp + 0x1c]
test ebx, ebx
jne 0x50fc44
test eax, eax
jne 0x50fc44
mov edi, dword [esp + 0x3c]
push edi
mov eax, ebp
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov ebx, eax
test ebx, ebx
jne 0x50fb9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x1c]
push edi
push ebp
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push eax
call fcn.004f9630
push edi
call dword [0x6a4004]
add esp, 0x18
test esi, esi
je 0x50fe79
push esi
call fcn.005f56da
add esp, 4
mov eax, 0x3a
jmp 0x5106ae
push edi
call dword [0x6a4004]
add esp, 4
mov dword [esp + 0x50], 0x14
lea eax, [esp + 0x90]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
push 0
push 0
push eax
lea eax, [esp + 0x9c]
push eax
push 4
push 0x28
push dword [esp + 0x40]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x50fbfa
test esi, esi
je 0x50fc31
push esi
call fcn.005f56da
add esp, 4
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x5106ae
push 0
lea eax, [esp + 0x54]
push eax
push 0x10000
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x24], eax
test esi, esi
je 0x50fc29
push esi
call fcn.005f56da
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
jne 0x50fecb
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x5106ae
xor edi, edi
test eax, eax
je 0x50fc51
mov ebp, str._memory_blob_
jmp 0x50fc5b
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 0x3d0]
test esi, esi
je 0x50fc68
push esi
call fcn.005f56da
add esp, 4
test ebx, ebx
je 0x50fcdd
push 2
xor esi, esi
push esi
push ebx
call fcn.005fcbfc
add esp, 0xc
test eax, eax
sete cl
mov byte [esp + 0x13], cl
test eax, eax
jne 0x50fd82
push ebx
call fcn.005fc8c6
mov esi, eax
add esp, 4
test esi, esi
jns 0x50fd7e
mov byte [esp + 0x13], 0
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
test esi, esi
je 0x50fdc9
push ebx
push 1
push eax
push esi
call fcn.005fcde3
add esp, 0x10
cmp eax, 1
jne 0x50fdc9
push ebx
call fcn.005f13eb
add esp, 4
cmp byte [esp + 0x13], 0
je 0x50fdd2
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ebx
mov eax, dword [eax + 0x420]
test eax, eax
je 0x50fd09
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x50fd00
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x50fe28
test edi, edi
je 0x50fdfb
mov eax, dword [esp + 0x18]
lea ecx, [edi + 1]
push ecx
push esi
push edi
push dword [eax + 0x420]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x50fdfd
xor eax, eax
mov word [esi], ax
push 3
push 2
push 0
push 0
push 6
call fcn.0052d830
add esp, 0x14
test al, al
lea eax, [esp + 0x28]
je 0x50fe10
push 0x8000
jmp 0x50fe12
mov cl, byte [esp + 0x13]
mov eax, esi
mov dword [esp + 0x34], eax
test cl, cl
je 0x50fdc0
push 0
push 0
push ebx
call fcn.005fcbfc
add esp, 0xc
test eax, eax
sete byte [esp + 0x13]
test eax, eax
jne 0x50fca3
lea eax, [esi + 1]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
jmp 0x50fca7
mov esi, dword [esp + 0x30]
jmp 0x50fcab
push ebx
call fcn.005f13eb
add esp, 4
mov eax, dword [esp + 0x18]
push dword [eax + 0x3d0]
push str.schannel:_Failed_to_read_cert_file__s
push eax
call fcn.004f9630
push esi
call dword [0x6a4004]
add esp, 0x10
mov eax, 0x3a
jmp 0x5106ae
xor eax, eax
cmp eax, edi
jg 0x50fd51
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x50fd56
push 0
push esi
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push esi
mov dword [esp + 0x3c], eax
call dword [0x6a4004]
add esp, 4
cmp dword [esp + 0x1c], 0
jne 0x50fe39
push ebx
call dword [0x6a4004]
add esp, 4
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x50fe83
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x50fe66
push ebp
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push dword [esp + 0x20]
call fcn.004f9630
add esp, 0xc
lea eax, [ebx + 0x3a]
jmp 0x5106ae
push eax
push ebp
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push dword [esp + 0x24]
call fcn.004f9630
add esp, 0x10
mov eax, 0x3a
jmp 0x5106ae
push 0
push 0
push 0
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x50fecb
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 + 0x24]
call fcn.004f9630
add esp, 0x10
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x5106ae
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x18]
push 0x20
push 1
call dword [0x6a4010]
mov ecx, dword [esp + 0x48]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x50ff1e
push str.schannel:_unable_to_allocate_memory
push esi
call fcn.004f9630
mov eax, dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x50ff07
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je case.0x51065c.2146893056
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x1b
jmp 0x5106ae
mov dword [eax + 0x18], 1
mov eax, dword [ecx]
mov dword [eax + 0x14], ebx
cmp dword [ebp + 0x10], 0
jne 0x510425
push 3
push 2
push 0x4563
push 0
push 0xa
call fcn.0052d830
add esp, 0x14
test al, al
je 0x510425
push 0x2c
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.005ed310
push 0x70
xorps xmm0, xmm0
lea eax, [esp + 0xd8]
push 0
push eax
movups xmmword [esp + 0xa8], xmm0
movq qword [esp + 0xb8], xmm0
call fcn.005ed310
mov edi, dword [ebp + 0x14]
xorps xmm0, xmm0
xor eax, eax
movq qword [esp + 0x5c], xmm0
add esp, 0x18
movq qword [esp + 0x28], xmm0
mov dword [esp + 0x1c], eax
test edi, edi
je 0x5103ad
mov al, 1
mov byte [esp + 0x14], 1
xor ebp, ebp
mov byte [esp + 0x15], 1
movups xmmword [esp + 0xa8], xmm0
mov byte [esp + 0x16], 1
movups xmmword [esp + 0xb8], xmm0
mov byte [esp + 0x17], 1
mov byte [esp + 0x13], al
cmp byte [edi], 0
je 0x510215
cmp ebp, 5
jge 0x510215
push 0x3a
push edi
call fcn.005ed470
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x50fffc
mov esi, ebx
sub esi, edi
jmp 0x51000a
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x510001
sub esi, ecx
cmp esi, 0x1f
ja 0x5101fd
push esi
lea eax, [esp + 0xac]
push edi
push eax
call fcn.005fd8a0
add esp, 0xc
mov byte [esp + esi + 0xa8], 0
cmp byte [esp + 0x14], 0
je 0x510078
lea ecx, [esp + 0xa8]
mov eax, str.TLS_AES_256_GCM_SHA384
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x510060
test dl, dl
je 0x51005c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x510060
add eax, 2
add ecx, 2
test dl, dl
jne 0x510040
xor eax, eax
jmp 0x510065
sbb eax, eax
or eax, 1
test eax, eax
jne 0x510078
mov al, byte [esp + 0x13]
xor ah, ah
mov byte [esp + 0x14], ah
jmp 0x5101ba
cmp byte [esp + 0x15], 0
je 0x5100cc
lea ecx, [esp + 0xa8]
mov eax, str.TLS_AES_128_GCM_SHA256
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5100b0
test dl, dl
je 0x5100ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5100b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x510090
xor eax, eax
jmp 0x5100b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5100cc
mov al, byte [esp + 0x13]
xor ch, ch
mov ah, byte [esp + 0x14]
mov byte [esp + 0x15], ch
jmp 0x5101be
cmp byte [esp + 0x16], 0
je 0x510120
lea ecx, [esp + 0xa8]
mov eax, str.TLS_CHACHA20_POLY1305_SHA256
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x510100
test dl, dl
je 0x5100fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x510100
add eax, 2
add ecx, 2
test dl, dl
jne 0x5100e0
xor eax, eax
jmp 0x510105
sbb eax, eax
or eax, 1
test eax, eax
jne 0x510120
mov al, byte [esp + 0x13]
xor dl, dl
mov ch, byte [esp + 0x15]
mov ah, byte [esp + 0x14]
mov byte [esp + 0x16], dl
jmp 0x5101c2
cmp byte [esp + 0x17], 0
je 0x510174
lea ecx, [esp + 0xa8]
mov eax, str.TLS_AES_128_CCM_8_SHA256
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x510153
test dl, dl
je 0x51014f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x510153
add eax, 2
add ecx, 2
test dl, dl
jne 0x510133
xor eax, eax
jmp 0x510158
sbb eax, eax
or eax, 1
test eax, eax
jne 0x510174
mov al, byte [esp + 0x13]
xor cl, cl
mov ch, byte [esp + 0x15]
mov ah, byte [esp + 0x14]
mov dl, byte [esp + 0x16]
mov byte [esp + 0x17], cl
jmp 0x5101c6
cmp byte [esp + 0x13], 0
je 0x5101da
lea ecx, [esp + 0xa8]
mov eax, str.TLS_AES_128_CCM_SHA256
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5101a7
test dl, dl
je 0x5101a3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5101a7
add eax, 2
add ecx, 2
test dl, dl
jne 0x510187
xor eax, eax
jmp 0x5101ac
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5101da
mov ah, byte [esp + 0x14]
xor al, al
mov byte [esp + 0x13], al
mov ch, byte [esp + 0x15]
mov dl, byte [esp + 0x16]
mov cl, byte [esp + 0x17]
mov edi, ebx
test ebx, ebx
je 0x5101cf
lea edi, [ebx + 1]
inc ebp
test edi, edi
jne 0x50ffd3
jmp 0x510225
lea eax, [esp + 0xa8]
push eax
push str.schannel:_Unknown_TLS_1.3_cipher:__s
push dword [esp + 0x20]
call fcn.004f9630
add esp, 0xc
mov eax, 0x3b
jmp 0x5106ae
push str.schannel:_Cipher_name_too_long__not_checked
push dword [esp + 0x1c]
call fcn.004f9630
mov eax, 0x3b
jmp 0x5106ab
mov dl, byte [esp + 0x16]
mov ah, byte [esp + 0x14]
mov ch, byte [esp + 0x15]
mov cl, byte [esp + 0x17]
test ah, ah
je 0x510251
test ch, ch
je 0x510251
test dl, dl
je 0x510251
test cl, cl
je 0x510255
test al, al
je 0x51025d
push str.schannel:_All_available_TLS_1.3_ciphers_were_disabled
push dword [esp + 0x1c]
call fcn.004f9630
mov eax, 0x3b
jmp 0x5106ab
test cl, cl
jne 0x51025d
test al, al
je 0x5102d8
mov dword [esp + 0x44], 0x200020
lea edx, [esp + 0x44]
mov dword [esp + 0x48], str.ChainingModeCCM
mov dword [esp + 0xc8], 2
mov dword [esp + 0xd8], edx
mov dword [esp + 0xd4], 1
mov dword [esp + 0xcc], 0x80008
mov dword [esp + 0xd0], 0x62b0e4
cmp cl, al
je 0x5102cd
test cl, cl
je 0x5102c2
mov ebp, 1
mov dword [esp + 0xdc], 0x80
mov dword [esp + 0x1c], ebp
jmp 0x5102da
mov dword [esp + 0xe0], 0x40
mov ebp, 1
mov dword [esp + 0x1c], ebp
jmp 0x5102da
xor ebp, ebp
test ah, ah
jne 0x5102e6
test ch, ch
je 0x510373
lea edx, [ebp*8]
mov dword [esp + 0x28], 0x200020
sub edx, ebp
mov dword [esp + 0x2c], str.ChainingModeGCM
cmp ah, ch
je 0x510314
test ah, ah
mov esi, 0x62b10c
mov edi, 0x62b11c
cmove esi, edi
jmp 0x510319
mov esi, 0x62b0e4
mov bl, byte [esp + 0x14]
xor eax, eax
cmp bl, ch
sete al
lea eax, [eax*4 + 4]
movzx ecx, ax
xor eax, eax
cmp bl, byte [esp + 0x15]
setne al
add eax, 2
inc ebp
mov dword [esp + edx*4 + 0xc8], eax
lea eax, [esp + 0x28]
mov word [esp + edx*4 + 0xcc], cx
mov word [esp + edx*4 + 0xce], cx
mov dword [esp + edx*4 + 0xd0], esi
mov dword [esp + edx*4 + 0xd8], eax
mov dword [esp + edx*4 + 0xd4], 1
mov dword [esp + 0x1c], ebp
cmp byte [esp + 0x16], 0
je 0x5103a9
lea eax, [ebp*8]
sub eax, ebp
inc ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + eax*4 + 0xc8], 2
mov dword [esp + eax*4 + 0xcc], 0x240024
mov dword [esp + eax*4 + 0xd0], str.CHACHA20_POLY1305
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x9c], eax
lea ecx, [esp + 0xc8]
lea eax, [esp + 0x90]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x80], eax
or ecx, 0x400000
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x20]
not eax
mov dword [esp + 0x7c], 1
mov dword [esp + 0x58], 5
mov dword [esp + 0x78], ecx
mov dword [esp + 0x98], eax
je 0x510412
lea eax, [esp + 0x24]
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], eax
mov ebx, dword [esp + 0x40]
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x5c]
jmp 0x5105e3
mov edi, dword [ebp + 0x10]
lea eax, [esp + 0x58]
push 0x38
push 0
push eax
call fcn.005ed310
mov ecx, dword [esp + 0x58]
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], 4
mov dword [esp + 0x88], ecx
mov dword [esp + 0x78], eax
test edi, edi
je 0x5105b1
test eax, 0x2000
je 0x510471
push str.schannel:_WARNING:_This_version_of_Schannel_may_negotiate_a_less_secure_TLS_version_than_TLS_1.3_because_the_user_set_an_algorithm_cipher_list.
push esi
call fcn.004f9700
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x51048c
push str.schannel:_This_version_of_Schannel_does_not_support_setting_an_algorithm_cipher_list_and_TLS_1.3_cipher_list_at_the_same_time
push esi
call fcn.004f9630
mov eax, 0x3b
jmp 0x5106ab
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp byte [edi], 0
je 0x510588
cmp ebx, 0x2f
jge 0x510588
push 0
push 0
push edi
call fcn.005f6976
add esp, 0xc
test eax, eax
jne 0x510562
push 0x3a
push edi
call fcn.005ed470
mov esi, eax
add esp, 8
test esi, esi
je 0x5104ce
sub esi, edi
jmp 0x5104dc
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x5104d3
sub esi, ecx
mov edx, dword [str.CALG_MD2]
xor ebx, ebx
test edx, edx
je 0x510525
mov eax, edx
lea ebp, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5104f0
sub eax, ebp
cmp esi, eax
jne 0x51050c
push esi
push edi
push edx
call fcn.005fd200
add esp, 0xc
test eax, eax
je 0x51051a
mov edx, dword [ebx*8 + 0x62a820]
inc ebx
test edx, edx
jne 0x5104e8
jmp 0x510525
mov eax, dword [ebx*8 + 0x62a81c]
test eax, eax
jne 0x51055e
push 0x11
push str.USE_STRONG_CRYPTO
push edi
call fcn.005fd200
add esp, 0xc
test eax, eax
je 0x51054d
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push edi
call fcn.005fd200
add esp, 0xc
test eax, eax
jne 0x510599
or dword [esp + 0x88], 0x400000
mov ebx, dword [esp + 0x28]
jmp 0x51056e
mov ebx, dword [esp + 0x28]
mov dword [esp + ebx*4 + 0xc8], eax
inc ebx
mov dword [esp + 0x28], ebx
push 0x3a
push edi
call fcn.005ed470
mov edi, eax
add esp, 8
test edi, edi
je 0x510588
add edi, 1
jne 0x510492
lea eax, [esp + 0xc8]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
jmp 0x5105be
push str.schannel:_Failed_setting_algorithm_cipher_list
push dword [esp + 0x1c]
call fcn.004f9630
mov eax, 0x3b
jmp 0x5106ab
or ecx, 0x400000
mov dword [esp + 0x88], ecx
cmp dword [esp + 0x24], 0
je 0x5105d5
lea eax, [esp + 0x24]
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], eax
mov ebx, dword [esp + 0x40]
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x5c]
push ecx
push 0
push 0
push eax
mov eax, dword [0x6b0bb4]
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 + 0x24]
test eax, eax
je 0x51060f
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x510663
push 0x100
lea eax, [esp + 0xcc]
push eax
push esi
call fcn.0050be80
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push dword [esp + 0x2c]
call fcn.004f9630
push dword [ebx]
call dword [0x6a4004]
add esi, 0x7ff6fd00
mov dword [ebx], 0
add esp, 0x1c
cmp esi, 0xe
ja case.0x51065c.2146893055
movzx eax, byte [esi + 0x5106f4]
jmp dword [eax*4 + 0x5106e8]
xor eax, eax
jmp 0x5106ae
mov eax, dword [esp + 0x18]
push dword [eax + 0x3d0]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push eax
call fcn.004f9630
push esi
call fcn.005f56da
add esp, 0x10
mov eax, edi
jmp 0x5106ae
push str.SSL_versions_not_supported
push esi
call fcn.004f9630
mov eax, 4
jmp 0x5106ab
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push esi
call fcn.004f9630
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x1c8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005d584c
add esp, 0x1bc
ret