Function at 0x53f75e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x120], 0
add eax, 0x19
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
shl eax, 4
add eax, edi
push 0x38
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x190]
push 0
push eax
call fcn.0055e280
add esp, 0xc
mov dword [ebp - 0x190], 4
cmp byte [edi + 0x210], 0
mov ebx, 0x1b0
mov dword [ebp - 0x128], 0x1c0
push 8
pop edx
je 0x53f857
mov eax, dword [ebp - 0x144]
push 0x20
pop ecx
mov eax, dword [eax + 8]
cmp byte [eax + 0x47], 0
cmovne ecx, edx
mov edx, dword [edi + 0xb8]
cmp edx, 2
jne 0x53f809
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
cmovne eax, dword [ebp - 0x128]
cmp dword [eax + edi], edx
je 0x53f809
mov al, byte [esi + 0x4d3]
jmp 0x53f80f
mov al, byte [esi + 0x467]
test al, al
je 0x53f81b
or ecx, 0x1800
jmp 0x53f862
cmp edx, 2
jne 0x53f83d
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
cmovne eax, dword [ebp - 0x128]
cmp dword [eax + edi], edx
je 0x53f83d
mov al, byte [esi + 0x4d5]
jmp 0x53f843
mov al, byte [esi + 0x469]
test al, al
je 0x53f84f
or ecx, 0x1a00
jmp 0x53f862
or ecx, 0x200
jmp 0x53f862
mov edx, dword [edi + 0xb8]
mov ecx, 0x1808
cmp byte [edi + 0x211], 0
mov dword [ebp - 0x160], ecx
jne 0x53f87a
or ecx, 4
mov dword [ebp - 0x160], ecx
cmp edx, 2
jne 0x53f89e
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
mov edx, 0x1c0
cmovne eax, edx
cmp dword [eax + edi], 2
je 0x53f89e
mov al, byte [esi + 0x4d7]
jmp 0x53f8a4
mov al, byte [esi + 0x46b]
test al, al
jne 0x53f8bb
and ecx, 0xffffffbf
mov eax, str.schannel:_disabled_automatic_use_of_client_certificate
or ecx, 0x10
mov dword [ebp - 0x160], ecx
jmp 0x53f8c0
mov eax, str.schannel:_enabled_automatic_use_of_client_certificate
push eax
push esi
call fcn.0052ccc0
mov eax, dword [edi + 0x1d4]
pop ecx
pop ecx
cmp eax, 7
ja case.default.0x53f8df
movzx eax, byte [eax + 0x53ff62]
jmp dword [eax*4 + 0x53ff5a]
push edi
lea eax, [ebp - 0x190]
push esi
push eax
call fcn.00541a34
add esp, 0xc
test eax, eax
jne 0x53ff4b
mov ecx, dword [edi + 0xb8]
mov edx, 0x1c0
cmp ecx, 2
jne 0x53f928
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
cmovne eax, edx
cmp dword [eax + edi], ecx
je 0x53f928
mov eax, dword [edi + 0x234]
jmp 0x53f92e
mov eax, dword [edi + 0x1f4]
test eax, eax
je 0x53f98b
cmp ecx, 2
jne 0x53f94e
cmp dword [edi + 0x14c], 0xffffffff
cmovne ebx, edx
cmp dword [ebx + edi], ecx
je 0x53f94e
mov ecx, dword [edi + 0x234]
jmp 0x53f954
mov ecx, dword [edi + 0x1f4]
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 8]
add eax, 0x48
push eax
push ecx
lea eax, [ebp - 0x190]
push eax
call fcn.0054199b
mov edi, eax
add esp, 0xc
test edi, edi
je 0x53f98b
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push esi
call fcn.0052cc10
pop ecx
pop ecx
mov eax, edi
jmp 0x53ff4b
mov eax, dword [esi + 0x414]
xor edx, edx
test eax, eax
jne 0x53f9a3
cmp dword [esi + 0x42c], edx
je 0x53fe52
mov ecx, dword [esi + 0x42c]
mov ebx, edx
mov dword [ebp - 0x128], edx
mov edi, edx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x138], ecx
test ecx, ecx
je 0x53f9f4
mov eax, dword [ecx]
mov dword [ebp - 0x12c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x130], eax
jmp 0x53fa5d
push eax
call fcn.0053d87a
mov edi, eax
pop ecx
test edi, edi
je 0x53fe94
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x128]
push eax
push edi
call fcn.0053f4ae
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x53fd3a
mov eax, dword [esi + 0x414]
cmp byte [eax], 0
je 0x53fd19
push 0x5851ec
push eax
call fcn.0053d979
mov dword [ebp - 0x140], eax
pop ecx
pop ecx
test eax, eax
je 0x53fd19
mov ebx, dword [ebp - 0x124]
mov eax, dword [esi + 0x450]
test eax, eax
je 0x53fa9f
push 0x58ad38
push eax
call fcn.005304cf
pop ecx
pop ecx
test eax, eax
jne 0x53fa9f
cmp dword [ebp - 0x138], eax
mov eax, str._memory_blob_
jne 0x53fa8b
mov eax, dword [esi + 0x414]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push esi
call fcn.0052cc10
add esp, 0xc
jmp 0x53fd86
cmp dword [ebp - 0x140], 0
mov eax, dword [ebp - 0x138]
jne 0x53fab6
test eax, eax
je 0x53fd40
and dword [ebp - 0x128], 0
and dword [ebp - 0x148], 0
test eax, eax
je 0x53fad4
mov dword [ebp - 0x124], str._memory_blob_
jmp 0x53fae0
mov eax, dword [esi + 0x414]
mov dword [ebp - 0x124], eax
test edi, edi
je 0x53faeb
push edi
call fcn.00561f7c
pop ecx
mov ebx, dword [ebp - 0x140]
test ebx, ebx
je 0x53fbda
push 2
xor edi, edi
push edi
push ebx
call fcn.0056e50d
add esp, 0xc
mov dword [ebp - 0x13c], eax
test eax, eax
sete byte [ebp - 0x119]
test eax, eax
jne 0x53fb8f
push ebx
call fcn.0056eb7f
mov edi, eax
pop ecx
test edi, edi
jns 0x53fb89
mov byte [ebp - 0x119], 0
mov edi, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x130]
test edi, edi
je 0x53fb50
push ebx
push 1
push ecx
push edi
call fcn.0056bf70
add esp, 0x10
cmp eax, 1
je 0x53fb57
mov byte [ebp - 0x119], 0
push ebx
call fcn.0056c3cc
cmp byte [ebp - 0x119], 0
pop ecx
jne 0x53fbe0
push dword [esi + 0x414]
push str.schannel:_Failed_to_read_cert_file__s
push esi
call fcn.0052cc10
push edi
call dword [0x59e13c]
add esp, 0x10
push 0x3a
jmp 0x53ff4a
mov eax, dword [ebp - 0x13c]
mov ecx, edi
mov dword [ebp - 0x130], ecx
test eax, eax
jne 0x53fbcf
push eax
push eax
push ebx
call fcn.0056e50d
add esp, 0xc
test eax, eax
sete byte [ebp - 0x119]
test eax, eax
jne 0x53fb2e
lea eax, [edi + 1]
push eax
call dword [0x59e138]
mov edi, eax
pop ecx
mov dword [ebp - 0x12c], edi
jmp 0x53fb34
mov edi, dword [ebp - 0x12c]
jmp 0x53fb3a
mov edi, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x158], eax
mov eax, dword [esi + 0x460]
mov dword [ebp - 0x154], edi
test eax, eax
je 0x53fc07
push eax
call fcn.0056c2b0
pop ecx
mov edi, eax
jmp 0x53fc0d
mov edi, dword [ebp - 0x128]
lea eax, [edi*2 + 2]
push eax
call dword [0x59e138]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x53fc76
test edi, edi
je 0x53fc64
lea eax, [edi + 1]
push eax
push ebx
push edi
push dword [esi + 0x460]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x53fc6a
xor eax, eax
mov word [ebx], ax
push 0
push ebx
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push ebx
mov edi, eax
call dword [0x59e13c]
pop ecx
jmp 0x53fc7c
mov eax, dword [ebp - 0x148]
cmp eax, edi
jg 0x53fc43
xor ecx, ecx
mov word [ebx + eax*2], cx
jmp 0x53fc48
mov edi, dword [ebp - 0x134]
cmp dword [ebp - 0x138], 0
jne 0x53fc92
push dword [ebp - 0x12c]
call dword [0x59e13c]
pop ecx
test edi, edi
jne 0x53fcd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x53fcba
push dword [ebp - 0x124]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push esi
call fcn.0052cc10
add esp, 0xc
jmp 0x53fb82
push eax
push dword [ebp - 0x124]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push esi
call fcn.0052cc10
jmp 0x53fb7f
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0x120], eax
test eax, eax
jne 0x53fe34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x124]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push esi
call fcn.0052cc10
add esp, 0x10
push ebx
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x53fb82
push dword [esi + 0x414]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push esi
call fcn.0052cc10
push edi
call fcn.00561f7c
add esp, 0x10
mov eax, ebx
jmp 0x53ff4b
mov ebx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x128]
push ebx
or eax, 0x4000
push eax
push 0
push 0
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x134], eax
test eax, eax
jne 0x53fd9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push dword [ebp - 0x128]
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push esi
call fcn.0052cc10
push ebx
call dword [0x59e13c]
add esp, 0x18
test edi, edi
je 0x53fb82
push edi
call fcn.00561f7c
pop ecx
jmp 0x53fb82
push ebx
call dword [0x59e13c]
pop ecx
xor ebx, ebx
mov dword [ebp - 0x150], 0x14
push ebx
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0x28
push dword [ebp - 0x13c]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x53fdf1
test edi, edi
je 0x53fde3
push edi
call fcn.00561f7c
pop ecx
mov ebx, dword [ebp - 0x134]
push 0
push ebx
jmp 0x53fd0e
push ebx
lea eax, [ebp - 0x150]
push eax
push 0x10000
push ebx
mov ebx, dword [ebp - 0x134]
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0x120], eax
test edi, edi
je 0x53fe28
push edi
call fcn.00561f7c
mov eax, dword [ebp - 0x120]
pop ecx
test eax, eax
je 0x53fde9
mov edi, dword [ebp - 0x134]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x120]
mov dword [ebp - 0x18c], 1
push edi
mov dword [ebp - 0x188], eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
push 0x18
push 1
call dword [0x59e148]
mov ebx, dword [ebp - 0x144]
pop ecx
pop ecx
mov ecx, dword [ebx + 8]
mov dword [ecx], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax]
test eax, eax
jne 0x53fe9b
push str.schannel:_unable_to_allocate_memory
push esi
call fcn.0052cc10
cmp dword [ebp - 0x120], 0
pop ecx
pop ecx
je 0x53fe94
push dword [ebp - 0x120]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
push 0x1b
jmp 0x53ff4a
mov dword [eax + 0x10], 1
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
lea eax, [ecx + 8]
push eax
push ecx
xor ecx, ecx
lea eax, [ebp - 0x190]
push ecx
push ecx
push eax
mov eax, dword [0x5a0264]
push ecx
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push ecx
call dword [eax + 0xc]
cmp dword [ebp - 0x120], 0
mov edi, eax
je 0x53fedf
push dword [ebp - 0x120]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test edi, edi
je 0x53ff26
push 0x100
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.0053c8f4
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push esi
call fcn.0052cc10
mov eax, dword [ebx + 8]
push dword [eax]
call dword [0x59e13c]
mov eax, dword [ebx + 8]
add esp, 0x1c
and dword [eax], 0
cmp edi, 0x80090300
push 0x1b
pop eax
push 0x23
pop ecx
cmovne eax, ecx
jmp 0x53ff4b
xor eax, eax
jmp 0x53ff4b
push str.SSL_versions_not_supported
push esi
call fcn.0052cc10
pop ecx
pop ecx
push 4
jmp 0x53ff4a
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push esi
call fcn.0052cc10
pop ecx
pop ecx
push 0x23
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051bf16
leave
ret