Function at 0x49f330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x54300c]
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 - 0x130], 0
mov edi, edx
mov esi, ecx
push 0x38
push 0
mov eax, dword [edi + eax*8 + 0x198]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x18c]
push eax
call fcn.004b6620
add esp, 0xc
mov dword [ebp - 0x18c], 4
cmp byte [edi + 0x210], 0
mov ebx, 0x1b0
mov dword [ebp - 0x128], 0x1c0
je 0x49f42c
mov eax, dword [ebp - 0x144]
mov edx, 8
mov ecx, 0x20
cmp byte [eax + 0x47], 0
cmovne ecx, edx
mov edx, dword [edi + 0xb8]
cmp edx, 2
jne 0x49f3de
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
cmovne eax, dword [ebp - 0x128]
cmp dword [eax + edi], edx
je 0x49f3de
mov al, byte [esi + 0x4db]
jmp 0x49f3e4
mov al, byte [esi + 0x46f]
test al, al
je 0x49f3f0
or ecx, 0x1800
jmp 0x49f437
cmp edx, 2
jne 0x49f412
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
cmovne eax, dword [ebp - 0x128]
cmp dword [eax + edi], edx
je 0x49f412
mov al, byte [esi + 0x4dd]
jmp 0x49f418
mov al, byte [esi + 0x471]
test al, al
je 0x49f424
or ecx, 0x1a00
jmp 0x49f437
or ecx, 0x200
jmp 0x49f437
mov edx, dword [edi + 0xb8]
mov ecx, 0x1808
cmp byte [edi + 0x211], 0
mov dword [ebp - 0x15c], ecx
jne 0x49f44f
or ecx, 4
mov dword [ebp - 0x15c], ecx
cmp edx, 2
jne 0x49f473
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
mov edx, 0x1c0
cmovne eax, edx
cmp dword [eax + edi], 2
je 0x49f473
mov al, byte [esi + 0x4df]
jmp 0x49f479
mov al, byte [esi + 0x473]
test al, al
jne 0x49f490
and ecx, 0xffffffbf
mov eax, str.schannel:_disabled_automatic_use_of_client_certificate
or ecx, 0x10
mov dword [ebp - 0x15c], ecx
jmp 0x49f495
mov eax, str.schannel:_enabled_automatic_use_of_client_certificate
push eax
push esi
call fcn.00479f40
mov eax, dword [edi + 0x1d4]
add esp, 8
cmp eax, 7
ja case.default.0x49f4b5
movzx eax, byte [eax + 0x49fc48]
jmp dword [eax*4 + 0x49fc40]
push edi
mov edx, esi
lea ecx, [ebp - 0x18c]
call fcn.0049e350
add esp, 4
test eax, eax
jne 0x49fc2d
mov ecx, dword [edi + 0xb8]
mov edx, 0x1c0
cmp ecx, 2
jne 0x49f4fe
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
cmovne eax, edx
cmp dword [eax + edi], ecx
je 0x49f4fe
mov eax, dword [edi + 0x234]
jmp 0x49f504
mov eax, dword [edi + 0x1f4]
test eax, eax
je 0x49f569
cmp ecx, 2
jne 0x49f524
cmp dword [edi + 0x14c], 0xffffffff
cmovne ebx, edx
cmp dword [ebx + edi], ecx
je 0x49f524
mov edx, dword [edi + 0x234]
jmp 0x49f52a
mov edx, dword [edi + 0x1f4]
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x18c]
add eax, 0x48
push eax
call fcn.0049f100
mov edi, eax
add esp, 4
test edi, edi
je 0x49f569
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push esi
call fcn.00479fc0
mov eax, edi
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x41c]
test ecx, ecx
jne 0x49f57f
cmp dword [esi + 0x434], ecx
je 0x49faf0
mov eax, dword [esi + 0x434]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x138], eax
test eax, eax
je 0x49f5ce
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x134], eax
jmp 0x49f632
call fcn.0048aa50
mov edi, eax
test edi, edi
je case.0x49fbc6.2146893056
lea eax, [ebp - 0x13c]
mov ecx, edi
push eax
lea eax, [ebp - 0x124]
push eax
lea edx, [ebp - 0x128]
call fcn.0049f1a0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x49f9a8
mov ecx, dword [esi + 0x41c]
cmp byte [ecx], 0
je 0x49f978
mov edx, 0x52e200
call fcn.0048ab20
mov dword [ebp - 0x140], eax
test eax, eax
je 0x49f978
mov ebx, dword [ebp - 0x124]
mov ecx, dword [esi + 0x458]
test ecx, ecx
je 0x49f671
mov edx, 0x534bfc
call fcn.0048a8f0
test eax, eax
jne 0x49f671
cmp dword [ebp - 0x138], eax
mov eax, str._memory_blob_
jne 0x49f65d
mov eax, dword [esi + 0x41c]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push esi
call fcn.00479fc0
add esp, 0xc
jmp 0x49f9f7
cmp dword [ebp - 0x140], 0
mov eax, dword [ebp - 0x138]
jne 0x49f688
test eax, eax
je 0x49f9ae
xor ebx, ebx
test eax, eax
je 0x49f69a
mov dword [ebp - 0x124], str._memory_blob_
jmp 0x49f6a6
mov eax, dword [esi + 0x41c]
mov dword [ebp - 0x124], eax
test edi, edi
je 0x49f6b3
push edi
call fcn.004c0774
add esp, 4
mov edi, dword [ebp - 0x140]
test edi, edi
je 0x49f744
xor eax, eax
push 2
push eax
push edi
mov dword [ebp - 0x128], eax
call fcn.004f7fb6
add esp, 0xc
test eax, eax
sete cl
mov byte [ebp - 0x11d], cl
test eax, eax
jne 0x49f7ee
push edi
call fcn.004f7986
add esp, 4
mov dword [ebp - 0x128], eax
test eax, eax
jns 0x49f7f2
mov byte [ebp - 0x11d], bl
mov eax, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x134]
test eax, eax
je 0x49f849
push edi
push 1
push edx
push eax
call fcn.004f7b7a
add esp, 0x10
cmp eax, 1
jne 0x49f849
push edi
call fcn.004f1413
add esp, 4
cmp byte [ebp - 0x11d], bl
je 0x49f852
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x154], eax
mov eax, dword [esi + 0x468]
test eax, eax
je 0x49f779
mov ebx, eax
lea ecx, [ebx + 1]
jmp 0x49f770
mov al, byte [ebx]
inc ebx
test al, al
jne 0x49f770
sub ebx, ecx
lea eax, [ebx*2 + 2]
push eax
call dword [0x5449e0]
mov edi, eax
add esp, 4
mov dword [ebp - 0x13c], edi
test edi, edi
je 0x49f8a0
test ebx, ebx
je 0x49f88b
lea ecx, [ebx + 1]
push ecx
push edi
push ebx
push dword [esi + 0x468]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x49f88d
xor eax, eax
mov word [edi], ax
push 0
push edi
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push dword [ebp - 0x13c]
mov edi, eax
call dword [0x5449e8]
add esp, 4
jmp 0x49f8a2
xor eax, eax
jmp 0x49f7f8
mov cl, byte [ebp - 0x11d]
mov edx, eax
mov dword [ebp - 0x134], edx
test cl, cl
je 0x49f83e
push 0
push 0
push edi
call fcn.004f7fb6
add esp, 0xc
test eax, eax
sete byte [ebp - 0x11d]
test eax, eax
jne 0x49f705
mov eax, dword [ebp - 0x128]
inc eax
push eax
call dword [0x5449e0]
add esp, 4
mov dword [ebp - 0x12c], eax
jmp 0x49f70b
mov eax, dword [ebp - 0x12c]
jmp 0x49f711
push edi
call fcn.004f1413
add esp, 4
push dword [esi + 0x41c]
push str.schannel:_Failed_to_read_cert_file__s
push esi
call fcn.00479fc0
add esp, 0xc
push dword [ebp - 0x12c]
call dword [0x5449e8]
add esp, 4
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp eax, ebx
jg 0x49f7c3
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x49f7c8
xor edi, edi
cmp dword [ebp - 0x138], 0
jne 0x49f8ba
push dword [ebp - 0x12c]
call dword [0x5449e8]
add esp, 4
test edi, edi
jne 0x49f91c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x49f8f1
push dword [ebp - 0x124]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push esi
call fcn.00479fc0
add esp, 0xc
lea eax, [edi + 0x3a]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
push eax
push dword [ebp - 0x124]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push esi
call fcn.00479fc0
add esp, 0x10
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b3dd4
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 - 0x130], eax
test eax, eax
jne 0x49fad1
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.00479fc0
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.004b3dd4
mov esp, ebp
pop ebp
ret
push dword [esi + 0x41c]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push esi
call fcn.00479fc0
add esp, 0xc
push edi
call fcn.004c0774
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
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 - 0x124], eax
test eax, eax
jne 0x49fa1a
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.00479fc0
add esp, 0x14
push ebx
call dword [0x5449e8]
add esp, 4
test edi, edi
je 0x49fa04
push edi
call fcn.004c0774
add esp, 4
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x5449e8]
add esp, 4
mov dword [ebp - 0x14c], 0x14
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x14c]
push 0
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
push 4
push 0x28
push dword [ebp - 0x13c]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x49fa8c
test edi, edi
je 0x49fa67
push edi
call fcn.004c0774
add esp, 4
mov ebx, dword [ebp - 0x124]
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.004b3dd4
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x124]
lea eax, [ebp - 0x14c]
push 0
push eax
push 0x10000
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0x130], eax
test edi, edi
je 0x49fac7
push edi
call fcn.004c0774
mov eax, dword [ebp - 0x130]
add esp, 4
test eax, eax
je 0x49fa6d
mov edi, dword [ebp - 0x124]
push 0
lea eax, [ebp - 0x130]
mov dword [ebp - 0x188], 1
push edi
mov dword [ebp - 0x184], eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
push 0x18
push 1
call dword [0x5449f0]
mov ebx, dword [ebp - 0x144]
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x49fb3e
push str.schannel:_unable_to_allocate_memory
push esi
call fcn.00479fc0
mov eax, dword [ebp - 0x130]
add esp, 8
test eax, eax
je case.0x49fbc6.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.004b3dd4
mov esp, ebp
pop ebp
ret
mov dword [eax + 0x10], 1
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [ebp - 0x18c]
push eax
mov eax, dword [0x5491a4]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov ecx, dword [ebp - 0x130]
mov edi, eax
test ecx, ecx
je 0x49fb7f
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test edi, edi
je 0x49fbe3
push ecx
lea edx, [ebp - 0x11c]
mov ecx, edi
call fcn.00499080
add esp, 4
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push esi
call fcn.00479fc0
add esp, 0xc
push dword [ebx]
call dword [0x5449e8]
add edi, 0x7ff6fd00
mov dword [ebx], 0
add esp, 4
cmp edi, 0xe
ja case.0x49fbc6.2146893055
movzx eax, byte [edi + 0x49fc5c]
jmp dword [eax*4 + 0x49fc50]
mov eax, 0x23
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b3dd4
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.004b3dd4
mov esp, ebp
pop ebp
ret
push str.SSL_versions_not_supported
push esi
call fcn.00479fc0
mov eax, 4
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push esi
call fcn.00479fc0
mov eax, 0x23
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret