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

Disassembly:
sub esp, 0x180
mov eax, dword [0x100b0270]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
mov ebx, dword [esp + 0x188]
lea eax, [esp + 0x34]
push ebp
push esi
mov esi, dword [esp + 0x194]
push edi
mov edi, dword [esp + 0x19c]
push 0x38
push 0
push eax
lea edi, [edi + 0x19]
mov dword [esp + 0x28], 0
shl edi, 4
add edi, esi
mov dword [esp + 0x40], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x40], 4
cmp byte [esi + 0x210], 0
mov ebp, 0x1b0
je 0x10066f91
mov eax, dword [edi + 8]
mov edx, 8
mov ecx, 0x20
lea edi, [ebp + 0x10]
cmp byte [eax + 0x47], 0
cmovne ecx, edx
mov edx, dword [esi + 0xb8]
cmp edx, 2
jne 0x10066f47
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], edx
je 0x10066f47
mov al, byte [ebx + 0x4d3]
jmp 0x10066f4d
mov al, byte [ebx + 0x467]
test al, al
je 0x10066f59
or ecx, 0x1800
jmp 0x10066f9c
cmp edx, 2
jne 0x10066f77
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], edx
je 0x10066f77
mov al, byte [ebx + 0x4d5]
jmp 0x10066f7d
mov al, byte [ebx + 0x469]
test al, al
je 0x10066f89
or ecx, 0x1a00
jmp 0x10066f9c
or ecx, 0x200
jmp 0x10066f9c
mov edx, dword [esi + 0xb8]
mov ecx, 0x1808
cmp byte [esi + 0x211], 0
mov dword [esp + 0x70], ecx
jne 0x10066fb0
or ecx, 4
mov dword [esp + 0x70], ecx
mov edi, 0x1c0
cmp edx, 2
jne 0x10066fd3
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], edx
je 0x10066fd3
mov al, byte [ebx + 0x4d7]
jmp 0x10066fd9
mov al, byte [ebx + 0x46b]
test al, al
jne 0x10066fee
and ecx, 0xffffffbf
mov eax, str.schannel:_disabled_automatic_use_of_client_certificate
or ecx, 0x10
mov dword [esp + 0x70], ecx
jmp 0x10066ff3
mov eax, str.schannel:_enabled_automatic_use_of_client_certificate
push eax
push ebx
call fcn.10050c90
mov edx, dword [esi + 0x1d4]
add esp, 8
cmp edx, 7
ja case.default.0x10067013
movzx eax, byte [edx + 0x10067944]
jmp dword [eax*4 + 0x1006793c]
mov ecx, dword [esi + 0xb8]
cmp ecx, 2
jne 0x10067062
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], ecx
je 0x10067044
mov edx, dword [esi + 0x214]
mov edi, dword [esi + 0x218]
jmp 0x10067068
cmp ecx, 2
jne 0x10067062
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], ecx
je 0x10067062
mov edi, dword [esi + 0x218]
jmp 0x10067068
mov edi, dword [esi + 0x1d8]
test edi, edi
je 0x10067074
cmp edi, 0x10000
jne 0x10067079
mov edi, 0x60000
sar edi, 0x10
cmp edx, edi
jg 0x100670bb
mov ecx, dword [esp + 0x60]
add edx, 0xfffffffc
cmp edx, 3
ja case.default.0x1006708c
jmp dword [edx*4 + 0x1006794c]
or ecx, 0x80
jmp 0x100670a9
or ecx, 0x200
jmp 0x100670a9
or ecx, 0x800
mov dword [esp + 0x60], ecx
inc edx
lea eax, [edx + 4]
cmp eax, edi
jle 0x10067087
mov ecx, dword [esi + 0xb8]
mov edi, 0x1c0
cmp ecx, 2
jne 0x100670f6
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], ecx
je 0x100670f6
mov eax, dword [esi + 0x234]
jmp 0x100670fc
push str.schannel:_TLS_1.3_is_not_yet_supported
push ebx
call fcn.10050bc0
add esp, 8
mov eax, 0x23
jmp 0x10067920
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x100671b3
cmp ecx, 2
jne 0x10067120
cmp dword [esi + 0x14c], 0xffffffff
cmovne ebp, edi
cmp dword [esi + ebp], ecx
je 0x10067120
mov esi, dword [esi + 0x234]
jmp 0x10067126
mov esi, dword [esi + 0x1f4]
mov ebp, dword [esp + 0x34]
xor edi, edi
mov ebp, dword [ebp + 8]
add ebp, 0x48
test esi, esi
je 0x100671ab
cmp byte [esi], 0
je 0x100671ab
cmp edi, 0x2d
jge 0x100671ab
push 0
push 0
push esi
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
add esp, 0xc
test eax, eax
jne 0x10067190
push esi
call fcn.100660a0
add esp, 4
test eax, eax
jne 0x10067190
push 0x11
push str.USE_STRONG_CRYPTO
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
je 0x10067186
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x100671f3
or dword [esp + 0x70], 0x400000
jmp 0x10067195
mov dword [ebp + edi*4], eax
inc edi
push 0x3a
push esi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
je 0x100671ab
add esi, 1
jne 0x10067136
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], edi
mov edx, dword [ebx + 0x414]
test edx, edx
jne 0x10067208
cmp dword [ebx + 0x42c], edx
je 0x100677e8
mov eax, dword [ebx + 0x42c]
xor edi, edi
mov dword [esp + 0x28], eax
xor ebp, ebp
mov dword [esp + 0x24], edi
xor esi, esi
mov dword [esp + 0x2c], edi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
jmp 0x100673e1
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push ebx
call fcn.10050bc0
mov eax, 0x3b
jmp 0x1006791d
mov eax, dword [ebx + 0x42c]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x24], edi
xor esi, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], eax
test eax, eax
je 0x1006723e
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
jmp 0x100673e1
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov esi, eax
add esp, 4
test esi, esi
je case.0x100678d0.2146893056
push 0x5c
push esi
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x100673a8
mov edi, ebp
sub edi, esi
push edi
push str.CurrentUser
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x10067287
mov edi, 0x10000
jmp 0x10067341
push edi
push str.LocalMachine
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x100672a4
mov edi, 0x20000
jmp 0x10067341
push edi
push str.CurrentService
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x100672c1
mov edi, 0x40000
jmp 0x10067341
push edi
push str.Services
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x100672db
mov edi, 0x50000
jmp 0x10067341
push edi
push str.Users
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x100672f5
mov edi, 0x60000
jmp 0x10067341
push edi
push str.CurrentUserGroupPolicy
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x1006730f
mov edi, 0x70000
jmp 0x10067341
push edi
push str.LocalMachineGroupPolicy
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x10067329
mov edi, 0x80000
jmp 0x10067341
push edi
push str.LocalMachineEnterprise
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x100673a6
mov edi, 0x90000
lea eax, [ebp + 1]
push 0x5c
push eax
mov dword [esp + 0x1c], eax
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x100673a8
lea eax, [ebp + 1]
mov ecx, eax
mov dword [esp + 0x2c], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10067365
sub ecx, edx
cmp ecx, 0x28
jne 0x100673a8
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanlib_vtls_schannel.c
push 0x198
push dword [esp + 0x1c]
mov byte [ebp], al
call fcn.10055860
add esp, 0xc
mov dword [esp + 0x24], eax
mov byte [ebp], 0x5c
test eax, eax
jne 0x10067437
mov dword [esp + 0x14], 0x1b
jmp 0x100673b0
xor edi, edi
mov dword [esp + 0x14], 0x3a
mov eax, dword [ebx + 0x414]
cmp byte [eax], 0
je 0x100678db
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanlib_vtls_schannel.c
push 0x21e
push 0x100a9ea8
push eax
call fcn.100553a0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x100678db
mov eax, dword [ebx + 0x450]
test eax, eax
je 0x1006741f
push 0x1009b6b0
push eax
call fcn.10056e90
add esp, 8
test eax, eax
jne 0x1006741f
cmp dword [esp + 0x28], eax
mov eax, str._memory_blob_
jne 0x1006740e
mov eax, dword [ebx + 0x414]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebx
call fcn.10050bc0
add esp, 0xc
jmp 0x1006747d
mov eax, dword [esp + 0x28]
test ebp, ebp
jne 0x1006754b
test eax, eax
jne 0x1006754b
mov eax, dword [esp + 0x24]
push eax
mov eax, edi
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov ebp, eax
test ebp, ebp
jne 0x10067498
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [esp + 0x24]
push eax
push ebp
push edi
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push ebx
call fcn.10050bc0
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanlib_vtls_schannel.c
push 0x295
push ebp
call fcn.100553e0
add esp, 0x20
test esi, esi
je 0x1006777d
push esi
call fcn.10091de1
add esp, 4
mov eax, 0x3a
jmp 0x10067920
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanlib_vtls_schannel.c
push 0x299
push dword [esp + 0x2c]
call fcn.100553e0
add esp, 0xc
mov dword [esp + 0x38], 0x14
lea eax, [esp + 0x78]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push 0
push 0
push eax
lea eax, [esp + 0x84]
push eax
push 4
push 0x28
push dword [esp + 0x44]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10067501
test esi, esi
je 0x10067538
push esi
call fcn.10091de1
add esp, 4
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x10067920
push 0
lea eax, [esp + 0x3c]
push eax
push 0x10000
push 0
push 0x10001
push ebp
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x10067530
push esi
call fcn.10091de1
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x100677cf
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x10067920
xor edi, edi
test eax, eax
je 0x1006755b
mov dword [esp + 0x14], str._memory_blob_
jmp 0x10067565
mov eax, dword [ebx + 0x414]
mov dword [esp + 0x14], eax
test esi, esi
je 0x10067572
push esi
call fcn.10091de1
add esp, 4
test ebp, ebp
je 0x1006767c
push 2
xor esi, esi
push esi
push ebp
call sub.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 0x100675ef
push ebp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov esi, eax
add esp, 4
test esi, esi
jns 0x100675eb
mov byte [esp + 0x13], 0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
test esi, esi
je 0x1006763b
push ebp
push 1
push eax
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x1006763b
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanlib_vtls_schannel.c
push 0x24e
push ebp
call fcn.10055370
add esp, 0xc
cmp byte [esp + 0x13], 0
jne 0x10067680
jmp 0x1006764e
mov cl, byte [esp + 0x13]
mov eax, esi
mov dword [esp + 0x20], eax
test cl, cl
je 0x10067632
push 0
push 0
push ebp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
test eax, eax
sete byte [esp + 0x13]
test eax, eax
jne 0x100675a9
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanlib_vtls_schannel.c
lea eax, [esi + 1]
push 0x24a
push eax
call fcn.10055490
mov esi, eax
add esp, 0xc
mov dword [esp + 0x18], esi
jmp 0x100675ad
mov esi, dword [esp + 0x18]
jmp 0x100675b1
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanlib_vtls_schannel.c
push 0x24e
push ebp
call fcn.10055370
add esp, 0xc
push dword [ebx + 0x414]
push str.schannel:_Failed_to_read_cert_file__s
push ebx
call fcn.10050bc0
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanlib_vtls_schannel.c
push 0x252
push esi
call fcn.100553e0
add esp, 0x18
mov eax, 0x3a
jmp 0x10067920
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x460]
mov dword [esp + 0x30], esi
test eax, eax
je 0x100676a9
mov edi, eax
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x100676a0
sub edi, ecx
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanlib_vtls_schannel.c
lea eax, [edi*2 + 2]
push 0x25d
push eax
call fcn.10055490
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10067722
test edi, edi
je 0x10067714
lea ecx, [edi + 1]
push ecx
push esi
push edi
push dword [ebx + 0x460]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x10067716
xor eax, eax
mov word [esi], ax
push 0
push esi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanlib_vtls_schannel.c
push 0x26b
push esi
mov ebp, eax
call fcn.100553e0
add esp, 0xc
jmp 0x10067724
xor eax, eax
cmp eax, edi
jg 0x100676ea
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x100676ef
xor ebp, ebp
cmp dword [esp + 0x28], 0
jne 0x10067741
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanlib_vtls_schannel.c
push 0x26e
push dword [esp + 0x20]
call fcn.100553e0
add esp, 0xc
test ebp, ebp
jne 0x10067787
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x1006776a
push dword [esp + 0x14]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.10050bc0
add esp, 0xc
lea eax, [ebp + 0x3a]
jmp 0x10067920
push eax
push dword [esp + 0x18]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push ebx
call fcn.10050bc0
add esp, 0x10
mov eax, 0x3a
jmp 0x10067920
push 0
push 0
push 0
push 0
push 0x10001
push ebp
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x100677cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x18]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push ebx
call fcn.10050bc0
add esp, 0x10
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x10067920
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x48], 1
push ebp
mov dword [esp + 0x50], eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanlib_vtls_schannel.c
push 0x2c4
push 0x18
push 1
call fcn.100552a0
mov ebp, dword [esp + 0x44]
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jne 0x10067837
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.10050bc0
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je case.0x100678d0.2146893056
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
jmp 0x10067920
mov dword [eax + 0x10], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [0x100b0a74]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov ecx, dword [esp + 0x1c]
mov esi, eax
test ecx, ecx
je 0x10067877
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x100678d7
push 0x100
lea eax, [esp + 0x90]
push eax
push esi
call fcn.1003b4b0
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.10050bc0
mov eax, dword [ebp + 8]
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanlib_vtls_schannel.c
push 0x2df
push dword [eax]
call fcn.100553e0
mov eax, dword [ebp + 8]
add esi, 0x7ff6fd00
add esp, 0x24
mov dword [eax], 0
cmp esi, 0xe
ja case.0x100678d0.2146893055
movzx eax, byte [esi + 0x10067968]
jmp dword [eax*4 + 0x1006795c]
xor eax, eax
jmp 0x10067920
push dword [ebx + 0x414]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push ebx
call fcn.10050bc0
push esi
call fcn.10091de1
mov eax, dword [esp + 0x24]
add esp, 0x10
jmp 0x10067920
push str.SSL_versions_not_supported
push ebx
call fcn.10050bc0
mov eax, 4
jmp 0x1006791d
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ebx
call fcn.10050bc0
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100908b3
add esp, 0x180
ret