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

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x10091014]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
mov ebx, dword [esp + 0x1b0]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1b8]
push edi
mov dword [esp + 0x1c], ebx
mov esi, dword [edi + 8]
call fcn.1002ec90
push ebx
push edi
mov dword [esp + 0x50], eax
call fcn.1002ec60
mov dword [esp + 0x2c], 0
mov edx, eax
mov eax, dword [esi + 0x1c]
xor ebx, ebx
mov esi, dword [esp + 0x50]
add esp, 0xc
xor ebp, ebp
mov dword [esp + 0x54], eax
cmp byte [esi + 0x39], bl
je 0x100502be
mov cl, byte [eax + 0x48]
cmp byte [edx + 0x63], bl
je 0x1005028d
test cl, cl
mov dword [esp + 0x2c], 0x1820
mov eax, 0x1808
cmove eax, dword [esp + 0x2c]
jmp 0x100502c3
cmp byte [edx + 0x65], bl
je 0x100502a8
test cl, cl
mov dword [esp + 0x2c], 0x1a20
mov eax, 0x1a08
cmove eax, dword [esp + 0x2c]
jmp 0x100502c3
test cl, cl
mov dword [esp + 0x2c], 0x220
mov eax, 0x208
cmove eax, dword [esp + 0x2c]
jmp 0x100502c3
mov eax, 0x1808
mov ecx, eax
or ecx, 4
cmp byte [esi + 0x3a], bl
cmovne ecx, eax
mov dword [esp + 0x48], ecx
mov cl, byte [edx + 0x67]
mov edx, dword [esp + 0x48]
mov eax, edx
or eax, 0x10
test cl, cl
cmove edx, eax
mov eax, str.schannel:_enabled_automatic_use_of_client_certificate
mov dword [esp + 0x48], edx
mov edx, str.schannel:_disabled_automatic_use_of_client_certificate
cmove eax, edx
push eax
push dword [esp + 0x1c]
call fcn.100366e0
movzx eax, byte [esi + 0x38]
add esp, 8
cmp eax, 7
ja case.default.0x10050315
movzx eax, byte [eax + 0x1005114c]
jmp dword [eax*4 + 0x10051144]
push edi
call fcn.1002ec90
add esp, 4
mov edi, dword [eax + 0x34]
movzx esi, byte [eax + 0x38]
test edi, edi
je 0x10050338
cmp edi, 0x10000
jne 0x1005035c
push 3
push 2
push 0x4f7c
push 0
push 0xa
call fcn.1006d060
add esp, 0x14
mov edi, 0x60000
test al, al
mov ecx, 0x70000
cmovne edi, ecx
sar edi, 0x10
cmp esi, edi
jg 0x100503b1
add esi, 0xfffffffc
cmp esi, 3
ja case.default.0x1005036b
jmp dword [esi*4 + 0x10051154]
or ebx, 0x80
jmp case.default.0x1005036b
or ebx, 0x200
jmp case.default.0x1005036b
or ebx, 0x800
jmp case.default.0x1005036b
push 3
push 2
push 0x4f7c
push 0
push 0xa
call fcn.1006d060
add esp, 0x14
test al, al
je 0x10050407
or ebx, 0x2000
inc esi
lea eax, [esi + 4]
cmp eax, edi
jle 0x10050366
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x3c0]
test eax, eax
jne 0x100503cb
cmp dword [edx + 0x3d4], ebp
je 0x100509f6
mov edi, dword [edx + 0x3d4]
xor esi, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
xor ebp, ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x34], edi
test edi, edi
je 0x10050411
mov eax, dword [edi]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
jmp 0x100505a6
push str.schannel:_TLS_1.3_not_supported_on_Windows_prior_to_11
jmp 0x10051117
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov esi, eax
add esp, 4
test esi, esi
je case.0x100510c8.2146893056
push 0x5c
push esi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x4c], eax
test eax, eax
je 0x1005056e
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov edi, eax
sub edi, esi
push edi
push str.CurrentUser
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x10050463
mov dword [esp + 0x1c], 0x10000
jmp 0x1005051d
push edi
push str.LocalMachine
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x10050480
mov dword [esp + 0x1c], 0x20000
jmp 0x1005051d
push edi
push str.CurrentService
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x1005049d
mov dword [esp + 0x1c], 0x40000
jmp 0x1005051d
push edi
push str.Services
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x100504b7
mov dword [esp + 0x1c], 0x50000
jmp 0x1005051d
push edi
push str.Users
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x100504d1
mov dword [esp + 0x1c], 0x60000
jmp 0x1005051d
push edi
push str.CurrentUserGroupPolicy
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x100504eb
mov dword [esp + 0x1c], 0x70000
jmp 0x1005051d
push edi
push str.LocalMachineGroupPolicy
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x10050505
mov dword [esp + 0x1c], 0x80000
jmp 0x1005051d
push edi
push str.LocalMachineEnterprise
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x1005056e
mov dword [esp + 0x1c], 0x90000
mov ebp, dword [esp + 0x4c]
inc ebp
push 0x5c
push ebp
call sub.VCRUNTIME140.dll_strchr
mov edi, eax
add esp, 8
test edi, edi
je 0x1005056e
lea eax, [edi + 1]
mov ecx, eax
mov dword [esp + 0x2c], eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050540
sub ecx, edx
cmp ecx, 0x28
jne 0x1005056e
push ebp
mov byte [edi], al
call dword [0x100915b0]
add esp, 4
mov dword [esp + 0x24], eax
mov byte [edi], 0x5c
test eax, eax
jne 0x1005061d
lea edi, [eax + 0x1b]
jmp 0x10050573
mov edi, 0x3a
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x3c0]
cmp byte [eax], 0
je 0x100510da
push 0x1007de30
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x100510da
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x400]
test eax, eax
je 0x10050609
push 0x10083064
push eax
call fcn.1003d760
add esp, 8
test eax, eax
jne 0x10050605
test edi, edi
je 0x100505cd
mov eax, str._memory_blob_
jmp 0x100505d7
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x3c0]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push dword [esp + 0x20]
call fcn.10036610
add esp, 0xc
test esi, esi
je 0x1005099d
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, 0x3a
jmp 0x10051128
mov edx, dword [esp + 0x18]
test ebp, ebp
jne 0x10050752
test edi, edi
jne 0x10050752
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
push eax
mov eax, ebp
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov edi, eax
mov dword [esp + 0x40], edi
test edi, edi
jne 0x100506a3
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
test edi, edi
mov ecx, str._unknown_
cmovne ecx, edi
push ecx
push ebp
push str.schannel:_Failed_to_open_cert_store__lx__s__last_error_is_0x_lx
push dword [esp + 0x28]
call fcn.10036610
push ebx
call dword [0x100915a8]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x18
test edi, edi
je 0x1005068b
push edi
call ebx
add esp, 4
test esi, esi
je 0x1005099d
push esi
call ebx
add esp, 4
mov eax, 0x3a
jmp 0x10051128
push dword [esp + 0x24]
call dword [0x100915a8]
add esp, 4
mov dword [esp + 0x58], 0x14
lea eax, [esp + 0x98]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push 0
push 0
push eax
lea eax, [esp + 0xa4]
push eax
push 4
push 0x28
push dword [esp + 0x44]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10050707
test esi, esi
je 0x1005073f
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x10051128
push 0
lea eax, [esp + 0x5c]
push eax
push 0x10000
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x20], eax
test esi, esi
je 0x10050737
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x100509f2
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x10051128
xor edi, edi
cmp dword [esp + 0x34], edi
je 0x10050764
mov dword [esp + 0x24], str._memory_blob_
jmp 0x1005076e
mov eax, dword [edx + 0x3c0]
mov dword [esp + 0x24], eax
test esi, esi
je 0x1005077c
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test ebp, ebp
je 0x100507f5
push 2
xor esi, esi
push esi
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
sete cl
mov byte [esp + 0x13], cl
test eax, eax
jne 0x1005089a
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
add esp, 4
test esi, esi
jns 0x10050896
mov byte [esp + 0x13], 0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
test esi, esi
je 0x100508e2
push ebp
push 1
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x100508e2
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x100508ec
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], ebp
mov eax, dword [eax + 0x410]
test eax, eax
je 0x10050821
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10050818
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [0x100915a4]
mov esi, eax
add esp, 4
test esi, esi
je 0x10050946
test edi, edi
je 0x10050915
mov eax, dword [esp + 0x18]
lea ecx, [edi + 1]
push ecx
push esi
push edi
push dword [eax + 0x410]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x10050917
xor eax, eax
mov word [esi], ax
push 3
push 2
push 0
push 0
push 6
call fcn.1006d060
add esp, 0x14
test al, al
lea eax, [esp + 0x4c]
je 0x1005092a
push 0x8000
jmp 0x1005092c
mov cl, byte [esp + 0x13]
mov eax, esi
mov dword [esp + 0x3c], eax
test cl, cl
je 0x100508d9
push 0
push 0
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
sete byte [esp + 0x13]
test eax, eax
jne 0x100507b9
lea eax, [esi + 1]
push eax
call dword [0x100915a4]
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
jmp 0x100507bd
mov esi, dword [esp + 0x28]
jmp 0x100507c1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x18]
push dword [eax + 0x3c0]
push str.schannel:_Failed_to_read_cert_file__s
push eax
call fcn.10036610
push esi
call dword [0x100915a8]
add esp, 0x10
mov eax, 0x3a
jmp 0x10051128
xor eax, eax
cmp eax, edi
jg 0x10050869
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x1005086e
push 0
push esi
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push esi
mov dword [esp + 0x44], eax
call dword [0x100915a8]
mov ebp, dword [esp + 0x2c]
add esp, 4
cmp dword [esp + 0x34], 0
jne 0x10050957
push ebp
call dword [0x100915a8]
add esp, 4
mov edi, dword [esp + 0x40]
test edi, edi
jne 0x100509a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x10050987
push dword [esp + 0x24]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push dword [esp + 0x20]
call fcn.10036610
add esp, 0xc
lea eax, [edi + 0x3a]
jmp 0x10051128
push eax
push dword [esp + 0x28]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_lx
push dword [esp + 0x24]
call fcn.10036610
add esp, 0x10
mov eax, 0x3a
jmp 0x10051128
push 0
push 0
push 0
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x100509f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x28]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_lx
push dword [esp + 0x24]
call fcn.10036610
add esp, 0x10
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x10051128
mov ebp, dword [esp + 0x40]
push 0x20
push 1
call dword [0x100915b4]
mov ecx, dword [esp + 0x5c]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x10050a44
push str.schannel:_unable_to_allocate_memory
push dword [esp + 0x1c]
call fcn.10036610
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x10050a2d
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebp, ebp
je case.0x100510c8.2146893056
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x1b
jmp 0x10051128
mov esi, dword [esp + 0x44]
mov dword [eax + 0x18], 1
mov eax, dword [ecx]
mov dword [eax + 0x14], ebp
cmp dword [esi + 0x10], 0
jne 0x10050e8d
push 3
push 2
push 0x4563
push 0
push 0xa
call fcn.1006d060
add esp, 0x14
test al, al
je 0x10050e8d
push 0x2c
lea eax, [esp + 0x64]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [esp + 0xbc], 0
push 0x54
lea eax, [esp + 0xdc]
movq qword [esp + 0xb8], xmm0
push 0
push eax
movups xmmword [esp + 0xb0], xmm0
movups xmmword [esp + 0xcc], xmm0
movq qword [esp + 0xdc], xmm0
call sub.VCRUNTIME140.dll_memset
mov edi, dword [esi + 0x14]
xor eax, eax
add esp, 0x18
mov word [esp + 0x2c], ax
xor ebp, ebp
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov word [esp + 0x34], ax
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
test edi, edi
je 0x10050e14
mov dh, 1
mov dword [esp + 0x44], eax
mov byte [esp + 0x14], 1
mov byte [esp + 0x17], 1
mov byte [esp + 0x15], 1
mov byte [esp + 0x16], 1
mov byte [esp + 0x13], dh
cmp byte [edi], 0
je 0x10050c78
cmp eax, 5
jge 0x10050c78
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x10050b3f
mov esi, ebp
sub esi, edi
jmp 0x10050b4d
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10050b44
sub esi, ecx
cmp byte [esp + 0x14], 0
je 0x10050b7c
cmp esi, 0x16
jne 0x10050b7c
push esi
push edi
push str.TLS_AES_256_GCM_SHA384
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10050b7c
mov dh, byte [esp + 0x13]
xor cl, cl
mov byte [esp + 0x14], cl
jmp 0x10050c37
cmp byte [esp + 0x17], 0
je 0x10050ba9
cmp esi, 0x16
jne 0x10050ba9
push esi
push edi
push str.TLS_AES_128_GCM_SHA256
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10050ba9
mov dh, byte [esp + 0x13]
mov byte [esp + 0x17], al
jmp 0x10050c33
cmp byte [esp + 0x15], 0
je 0x10050bd9
cmp esi, 0x1c
jne 0x10050bd9
push esi
push edi
push str.TLS_CHACHA20_POLY1305_SHA256
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10050bd9
mov cl, byte [esp + 0x14]
xor ch, ch
mov dh, byte [esp + 0x13]
mov byte [esp + 0x15], ch
jmp 0x10050c3b
cmp byte [esp + 0x16], 0
je 0x10050c0d
cmp esi, 0x18
jne 0x10050c0d
push esi
push edi
push str.TLS_AES_128_CCM_8_SHA256
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10050c0d
mov cl, byte [esp + 0x14]
xor dl, dl
mov ch, byte [esp + 0x15]
mov dh, byte [esp + 0x13]
mov byte [esp + 0x16], dl
jmp 0x10050c3f
cmp byte [esp + 0x13], 0
je 0x10050c5b
cmp esi, 0x16
jne 0x10050c5b
push esi
push edi
push str.TLS_AES_128_CCM_SHA256
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10050c5b
xor dh, dh
mov byte [esp + 0x13], dh
mov cl, byte [esp + 0x14]
mov ch, byte [esp + 0x15]
mov dl, byte [esp + 0x16]
mov edi, ebp
test ebp, ebp
je 0x10050c48
lea edi, [ebp + 1]
mov eax, dword [esp + 0x44]
inc eax
mov dword [esp + 0x44], eax
test edi, edi
jne 0x10050b16
jmp 0x10050c84
push edi
push esi
push str.schannel:_Unknown_TLS_1.3_cipher:__.s
push dword [esp + 0x24]
call fcn.10036610
add esp, 0x10
mov eax, 0x3b
jmp 0x10051128
mov ch, byte [esp + 0x15]
mov dl, byte [esp + 0x16]
mov cl, byte [esp + 0x14]
mov ah, byte [esp + 0x17]
test cl, cl
je 0x10050cb4
test ah, ah
je 0x10050cb4
test ch, ch
je 0x10050cb4
test dl, dl
je 0x10050cb8
test dh, dh
je 0x10050cbc
push str.schannel:_All_available_TLS_1.3_ciphers_were_disabled
push dword [esp + 0x1c]
call fcn.10036610
mov eax, 0x3b
jmp 0x10051125
test dl, dl
jne 0x10050cbc
test dh, dh
je 0x10050d2f
mov dword [esp + 0x2c], 0x200020
lea esi, [esp + 0x2c]
mov dword [esp + 0x30], str.ChainingModeCCM
mov dword [esp + 0xb0], 2
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], 1
mov dword [esp + 0xb4], 0x80008
mov dword [esp + 0xb8], 0x10083318
cmp dl, dh
je 0x10050d28
test dl, dl
je 0x10050d1d
mov dword [esp + 0xc4], 0x80
mov ebp, 1
jmp 0x10050d31
mov dword [esp + 0xc8], 0x40
mov ebp, 1
jmp 0x10050d31
xor ebp, ebp
mov al, ah
test cl, cl
jne 0x10050d4b
mov byte [esp + 0x14], cl
mov byte [esp + 0x17], ah
mov byte [esp + 0x15], ch
test al, al
je 0x10050de5
lea edx, [ebp*8]
mov dword [esp + 0x34], 0x200020
sub edx, ebp
mov dword [esp + 0x38], str.ChainingModeGCM
shl edx, 2
mov dword [esp + 0x4c], edx
cmp cl, ah
je 0x10050d80
test cl, cl
mov esi, str.SHA384
mov eax, str.SHA256
cmove esi, eax
jmp 0x10050d85
mov esi, 0x10083318
mov dl, byte [esp + 0x17]
xor eax, eax
cmp cl, byte [esp + 0x17]
sete al
lea eax, [eax*4 + 4]
movzx ecx, ax
xor eax, eax
cmp byte [esp + 0x14], dl
mov edx, dword [esp + 0x4c]
setne al
add eax, 2
inc ebp
mov dword [esp + edx + 0xb0], eax
lea eax, [esp + 0x34]
mov word [esp + edx + 0xb4], cx
mov word [esp + edx + 0xb6], cx
mov ch, byte [esp + 0x15]
mov dword [esp + edx + 0xb8], esi
mov dword [esp + edx + 0xc0], eax
mov dword [esp + edx + 0xbc], 1
test ch, ch
je 0x10050e14
lea eax, [ebp*8]
sub eax, ebp
inc ebp
mov dword [esp + eax*4 + 0xb0], 2
mov dword [esp + eax*4 + 0xb4], 0x240024
mov dword [esp + eax*4 + 0xb8], str.CHACHA20_POLY1305
lea eax, [esp + 0xb0]
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], eax
not ebx
lea eax, [esp + 0x98]
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x48]
or eax, 0x400000
mov dword [esp + 0x60], 5
cmp dword [esp + 0x20], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0xa0], ebx
je 0x10050e7a
lea eax, [esp + 0x20]
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], eax
mov ebx, dword [esp + 0x54]
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x64]
jmp 0x10051053
mov edi, dword [esi + 0x10]
lea eax, [esp + 0x60]
push 0x38
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x54]
add esp, 0xc
mov dword [esp + 0x60], 4
mov dword [esp + 0x90], eax
mov dword [esp + 0x80], ebx
test edi, edi
je 0x10051022
test ebx, 0x2000
mov ebx, dword [esp + 0x18]
je 0x10050edd
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 ebx
call fcn.100366e0
add esp, 8
cmp dword [esi + 0x14], 0
je 0x10050ef8
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 ebx
call fcn.10036610
mov eax, 0x3b
jmp 0x10051125
xor ebx, ebx
mov dword [esp + 0x34], ebx
nop
cmp byte [edi], 0
je 0x10050ff9
cmp ebx, 0x2f
jge 0x10050ff9
push 0
push 0
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
test eax, eax
jne 0x10050fd3
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
je 0x10050f3d
sub esi, edi
jmp 0x10050f4b
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10050f42
sub esi, ecx
mov edx, dword [str.CALG_MD2]
xor ebx, ebx
test edx, edx
je 0x10050f96
mov eax, edx
lea ebp, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10050f60
sub eax, ebp
cmp esi, eax
jne 0x10050f7d
push esi
push edi
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x10050f8b
mov edx, dword [ebx*8 + 0x10082a18]
inc ebx
test edx, edx
jne 0x10050f57
jmp 0x10050f96
mov eax, dword [ebx*8 + 0x10082a14]
test eax, eax
jne 0x10050fcf
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
push 0x11
push str.USE_STRONG_CRYPTO
push edi
call esi
add esp, 0xc
test eax, eax
je 0x10050fbe
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x1005100a
or dword [esp + 0x90], 0x400000
mov ebx, dword [esp + 0x34]
jmp 0x10050fdf
mov ebx, dword [esp + 0x34]
mov dword [esp + ebx*4 + 0xb0], eax
inc ebx
mov dword [esp + 0x34], ebx
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
mov edi, eax
add esp, 8
test edi, edi
je 0x10050ff9
add edi, 1
jne 0x10050f00
lea eax, [esp + 0xb0]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], eax
jmp 0x1005102e
push str.schannel:_Failed_setting_algorithm_cipher_list
push dword [esp + 0x1c]
call fcn.10036610
mov eax, 0x3b
jmp 0x10051125
or eax, 0x400000
mov dword [esp + 0x90], eax
cmp dword [esp + 0x20], 0
je 0x10051045
lea eax, [esp + 0x20]
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], eax
mov ebx, dword [esp + 0x54]
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x64]
push ecx
push 0
push 0
push eax
mov eax, dword [0x10092d64]
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 0x1005107f
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x100510d6
push 0x100
lea eax, [esp + 0xb4]
push eax
push esi
call fcn.10021cd0
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push dword [esp + 0x2c]
call fcn.10036610
push dword [ebx]
call dword [0x100915a8]
add esi, 0x7ff6fd00
mov dword [ebx], 0
add esp, 0x1c
cmp esi, 0xe
ja case.0x100510c8.2146893055
movzx eax, byte [esi + 0x10051170]
jmp dword [eax*4 + 0x10051164]
mov eax, 0x23
jmp 0x10051128
xor eax, eax
jmp 0x10051128
mov eax, dword [esp + 0x18]
push dword [eax + 0x3c0]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push eax
call fcn.10036610
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
mov eax, edi
jmp 0x10051128
push str.SSL_versions_not_supported
push dword [esp + 0x1c]
call fcn.10036610
mov eax, 4
jmp 0x10051125
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push dword [esp + 0x1c]
call fcn.10036610
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x1b0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001a41e
add esp, 0x1a4
ret