Function at 0x100188f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x10093034]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
add eax, eax
mov dword [ebp - 0x1f0], 0
mov edi, edx
mov esi, ecx
push 0x38
push 0
mov eax, dword [edi + eax*8 + 0x198]
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x24c]
push eax
call fcn.100520d0
add esp, 0xc
mov dword [ebp - 0x24c], 4
cmp byte [edi + 0x20d], 0
mov ebx, 0x1b0
mov dword [ebp - 0x1e8], 0x1c0
je 0x100189ec
mov eax, dword [ebp - 0x204]
mov edx, 8
mov ecx, 0x20
cmp byte [eax + 0x47], 0
cmovne ecx, edx
mov edx, dword [edi + 0xb4]
cmp edx, 2
jne 0x1001899e
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
cmovne eax, dword [ebp - 0x1e8]
cmp dword [eax + edi], edx
je 0x1001899e
mov al, byte [esi + 0x4b3]
jmp 0x100189a4
mov al, byte [esi + 0x44b]
test al, al
je 0x100189b0
or ecx, 0x1800
jmp 0x100189f7
cmp edx, 2
jne 0x100189d2
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
cmovne eax, dword [ebp - 0x1e8]
cmp dword [eax + edi], edx
je 0x100189d2
mov al, byte [esi + 0x4b5]
jmp 0x100189d8
mov al, byte [esi + 0x44d]
test al, al
je 0x100189e4
or ecx, 0x1a00
jmp 0x100189f7
or ecx, 0x200
jmp 0x100189f7
mov edx, dword [edi + 0xb4]
mov ecx, 0x1808
cmp byte [edi + 0x20e], 0
mov dword [ebp - 0x21c], ecx
jne 0x10018a0f
or ecx, 4
mov dword [ebp - 0x21c], ecx
cmp edx, 2
jne 0x10018a33
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
mov edx, 0x1c0
cmovne eax, edx
cmp dword [eax + edi], 2
je 0x10018a33
mov al, byte [esi + 0x4b7]
jmp 0x10018a39
mov al, byte [esi + 0x44f]
test al, al
jne 0x10018a49
and ecx, 0xffffffbf
or ecx, 0x10
mov dword [ebp - 0x21c], ecx
mov eax, dword [edi + 0x1d4]
cmp eax, 7
ja case.default.0x10018a5f
movzx eax, byte [eax + 0x100191ec]
jmp dword [eax*4 + 0x100191e4]
push edi
mov edx, esi
lea ecx, [ebp - 0x24c]
call fcn.10017860
add esp, 4
test eax, eax
jne 0x100191d3
mov ecx, dword [edi + 0xb4]
mov edx, 0x1c0
cmp ecx, 2
jne 0x10018aa8
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
cmovne eax, edx
cmp dword [eax + edi], ecx
je 0x10018aa8
mov eax, dword [edi + 0x22c]
jmp 0x10018aae
mov eax, dword [edi + 0x1ec]
test eax, eax
je 0x10018b10
cmp ecx, 2
jne 0x10018ace
cmp dword [edi + 0x14c], 0xffffffff
cmovne ebx, edx
cmp dword [ebx + edi], ecx
je 0x10018ace
mov edx, dword [edi + 0x22c]
jmp 0x10018ad4
mov edx, dword [edi + 0x1ec]
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [ebp - 0x24c]
call fcn.100186e0
mov edi, eax
add esp, 4
test edi, edi
je 0x10018b10
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push esi
call fcn.1000a7d0
mov eax, edi
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3fc]
test eax, eax
jne 0x10018b26
cmp dword [esi + 0x410], eax
je 0x10019096
mov ecx, dword [esi + 0x410]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1e4], ebx
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x200], ebx
mov dword [ebp - 0x1ec], ebx
mov dword [ebp - 0x1f4], ebx
mov dword [ebp - 0x1f8], ecx
test ecx, ecx
je 0x10018b75
mov eax, dword [ecx]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1f4], eax
jmp 0x10018bdd
push eax
call fcn.100648ea
mov edi, eax
add esp, 4
test edi, edi
je case.0x1001916c.2146893056
lea eax, [ebp - 0x1fc]
mov ecx, edi
push eax
lea eax, [ebp - 0x1e4]
push eax
lea edx, [ebp - 0x1e8]
call fcn.10018780
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10018f4e
mov ecx, dword [esi + 0x3fc]
cmp byte [ecx], 0
je 0x10018f1e
mov edx, 0x10089a34
call fcn.10015ec0
mov dword [ebp - 0x200], eax
test eax, eax
je 0x10018f1e
mov ebx, dword [ebp - 0x1e4]
mov ecx, dword [esi + 0x434]
test ecx, ecx
je 0x10018c1c
mov edx, 0x1008bbfc
call fcn.10015a90
test eax, eax
jne 0x10018c1c
cmp dword [ebp - 0x1f8], eax
mov eax, str._memory_blob_
jne 0x10018c08
mov eax, dword [esi + 0x3fc]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push esi
call fcn.1000a7d0
add esp, 0xc
jmp 0x10018f9d
cmp dword [ebp - 0x200], 0
mov eax, dword [ebp - 0x1f8]
jne 0x10018c33
test eax, eax
je 0x10018f54
xor ebx, ebx
test eax, eax
je 0x10018c45
mov dword [ebp - 0x1e4], str._memory_blob_
jmp 0x10018c51
mov eax, dword [esi + 0x3fc]
mov dword [ebp - 0x1e4], eax
test edi, edi
je 0x10018c5e
push edi
call fcn.10054967
add esp, 4
mov edi, dword [ebp - 0x200]
test edi, edi
je 0x10018cef
xor eax, eax
push 2
push eax
push edi
mov dword [ebp - 0x1e8], eax
call fcn.10059e6f
add esp, 0xc
test eax, eax
sete cl
mov byte [ebp - 0x1dd], cl
test eax, eax
jne 0x10018d94
push edi
call fcn.1005a501
add esp, 4
mov dword [ebp - 0x1e8], eax
test eax, eax
jns 0x10018d98
mov byte [ebp - 0x1dd], bl
mov eax, dword [ebp - 0x1ec]
mov edx, dword [ebp - 0x1f4]
test eax, eax
je 0x10018def
push edi
push 1
push edx
push eax
call fcn.1005997d
add esp, 0x10
cmp eax, 1
jne 0x10018def
push edi
call fcn.10059b2f
add esp, 4
cmp byte [ebp - 0x1dd], bl
je 0x10018df8
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x214], eax
mov eax, dword [esi + 0x444]
test eax, eax
je 0x10018d1f
mov ebx, eax
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10018d16
sub ebx, ecx
lea eax, [ebx*2 + 2]
push eax
call dword [0x100939a0]
mov edi, eax
add esp, 4
mov dword [ebp - 0x1fc], edi
test edi, edi
je 0x10018e46
test ebx, ebx
je 0x10018e31
lea ecx, [ebx + 1]
push ecx
push edi
push ebx
push dword [esi + 0x444]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x10018e33
xor eax, eax
mov word [edi], ax
push 0
push edi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push dword [ebp - 0x1fc]
mov edi, eax
call dword [0x100939a8]
add esp, 4
jmp 0x10018e48
xor eax, eax
jmp 0x10018d9e
mov cl, byte [ebp - 0x1dd]
mov edx, eax
mov dword [ebp - 0x1f4], edx
test cl, cl
je 0x10018de4
push 0
push 0
push edi
call fcn.10059e6f
add esp, 0xc
test eax, eax
sete byte [ebp - 0x1dd]
test eax, eax
jne 0x10018cb0
mov eax, dword [ebp - 0x1e8]
inc eax
push eax
call dword [0x100939a0]
add esp, 4
mov dword [ebp - 0x1ec], eax
jmp 0x10018cb6
mov eax, dword [ebp - 0x1ec]
jmp 0x10018cbc
push edi
call fcn.10059b2f
add esp, 4
push dword [esi + 0x3fc]
push str.schannel:_Failed_to_read_cert_file__s
push esi
call fcn.1000a7d0
add esp, 0xc
push dword [ebp - 0x1ec]
call dword [0x100939a8]
add esp, 4
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp eax, ebx
jg 0x10018d69
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x10018d6e
xor edi, edi
cmp dword [ebp - 0x1f8], 0
jne 0x10018e60
push dword [ebp - 0x1ec]
call dword [0x100939a8]
add esp, 4
test edi, edi
jne 0x10018ec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x10018e97
push dword [ebp - 0x1e4]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push esi
call fcn.1000a7d0
add esp, 0xc
lea eax, [edi + 0x3a]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
push eax
push dword [ebp - 0x1e4]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push esi
call fcn.1000a7d0
add esp, 0x10
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0x1f0], eax
test eax, eax
jne 0x10019077
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1e4]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push esi
call fcn.1000a7d0
add esp, 0x10
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
push dword [esi + 0x3fc]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push esi
call fcn.1000a7d0
add esp, 0xc
push edi
call fcn.10054967
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1e4]
mov eax, dword [ebp - 0x1e8]
push ebx
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x1e4], eax
test eax, eax
jne 0x10018fc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push dword [ebp - 0x1e8]
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push esi
call fcn.1000a7d0
add esp, 0x14
push ebx
call dword [0x100939a8]
add esp, 4
test edi, edi
je 0x10018faa
push edi
call fcn.10054967
add esp, 4
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x100939a8]
add esp, 4
mov dword [ebp - 0x20c], 0x14
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x20c]
push 0
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
push 4
push 0x28
push dword [ebp - 0x1fc]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10019032
test edi, edi
je 0x1001900d
push edi
call fcn.10054967
add esp, 4
mov ebx, dword [ebp - 0x1e4]
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x20c]
push 0
push eax
push 0x10000
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0x1f0], eax
test edi, edi
je 0x1001906d
push edi
call fcn.10054967
mov eax, dword [ebp - 0x1f0]
add esp, 4
test eax, eax
je 0x10019013
mov edi, dword [ebp - 0x1e4]
push 0
lea eax, [ebp - 0x1f0]
mov dword [ebp - 0x248], 1
push edi
mov dword [ebp - 0x244], eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
push 0x18
push 1
call dword [0x100939b0]
mov ebx, dword [ebp - 0x204]
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x100190e4
push str.schannel:_unable_to_allocate_memory
push esi
call fcn.1000a7d0
mov eax, dword [ebp - 0x1f0]
add esp, 8
test eax, eax
je case.0x1001916c.2146893056
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
mov dword [eax + 0x14], 1
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [ebp - 0x24c]
push eax
mov eax, dword [0x10095194]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov ecx, dword [ebp - 0x1f0]
mov edi, eax
test ecx, ecx
je 0x10019125
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test edi, edi
je 0x10019189
push ecx
lea edx, [ebp - 0x11c]
mov ecx, edi
call fcn.100272d0
add esp, 4
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push esi
call fcn.1000a7d0
add esp, 0xc
push dword [ebx]
call dword [0x100939a8]
add edi, 0x7ff6fd00
mov dword [ebx], 0
add esp, 4
cmp edi, 0xe
ja case.0x1001916c.2146893055
movzx eax, byte [edi + 0x10019200]
jmp dword [eax*4 + 0x100191f4]
mov eax, 0x23
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
push str.SSL_versions_not_supported
push esi
call fcn.1000a7d0
mov eax, 4
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push esi
call fcn.1000a7d0
mov eax, 0x23
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret