Function at 0x98b320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x9fc230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
push 0x38
mov ebx, edx
add eax, eax
mov eax, dword [ebx + eax*8 + 0x198]
lea ecx, [ebp - 0x244]
push 0
push ecx
mov dword [ebp - 0x1d8], edi
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x204], eax
call fcn.0095d660
add esp, 0xc
cmp dword [ebx + 0x218], 0
mov dword [ebp - 0x244], 4
je 0x98b40e
mov edx, dword [ebp - 0x204]
mov eax, dword [edx + 0x50]
mov esi, dword [ebx + 0xb4]
neg eax
sbb eax, eax
and eax, 0xffffffe8
add eax, 0x20
cmp esi, 2
jne 0x98b3c2
xor ecx, ecx
cmp dword [ebx + 0x14c], 0xffffffff
setne cl
add ecx, 0x1b
add ecx, ecx
cmp dword [ebx + ecx*8], esi
je 0x98b3c2
mov ecx, dword [edi + 0x534]
jmp 0x98b3c8
mov ecx, dword [edi + 0x4a0]
test ecx, ecx
je 0x98b3d3
or eax, 0x1800
jmp 0x98b413
cmp esi, 2
jne 0x98b3f6
xor edx, edx
cmp dword [ebx + 0x14c], 0xffffffff
setne dl
add edx, 0x1b
add edx, edx
cmp dword [ebx + edx*8], esi
je 0x98b3f6
mov ecx, dword [edi + 0x53c]
jmp 0x98b3fc
mov ecx, dword [edi + 0x4a8]
test ecx, ecx
je 0x98b407
or eax, 0x1a00
jmp 0x98b413
or eax, 0x200
jmp 0x98b413
mov eax, 0x1808
cmp dword [ebx + 0x21c], 0
mov dword [ebp - 0x214], eax
jne 0x98b42b
or eax, 4
mov dword [ebp - 0x214], eax
cmp dword [ebx + 0xb4], 2
jne 0x98b453
xor ecx, ecx
cmp dword [ebx + 0x14c], 0xffffffff
setne cl
add ecx, 0x1b
add ecx, ecx
cmp dword [ebx + ecx*8], 2
je 0x98b453
mov ecx, dword [edi + 0x544]
jmp 0x98b459
mov ecx, dword [edi + 0x4b0]
test ecx, ecx
jne 0x98b470
and eax, 0xffffffbf
or eax, 0x10
mov dword [ebp - 0x214], eax
push str.schannel:_disabled_automatic_use_of_client_certificate
jmp 0x98b475
push str.schannel:_enabled_automatic_use_of_client_certificate
push edi
call fcn.0097e570
mov eax, dword [ebx + 0x1d4]
add esp, 8
cmp eax, 7
ja case.default.0x98b494
movzx edx, byte [eax + 0x98bc04]
jmp dword [edx*4 + 0x98bbfc]
push edi
mov eax, ebx
lea esi, [ebp - 0x244]
call fcn.0098a390
add esp, 4
test eax, eax
jne 0x98bbea
mov ecx, dword [ebx + 0xb4]
cmp ecx, 2
jne 0x98b4db
cmp dword [ebx + 0x14c], 0xffffffff
setne al
add eax, 0x1b
add eax, eax
cmp dword [ebx + eax*8], ecx
je 0x98b4db
mov eax, dword [ebx + 0x248]
jmp 0x98b4e1
mov eax, dword [ebx + 0x1f4]
test eax, eax
je 0x98b54d
cmp ecx, 2
jne 0x98b509
xor ecx, ecx
cmp dword [ebx + 0x14c], 0xffffffff
setne cl
add ecx, 0x1b
add ecx, ecx
cmp dword [ebx + ecx*8], 2
je 0x98b509
mov ebx, dword [ebx + 0x248]
jmp 0x98b50f
mov ebx, dword [ebx + 0x1f4]
lea edx, [ebp - 0x1d4]
mov eax, ebx
push edx
lea ebx, [ebp - 0x244]
call fcn.0098b0f0
mov esi, eax
add esp, 4
test esi, esi
je 0x98b54d
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push edi
call fcn.0097e5e0
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x434]
test edx, edx
jne 0x98b563
cmp dword [edi + 0x450], edx
je 0x98bab9
mov eax, dword [ebp - 0x1d8]
xor edi, edi
xor ecx, ecx
xor ebx, ebx
cmp dword [eax + 0x450], ecx
mov dword [ebp - 0x1fc], edi
setne cl
xor esi, esi
mov dword [ebp - 0x1dc], edi
mov dword [ebp - 0x1e4], edi
mov dword [ebp - 0x1f4], edi
mov dword [ebp - 0x1e8], edi
mov dword [ebp - 0x1f0], edi
mov dword [ebp - 0x1ec], ecx
test ecx, ecx
je 0x98b5c4
mov eax, dword [eax + 0x450]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x1f0], edx
jmp 0x98b665
push edx
call fcn.0098f2d0
mov esi, eax
add esp, 4
test esi, esi
je 0x98baf1
lea eax, [ebp - 0x1e4]
push eax
lea ecx, [ebp - 0x1dc]
push ecx
lea edx, [ebp - 0x1fc]
push edx
mov edi, esi
call fcn.0098b190
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x1f8], ebx
test ebx, ebx
je 0x98b709
mov edi, dword [ebp - 0x1d8]
mov eax, dword [edi + 0x434]
cmp byte [eax], 0
je 0x98b631
push 0x9e5748
push eax
call fcn.0098f410
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x98b65f
mov ebx, dword [ebp - 0x1f8]
mov eax, dword [edi + 0x434]
push eax
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push edi
call fcn.0097e5e0
push esi
call fcn.0095d575
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1dc]
mov ecx, dword [ebp - 0x1d8]
mov eax, dword [ecx + 0x480]
test eax, eax
je 0x98b6da
push 0x9e7aec
push eax
call fcn.00986ab0
add esp, 8
test eax, eax
jne 0x98b6da
cmp dword [ebp - 0x1ec], eax
je 0x98b696
mov eax, str._memory_blob_
jmp 0x98b6a2
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0x434]
push eax
mov eax, dword [ebp - 0x1d8]
push str.schannel:_certificate_format_compatibility_error__for__s
push eax
call fcn.0097e5e0
add esp, 0xc
test esi, esi
je 0x98b6c4
push esi
call fcn.0095d575
add esp, 4
pop edi
pop esi
mov eax, 0x3a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x98b6e6
cmp dword [ebp - 0x1ec], ebx
je 0x98b70f
xor edi, edi
mov dword [ebp - 0x1e4], edi
cmp dword [ebp - 0x1ec], edi
je 0x98b802
mov dword [ebp - 0x1dc], str._memory_blob_
jmp 0x98b814
mov edi, dword [ebp - 0x1dc]
mov ecx, dword [ebp - 0x1fc]
push edi
or ecx, 0x4000
push ecx
push 0
push 0
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov ebx, eax
test ebx, ebx
jne 0x98b75e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x1fc]
push eax
mov eax, dword [ebp - 0x1d8]
push edi
push edx
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push eax
call fcn.0097e5e0
push edi
call dword [0x9fd340]
add esp, 0x18
jmp 0x98b6b7
push edi
call dword [0x9fd340]
add esp, 4
push 0
push 0
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x20c]
push edx
mov eax, ecx
push eax
push 4
mov dword [ebp - 0x208], ecx
mov ecx, dword [ebp - 0x1e4]
push 0x28
push ecx
mov dword [ebp - 0x20c], 0x14
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x98b7b9
test esi, esi
je 0x98b7ab
push esi
call fcn.0095d575
add esp, 4
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x98b6c4
push 0
lea edx, [ebp - 0x20c]
push edx
push 0x10000
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0x1e0], eax
test esi, esi
je 0x98b7e8
push esi
call fcn.0095d575
add esp, 4
cmp dword [ebp - 0x1e0], 0
je 0x98b7ab
lea eax, [ebp - 0x1e0]
mov dword [ebp - 0x23c], eax
jmp 0x98baa0
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0x434]
mov dword [ebp - 0x1dc], edx
cmp esi, edi
je 0x98b821
push esi
call fcn.0095d575
add esp, 4
test ebx, ebx
je 0x98b8eb
push 2
xor edi, edi
push edi
push ebx
call fcn.009bc461
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x98b853
push ebx
call fcn.009bc372
mov edi, eax
add esp, 4
test edi, edi
jns 0x98b853
xor esi, esi
jmp 0x98b884
mov dword [ebp - 0x1f0], edi
test esi, esi
je 0x98b884
push 0
push 0
push ebx
call fcn.009bc461
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x98b884
inc edi
push edi
call dword [0x9fd33c]
add esp, 4
mov dword [ebp - 0x1e8], eax
mov edi, dword [ebp - 0x1e8]
test edi, edi
je 0x98b8a6
mov eax, dword [ebp - 0x1f0]
push ebx
push 1
push eax
push edi
call fcn.009bbef5
add esp, 0x10
cmp eax, 1
je 0x98b8a8
xor esi, esi
push ebx
call fcn.0096f854
add esp, 4
test esi, esi
jne 0x98b8ef
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [eax + 0x434]
push ecx
push str.schannel:_Failed_to_read_cert_file__s
push eax
call fcn.0097e5e0
push edi
call dword [0x9fd340]
add esp, 0x10
pop edi
lea eax, [esi + 0x3a]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret
mov ebx, edi
jmp 0x98b8f7
mov ebx, dword [ebp - 0x1e4]
mov edi, ebx
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ebp - 0x1e8]
mov dword [ebp - 0x200], eax
mov eax, dword [ecx + 0x490]
mov dword [ebp - 0x1fc], edx
test eax, eax
je 0x98b92d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x98b922
sub eax, edx
mov edi, eax
lea edx, [edi + edi + 2]
push edx
call dword [0x9fd33c]
mov esi, eax
add esp, 4
test esi, esi
je 0x98b9a0
test edi, edi
je 0x98b96b
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0x490]
lea eax, [edi + 1]
push eax
push esi
push edi
push edx
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
js 0x98b977
cmp ebx, edi
jg 0x98b977
xor eax, eax
mov word [esi + ebx*2], ax
jmp 0x98b97c
xor ecx, ecx
mov word [esi], cx
push 0
push esi
lea edx, [ebp - 0x200]
push edx
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov edi, eax
push esi
mov dword [ebp - 0x1f4], edi
call dword [0x9fd340]
add esp, 4
jmp 0x98b9a6
mov edi, dword [ebp - 0x1f4]
cmp dword [ebp - 0x1ec], 0
jne 0x98b9bf
mov eax, dword [ebp - 0x1e8]
push eax
call dword [0x9fd340]
add esp, 4
test edi, edi
jne 0x98ba2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x98b9fd
mov ecx, dword [ebp - 0x1dc]
mov edx, dword [ebp - 0x1d8]
push ecx
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push edx
call fcn.0097e5e0
add esp, 0xc
lea eax, [edi + 0x3a]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1d8]
push eax
mov eax, dword [ebp - 0x1dc]
push eax
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push ecx
call fcn.0097e5e0
add esp, 0x10
pop edi
pop esi
mov eax, 0x3a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
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 - 0x1e0], eax
test eax, eax
jne 0x98ba8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x1dc]
push eax
mov eax, dword [ebp - 0x1d8]
push edx
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push eax
call fcn.0097e5e0
add esp, 0x10
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop edi
pop esi
mov eax, 0x3a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 0x23c], ecx
push 0
push ebx
mov dword [ebp - 0x240], 1
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov edi, dword [ebp - 0x1d8]
push 0x18
push 1
call dword [0x9fd34c]
mov ebx, dword [ebp - 0x204]
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x98bb07
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.0097e5e0
mov eax, dword [ebp - 0x1e0]
add esp, 8
test eax, eax
je 0x98baf1
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret
mov dword [eax + 0x14], 1
mov eax, dword [ebx]
mov ecx, dword [0xa0099c]
lea edx, [eax + 8]
push edx
mov edx, dword [ecx + 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x244]
push eax
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push 0
call edx
mov esi, eax
mov eax, dword [ebp - 0x1e0]
test eax, eax
je 0x98bb49
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x98bba0
push 0x100
lea eax, [ebp - 0x118]
push eax
push esi
call fcn.009ae990
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push edi
call fcn.0097e5e0
mov ecx, dword [ebx]
push ecx
call dword [0x9fd340]
add esp, 0x1c
xor eax, eax
cmp esi, 0x80090300
setne al
pop edi
pop esi
mov dword [ebx], 0
pop ebx
lea eax, [eax*8 + 0x1b]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret
push str.SSL_versions_not_supported
push edi
call fcn.0097e5e0
add esp, 8
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push edi
call fcn.0097e5e0
mov eax, 0x23
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00962130
mov esp, ebp
pop ebp
ret