Function at 0x57c880
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x16c
mov ebx, edx
mov esi, ecx
mov eax, dword [esp + 0x180]
mov ecx, dword [0x7c3824]
xor ecx, esp
mov dword [esp + 0x168], ecx
mov dword [esp + 0x64], 0
shl eax, 4
mov ebp, dword [edx + eax + 0x198]
xorps xmm0, xmm0
movups xmmword [esp + 0x50], xmm0
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x60], 0
mov dword [esp + 0x2c], 4
cmp byte [edx + 0x210], 0
je 0x57c931
cmp byte [ebp + 0x47], 0
mov ecx, 0x20
mov eax, 8
cmove eax, ecx
cmp dword [ebx + 0xb8], 2
jne 0x57c914
xor ecx, ecx
cmp dword [ebx + 0x14c], 0xffffffff
setne cl
shl ecx, 4
cmp dword [ebx + ecx + 0x1b0], 2
jne 0x57c959
cmp byte [esi + 0x46f], 0
jne 0x57c966
cmp byte [esi + 0x471], 0
je 0x57cc66
or eax, 0x1a00
jmp 0x57c96b
mov dword [esp + 0x5c], 0x1808
mov eax, 0x1808
cmp byte [ebx + 0x211], 0
jne 0x57c978
or eax, 4
mov dword [esp + 0x5c], eax
cmp dword [ebx + 0xb8], 2
jne 0x57c99e
jmp 0x57c981
cmp byte [esi + 0x4db], 0
je 0x57cc59
or eax, 0x1800
mov dword [esp + 0x5c], eax
cmp byte [ebx + 0x211], 0
je 0x57c947
cmp dword [ebx + 0xb8], 2
jne 0x57c99e
xor ecx, ecx
cmp dword [ebx + 0x14c], 0xffffffff
setne cl
shl ecx, 4
cmp dword [ebx + ecx + 0x1b0], 2
jne 0x57ca2e
mov ecx, str.schannel:_enabled_automatic_use_of_client_certificate
cmp byte [esi + 0x473], 0
jne 0x57c9bb
and eax, 0xffffffaf
or eax, 0x10
mov dword [esp + 0x5c], eax
mov ecx, str.schannel:_disabled_automatic_use_of_client_certificate
push ecx
push esi
call fcn.0051ec50
add esp, 8
mov eax, dword [ebx + 0x1d4]
cmp eax, 7
ja 0x57ca5d
mov ecx, 0xf3
bt ecx, eax
jae 0x57ca45
lea ecx, [esp + 0x2c]
mov edx, esi
push ebx
call fcn.0057d070
add esp, 4
mov edi, eax
test eax, eax
jne 0x57cfe7
cmp dword [ebx + 0xb8], 2
jne 0x57ca19
xor eax, eax
cmp dword [ebx + 0x14c], 0xffffffff
setne al
shl eax, 4
cmp dword [ebx + eax + 0x1b0], 2
jne 0x57ca75
cmp dword [ebx + 0x1f4], 0
je 0x57caaf
add ebx, 0x1f4
jmp 0x57ca84
mov ecx, str.schannel:_enabled_automatic_use_of_client_certificate
cmp byte [esi + 0x4df], 0
jne 0x57c9bb
jmp 0x57c9ac
push str.SSL_versions_not_supported
push esi
call fcn.0051ed60
add esp, 8
mov edi, 4
jmp 0x57cfe7
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push esi
call fcn.0051ed60
add esp, 8
mov edi, 0x23
jmp 0x57cfe7
cmp dword [ebx + 0x234], 0
je 0x57caaf
add ebx, 0x234
lea eax, [ebp + 0x48]
mov edx, dword [ebx]
lea ecx, [esp + 0x2c]
push eax
call fcn.0057d130
add esp, 4
test eax, eax
je 0x57caaf
mov edi, eax
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push esi
call fcn.0051ed60
add esp, 8
jmp 0x57cfe7
mov eax, dword [esi + 0x41c]
mov edi, dword [esi + 0x434]
test eax, eax
jne 0x57cac7
test edi, edi
je 0x57cf20
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
test edi, edi
je 0x57cc70
mov eax, dword [edi]
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
xor ebx, ebx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x458]
test eax, eax
je 0x57cb1d
push 0x66a499
push eax
call fcn.0052afc0
add esp, 8
test eax, eax
je 0x57cd18
mov dword [esp + 0x10], str._memory_blob_
test edi, edi
jne 0x57cb33
mov eax, dword [esi + 0x41c]
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x57cb40
push ebx
call fcn.005fd8d5
add esp, 4
test edi, edi
je 0x57ccea
mov ebx, dword [esp + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 8], ebx
mov dword [esp + 0x6c], ebx
mov eax, dword [esp]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x468]
mov dword [esp], 0
mov ebx, 0
test eax, eax
je 0x57cb80
push eax
call fcn.005fef10
add esp, 4
mov ebx, eax
lea eax, [ebx + ebx]
add eax, 2
push eax
call dword [0x7c387c]
add esp, 4
test eax, eax
je 0x57cbe9
mov edi, eax
xor edx, edx
mov eax, 0
test ebx, ebx
je 0x57cbbc
lea eax, [ebx + 1]
push eax
push edi
push ebx
push dword [esi + 0x468]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
cmp eax, ebx
mov ecx, eax
cmovg ecx, edx
test eax, eax
cmovs ecx, edx
mov word [edi + ecx*2], 0
lea eax, [esp + 0x68]
push 0
push edi
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov dword [esp], eax
push edi
call dword [0x7c3880]
add esp, 4
cmp dword [esp + 0x14], 0
jne 0x57cbfd
push dword [esp + 8]
call dword [0x7c3880]
add esp, 4
mov edi, dword [esp]
test edi, edi
je 0x57cd52
sub esp, 0x18
movaps xmm0, xmmword [0x6378b0]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x14], 0
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x64], eax
test eax, eax
je 0x57ce32
mov dword [esp + 0x30], 1
lea eax, [esp + 0x64]
mov dword [esp + 0x34], eax
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov edi, 0x3a
mov al, 1
jmp 0x57cf18
cmp byte [esi + 0x4dd], 0
jne 0x57c92a
or eax, 0x200
jmp 0x57c96b
push eax
call fcn.0057a1d0
add esp, 4
test eax, eax
je 0x57cd48
mov ebx, eax
mov dword [esp + 0x14], edi
lea eax, [esp + 0x20]
lea edi, [esp + 0x24]
lea edx, [esp + 0x28]
mov ecx, ebx
push eax
push edi
call fcn.0057d1e0
add esp, 8
test eax, eax
je 0x57cd78
mov edi, eax
mov eax, dword [esi + 0x41c]
cmp byte [eax], 0
je 0x57ce10
push 0x665877
push eax
call fcn.0057a350
add esp, 8
test eax, eax
je 0x57ce10
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [esp + 8], 0
mov edi, dword [esp + 0x14]
jmp 0x57cafd
mov ebx, edi
push 2
push 0
push dword [esp + 0xc]
call fcn.005f3c1e
add esp, 0xc
test eax, eax
je 0x57ce59
mov dword [esp + 0xc], 0
mov dword [esp], 0
jmp 0x57ce98
mov eax, str._memory_blob_
test edi, edi
jne 0x57cd27
mov eax, dword [esi + 0x41c]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push esi
call fcn.0051ed60
add esp, 0xc
mov edi, 0x3a
test ebx, ebx
jne 0x57ce24
jmp 0x57cf16
mov edi, 0x1b
jmp 0x57cf16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x57cefe
push dword [esp + 0x10]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push esi
call fcn.0051ed60
add esp, 0xc
jmp 0x57cf11
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
or eax, 0x4000
push edi
push eax
push 0
push 0
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [esp], eax
test eax, eax
je 0x57d002
push edi
call dword [0x7c3880]
add esp, 4
lea eax, [esp + 0x68]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x14
lea edi, [esp + 0x18]
push 0
push 0
push edi
push eax
push 4
push 0x28
push dword [esp + 0x38]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x57d031
push 0
push edi
push 0x10000
push 0
push 0x10001
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x64], eax
push ebx
call fcn.005fd8d5
add esp, 4
cmp dword [esp + 0x64], 0
jne 0x57cc34
jmp 0x57ce4b
push dword [esi + 0x41c]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push esi
call fcn.0051ed60
add esp, 0xc
push ebx
call fcn.005fd8d5
add esp, 4
jmp 0x57cf16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x14]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push esi
call fcn.0051ed60
add esp, 0x10
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x57cf11
mov edi, eax
push dword [esp + 4]
call fcn.005f482b
add esp, 4
test eax, eax
mov ecx, dword [esp]
cmovns ecx, eax
mov dword [esp], ecx
js 0x57ce90
test edi, edi
jne 0x57ce90
push 0
push 0
push dword [esp + 0xc]
call fcn.005f3c1e
add esp, 0xc
test eax, eax
je 0x57d045
mov dword [esp + 0xc], 0
mov edi, ebx
mov ebx, dword [esp + 8]
mov eax, dword [esp + 4]
test ebx, ebx
je 0x57ced5
push eax
push 1
push dword [esp + 8]
push ebx
call fcn.005fd6df
add esp, 0x10
cmp eax, 1
mov eax, dword [esp + 4]
jne 0x57ced5
push eax
call fcn.005fcd83
add esp, 4
cmp byte [esp + 0xc], 0
jne 0x57cb4c
jmp 0x57cede
push eax
call fcn.005fcd83
add esp, 4
push dword [esi + 0x41c]
push str.schannel:_Failed_to_read_cert_file__s
push esi
call fcn.0051ed60
add esp, 0xc
push ebx
call dword [0x7c3880]
add esp, 4
jmp 0x57cf11
push eax
push dword [esp + 0x14]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push esi
call fcn.0051ed60
add esp, 0x10
mov edi, 0x3a
xor eax, eax
test al, al
je 0x57cfe7
push 0x18
push 1
call dword [0x7c388c]
add esp, 8
mov dword [ebp], eax
test eax, eax
je 0x57cfc1
mov dword [eax + 0x10], 1
mov eax, dword [0x7d1c7c]
mov ecx, dword [ebp]
lea edx, [ecx + 8]
push edx
push ecx
push 0
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push 0
call dword [eax + 0xc]
mov edi, eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x57cf74
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test edi, edi
je 0x57cfe5
lea eax, [esp + 0x68]
push 0x100
push eax
push edi
call fcn.0058a200
add esp, 0xc
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push esi
call fcn.0051ed60
add esp, 0xc
push dword [ebp]
call dword [0x7c3880]
add esp, 4
mov dword [ebp], 0
xor eax, eax
cmp edi, 0x80090300
setne al
lea edi, [eax*8 + 0x1b]
jmp 0x57cfe7
push str.schannel:_unable_to_allocate_memory
push esi
call fcn.0051ed60
add esp, 8
mov eax, dword [esp + 0x64]
mov edi, 0x1b
test eax, eax
je 0x57cfe7
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x57cfe7
xor edi, edi
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.005db451
mov eax, edi
add esp, 0x16c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push dword [esp + 0x10]
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push esi
call fcn.0051ed60
add esp, 0x14
push edi
call dword [0x7c3880]
add esp, 4
push ebx
call fcn.005fd8d5
jmp 0x57cef9
push ebx
call fcn.005fd8d5
add esp, 4
push 0
push dword [esp + 4]
jmp 0x57ce4e
mov eax, dword [esp]
add eax, 1
mov cl, 1
mov dword [esp + 0xc], ecx
push eax
call dword [0x7c387c]
add esp, 4
mov edi, ebx
mov ebx, eax
jmp 0x57ce9e