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

Disassembly:
sub esp, 0x23c
mov eax, dword [0x101354c0]
xor eax, esp
mov dword [esp + 0x238], eax
mov eax, dword [esp + 0x248]
push ebx
mov ebx, dword [esp + 0x244]
add eax, 0x1a
push ebp
push esi
mov esi, dword [esp + 0x250]
add eax, eax
push edi
push 0x38
push 0
mov ebp, dword [esi + eax*8]
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x40], ebp
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esi + 0xb8]
add esp, 0xc
cmp byte [esi + 0x215], 0
mov edi, 0x1b8
mov dword [esp + 0x40], 4
mov dword [esp + 0x2c], 0x1c8
je 0x100a0143
cmp byte [ebp + 0x47], 0
mov ecx, 0x20
mov eax, 8
lea ebp, [esi + 0x154]
cmovne ecx, eax
cmp edx, 2
jne 0x100a00fa
cmp dword [ebp], 0xffffffff
mov eax, edi
cmovne eax, dword [esp + 0x2c]
cmp dword [eax + esi], edx
je 0x100a00fa
mov al, byte [ebx + 0x4bb]
jmp 0x100a0100
mov al, byte [ebx + 0x453]
test al, al
je 0x100a010c
or ecx, 0x1800
jmp 0x100a014e
cmp edx, 2
jne 0x100a0129
cmp dword [ebp], 0xffffffff
mov eax, edi
cmovne eax, dword [esp + 0x2c]
cmp dword [eax + esi], edx
je 0x100a0129
mov al, byte [ebx + 0x4bd]
jmp 0x100a012f
mov al, byte [ebx + 0x455]
test al, al
je 0x100a013b
or ecx, 0x1a00
jmp 0x100a014e
or ecx, 0x200
jmp 0x100a014e
mov ecx, 0x1808
lea ebp, [esi + 0x154]
cmp byte [esi + 0x216], 0
mov dword [esp + 0x70], ecx
jne 0x100a0162
or ecx, 4
mov dword [esp + 0x70], ecx
cmp edx, 2
jne 0x100a0183
cmp dword [ebp], 0xffffffff
mov eax, edi
mov edx, 0x1c8
cmovne eax, edx
cmp dword [eax + esi], 2
je 0x100a0183
mov al, byte [ebx + 0x4bf]
jmp 0x100a0189
mov al, byte [ebx + 0x457]
test al, al
jne 0x100a019e
and ecx, 0xffffffbf
mov eax, str.schannel:_disabled_automatic_use_of_client_certificate
or ecx, 0x10
mov dword [esp + 0x70], ecx
jmp 0x100a01a3
mov eax, str.schannel:_enabled_automatic_use_of_client_certificate
push eax
push ebx
call fcn.1008b150
mov edx, dword [esi + 0x1dc]
add esp, 8
cmp edx, 7
ja case.default.0x100a01c3
movzx eax, byte [edx + 0x100a0a48]
jmp dword [eax*4 + 0x100a0a40]
cmp dword [esi + 0xb8], 2
jne 0x100a01f5
cmp dword [ebp], 0xffffffff
mov eax, edi
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + esi], 2
je 0x100a01f5
mov edx, dword [esi + 0x21c]
mov edi, dword [esi + 0x220]
jmp 0x100a01fb
mov edi, dword [esi + 0x1e0]
test edi, edi
je 0x100a0207
cmp edi, 0x10000
jne 0x100a020c
mov edi, 0x60000
sar edi, 0x10
cmp edx, edi
jg 0x100a024e
mov ecx, dword [esp + 0x60]
add edx, 0xfffffffc
nop word [eax + eax]
cmp edx, 3
ja case.default.0x100a0225
jmp dword [edx*4 + 0x100a0a50]
or ecx, 0x80
jmp 0x100a0242
or ecx, 0x200
jmp 0x100a0242
or ecx, 0x800
mov dword [esp + 0x60], ecx
inc edx
lea eax, [edx + 4]
cmp eax, edi
jle 0x100a0220
mov edx, dword [esi + 0xb8]
cmp edx, 2
jne 0x100a028d
cmp dword [ebp], 0xffffffff
mov eax, 0x1b8
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + esi], edx
je 0x100a028d
mov edi, dword [esi + 0x234]
lea eax, [esi + 0x234]
lea ecx, [esi + 0x1f4]
jmp 0x100a029f
push str.schannel:_TLS_1.3_is_not_yet_supported
jmp 0x100a0a19
mov edi, dword [esi + 0x1f4]
lea ecx, [esi + 0x1f4]
lea eax, [esi + 0x234]
test edi, edi
je 0x100a0351
cmp edx, 2
jne 0x100a02c3
cmp dword [ebp], 0xffffffff
mov edx, 0x1b8
mov ebp, 0x1c8
cmovne edx, ebp
cmp dword [edx + esi], 2
jne 0x100a02c5
mov eax, ecx
mov esi, dword [eax]
xor edi, edi
test esi, esi
je 0x100a0345
nop dword [eax]
cmp byte [esi], 0
je 0x100a0345
cmp edi, 0x2f
jge 0x100a0345
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 0x100a032a
push esi
call fcn.1009f250
add esp, 4
test eax, eax
jne 0x100a032a
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 0x100a0320
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 0x100a0391
or dword [esp + 0x70], 0x400000
jmp 0x100a032f
mov dword [esp + edi*4 + 0x78], eax
inc edi
push 0x3a
push esi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
je 0x100a0345
add esi, 1
jne 0x100a02d0
lea eax, [esp + 0x78]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], eax
mov edx, dword [ebx + 0x404]
test edx, edx
jne 0x100a03a6
cmp dword [ebx + 0x418], edx
je 0x100a090f
mov ecx, dword [ebx + 0x418]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
xor esi, esi
mov dword [esp + 0x28], ecx
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
jmp 0x100a056c
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push ebx
call fcn.1008b080
mov eax, 0x3b
jmp 0x100a0a24
mov ecx, dword [ebx + 0x418]
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], ecx
test ecx, ecx
je 0x100a03dc
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
jmp 0x100a056c
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.0x100a09d0.2146893056
push 0x5c
push esi
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x100a053d
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 0x100a0425
mov edi, 0x10000
jmp 0x100a04df
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 0x100a0442
mov edi, 0x20000
jmp 0x100a04df
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 0x100a045f
mov edi, 0x40000
jmp 0x100a04df
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 0x100a0479
mov edi, 0x50000
jmp 0x100a04df
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 0x100a0493
mov edi, 0x60000
jmp 0x100a04df
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 0x100a04ad
mov edi, 0x70000
jmp 0x100a04df
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 0x100a04c7
mov edi, 0x80000
jmp 0x100a04df
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 0x100a053b
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 0x100a053d
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 0x100a0503
sub ecx, edx
cmp ecx, 0x28
jne 0x100a053d
push dword [esp + 0x14]
mov byte [ebp], al
call dword [0x10135134]
add esp, 4
mov dword [esp + 0x24], eax
mov byte [ebp], 0x5c
test eax, eax
jne 0x100a05c2
mov dword [esp + 0x14], 0x1b
jmp 0x100a0545
xor edi, edi
mov dword [esp + 0x14], 0x3a
mov eax, dword [ebx + 0x404]
cmp byte [eax], 0
je 0x100a09e2
push 0x1011456c
push eax
call fcn.1009d6b0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x100a09e2
mov eax, dword [ebx + 0x43c]
test eax, eax
je 0x100a05aa
push 0x1012114c
push eax
call fcn.1008f840
add esp, 8
test eax, eax
jne 0x100a05aa
cmp dword [esp + 0x28], eax
mov eax, str._memory_blob_
jne 0x100a0599
mov eax, dword [ebx + 0x404]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebx
call fcn.1008b080
add esp, 0xc
jmp 0x100a05ff
mov eax, dword [esp + 0x28]
test ebp, ebp
jne 0x100a06c6
test eax, eax
jne 0x100a06c6
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 0x100a061a
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.1008b080
push ebp
call dword [0x1013512c]
add esp, 0x18
test esi, esi
je 0x100a08a4
push esi
call fcn.100cc3ad
add esp, 4
mov eax, 0x3a
jmp 0x100a0a27
push dword [esp + 0x24]
call dword [0x1013512c]
add esp, 4
mov dword [esp + 0x38], 0x14
lea eax, [esp + 0x134]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push 0
push 0
push eax
lea eax, [esp + 0x140]
push eax
push 4
push 0x28
push dword [esp + 0x44]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x100a067d
test esi, esi
je 0x100a066a
push esi
call fcn.100cc3ad
add esp, 4
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x100a0a27
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 0x100a06ac
push esi
call fcn.100cc3ad
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x100a08f6
push eax
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x100a0a27
xor edi, edi
test eax, eax
je 0x100a06d6
mov dword [esp + 0x14], str._memory_blob_
jmp 0x100a06e0
mov eax, dword [ebx + 0x404]
mov dword [esp + 0x14], eax
test esi, esi
je 0x100a06ed
push esi
call fcn.100cc3ad
add esp, 4
test ebp, ebp
je 0x100a07c3
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 0x100a0758
push ebp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov esi, eax
add esp, 4
test esi, esi
jns 0x100a0754
mov byte [esp + 0x13], 0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
test esi, esi
je 0x100a0795
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 0x100a0795
push ebp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
cmp byte [esp + 0x13], 0
jne 0x100a07c7
jmp 0x100a079e
mov cl, byte [esp + 0x13]
mov eax, esi
mov dword [esp + 0x20], eax
test cl, cl
je 0x100a078f
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 0x100a0724
lea eax, [esi + 1]
push eax
call dword [0x10135128]
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
jmp 0x100a0728
mov esi, dword [esp + 0x18]
jmp 0x100a072c
push ebp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
push dword [ebx + 0x404]
push str.schannel:_Failed_to_read_cert_file__s
push ebx
call fcn.1008b080
push esi
call dword [0x1013512c]
add esp, 0x10
mov eax, 0x3a
jmp 0x100a0a27
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x44c]
mov dword [esp + 0x30], esi
test eax, eax
je 0x100a07eb
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100a07e2
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [0x10135128]
mov esi, eax
add esp, 4
test esi, esi
je 0x100a0852
test edi, edi
je 0x100a0844
lea ecx, [edi + 1]
push ecx
push esi
push edi
push dword [ebx + 0x44c]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x100a0846
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 esi
mov ebp, eax
call dword [0x1013512c]
add esp, 4
jmp 0x100a0854
xor eax, eax
cmp eax, edi
jg 0x100a0823
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x100a0828
xor ebp, ebp
cmp dword [esp + 0x28], 0
jne 0x100a0868
push dword [esp + 0x18]
call dword [0x1013512c]
add esp, 4
test ebp, ebp
jne 0x100a08ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x100a0891
push dword [esp + 0x14]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.1008b080
add esp, 0xc
lea eax, [ebp + 0x3a]
jmp 0x100a0a27
push eax
push dword [esp + 0x18]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push ebx
call fcn.1008b080
add esp, 0x10
mov eax, 0x3a
jmp 0x100a0a27
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 0x100a08f6
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.1008b080
add esp, 0x10
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x100a0a27
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 0x18
push 1
call dword [0x10135138]
mov edi, dword [esp + 0x3c]
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x100a094d
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.1008b080
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je case.0x100a09d0.2146893056
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
jmp 0x100a0a27
mov dword [eax + 0x14], 1
mov ecx, dword [edi]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [0x101363e0]
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 0x100a098a
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x100a09de
push 0x100
lea eax, [esp + 0x14c]
push eax
push esi
call fcn.100754b0
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.1008b080
push dword [edi]
call dword [0x1013512c]
add esi, 0x7ff6fd00
mov dword [edi], 0
add esp, 0x1c
cmp esi, 0xe
ja case.0x100a09d0.2146893055
movzx eax, byte [esi + 0x100a0a6c]
jmp dword [eax*4 + 0x100a0a60]
mov eax, 0x23
jmp 0x100a0a27
xor eax, eax
jmp 0x100a0a27
push dword [ebx + 0x404]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push ebx
call fcn.1008b080
push esi
call fcn.100cc3ad
mov eax, dword [esp + 0x24]
add esp, 0x10
jmp 0x100a0a27
push str.SSL_versions_not_supported
push ebx
call fcn.1008b080
mov eax, 4
jmp 0x100a0a24
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ebx
call fcn.1008b080
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ca284
add esp, 0x23c
ret