Function at 0x49b590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x5a7774]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ebx, [eax + 0x1a]
mov dword [ebp - 0x15c], eax
shl ebx, 4
add ebx, esi
mov dword [ebp - 0x160], 0xffffffff
cmp dword [esi + 0xc0], 2
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x164], 0
jne 0x49b603
xor eax, eax
cmp dword [esi + 0x15c], 0xffffffff
setne al
add eax, 0x1c
add eax, eax
cmp dword [esi + eax*8], 2
je 0x49b603
mov eax, dword [esi + 0xb4]
jmp 0x49b606
mov eax, dword [esi + 0x6c]
push 1
push 2
push 1
push 5
mov dword [ebp - 0x150], eax
call fcn.004aeae0
add esp, 0x10
test al, al
je 0x49b62e
push str.schannel:_Windows_version_is_old_and_may_not_be_able_to_connect_to_some_servers_due_to_lack_of_SNI__algorithms__etc._n
push edi
call fcn.00495a20
add esp, 8
mov eax, dword [ebx + 8]
mov byte [eax + 0x46], 0
cmp dword [esi + 0xc0], 2
jne 0x49b65d
xor eax, eax
cmp dword [esi + 0x15c], 0xffffffff
setne al
add eax, 0x1c
add eax, eax
cmp dword [esi + eax*8], 2
je 0x49b65d
mov eax, dword [esi + 0x224]
jmp 0x49b663
mov eax, dword [esi + 0x1f0]
test eax, eax
je 0x49b6a8
push 3
push 2
push 1
push 6
call fcn.004aeae0
add esp, 0x10
test al, al
je 0x49b684
mov eax, dword [ebx + 8]
mov byte [eax + 0x47], 1
jmp 0x49b6af
push str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
push edi
call fcn.00495900
add esp, 8
mov eax, 0x4d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
mov byte [eax + 0x47], 0
mov eax, dword [ebx + 8]
mov dword [eax], 0
cmp dword [esi + 0xc0], 2
jne 0x49b6e1
xor eax, eax
cmp dword [esi + 0x15c], 0xffffffff
setne al
add eax, 0x1c
add eax, eax
cmp dword [esi + eax*8], 2
je 0x49b6e1
movzx eax, byte [edi + 0x49b]
jmp 0x49b6e8
movzx eax, byte [edi + 0x433]
test eax, eax
je 0x49b72b
push edi
call fcn.00487da0
push dword [ebp - 0x15c]
lea eax, [ebp - 0x164]
push 0
push eax
push esi
push edi
call fcn.00487940
add esp, 0x18
test al, al
jne 0x49b722
mov ecx, dword [ebx + 8]
mov eax, dword [ebp - 0x164]
mov dword [ecx], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax]
inc dword [eax + 0x10]
push edi
call fcn.00487dd0
add esp, 4
mov eax, dword [ebx + 8]
cmp dword [eax], 0
jne 0x49bf46
push 0x38
lea eax, [ebp - 0x1d4]
push 0
push eax
call fcn.0050fef0
add esp, 0xc
mov dword [ebp - 0x1d4], 4
cmp byte [esi + 0x214], 0
je 0x49b798
mov ecx, dword [ebx + 8]
mov eax, 0x20
mov edx, 8
cmp byte [ecx + 0x47], 0
cmovne eax, edx
cmp byte [edi + 0x463], 0
je 0x49b781
or eax, 0x1800
jmp 0x49b79d
cmp byte [edi + 0x465], 0
je 0x49b791
or eax, 0x1a00
jmp 0x49b79d
or eax, 0x200
jmp 0x49b79d
mov eax, 0x1808
cmp byte [esi + 0x215], 0
mov dword [ebp - 0x1a4], eax
jne 0x49b7b5
or eax, 4
mov dword [ebp - 0x1a4], eax
mov eax, dword [esi + 0x1e4]
cmp eax, 7
ja case.default.0x49b7c4
jmp dword [eax*4 + 0x49c228]
push esi
lea eax, [ebp - 0x1d4]
push edi
push eax
call fcn.0049d550
add esp, 0xc
test eax, eax
je 0x49b807
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1b4], 0x20
jmp 0x49b807
mov dword [ebp - 0x1b4], 8
mov ecx, dword [esi + 0xc0]
cmp ecx, 2
jne 0x49b830
xor eax, eax
cmp dword [esi + 0x15c], 0xffffffff
setne al
add eax, 0x1c
add eax, eax
cmp dword [esi + eax*8], ecx
je 0x49b830
mov eax, dword [esi + 0x234]
jmp 0x49b836
mov eax, dword [esi + 0x200]
test eax, eax
je 0x49b8a2
cmp ecx, 2
jne 0x49b85d
xor eax, eax
cmp dword [esi + 0x15c], 0xffffffff
setne al
add eax, 0x1c
add eax, eax
cmp dword [esi + eax*8], ecx
je 0x49b85d
mov eax, dword [esi + 0x234]
jmp 0x49b863
mov eax, dword [esi + 0x200]
push eax
lea eax, [ebp - 0x1d4]
push eax
call fcn.0049d4e0
add esp, 8
mov dword [ebp - 0x130], eax
test eax, eax
je 0x49b8a2
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push edi
call fcn.00495900
mov eax, dword [ebp - 0x130]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x410]
test eax, eax
jne 0x49b8b8
cmp dword [edi + 0x428], eax
je 0x49be20
mov ecx, dword [edi + 0x428]
test ecx, ecx
mov dword [ebp - 0x130], 0
setne dl
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x148], 0
mov byte [ebp - 0x12a], dl
test dl, dl
je 0x49b926
mov eax, dword [ecx]
mov dword [ebp - 0x13c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x148], eax
jmp 0x49b987
test eax, eax
je 0x49be5a
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x138]
push ecx
lea ecx, [ebp - 0x130]
push ecx
push eax
call fcn.0049afb0
add esp, 0x10
mov dword [ebp - 0x154], eax
test eax, eax
je 0x49bd1d
mov ecx, dword [edi + 0x410]
cmp byte [ecx], 0
je 0x49bcf2
push 0x55b18c
push ecx
call fcn.00499be0
mov ecx, eax
add esp, 8
mov dword [ebp - 0x14c], ecx
test ecx, ecx
je 0x49bcf2
mov eax, dword [edi + 0x44c]
test eax, eax
je 0x49b9dd
push 0x55d418
push eax
call fcn.004882c0
add esp, 8
test eax, eax
jne 0x49b9dd
mov dl, byte [ebp - 0x12a]
mov eax, str._memory_blob_
test dl, dl
jne 0x49b9b8
mov eax, dword [edi + 0x410]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push edi
call fcn.00495900
add esp, 0xc
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14c]
mov dl, byte [ebp - 0x12a]
test eax, eax
jne 0x49b9f5
test dl, dl
je 0x49bd1d
xor ecx, ecx
mov dword [ebp - 0x130], ecx
test dl, dl
je 0x49ba0d
mov dword [ebp - 0x138], str._memory_blob_
jmp 0x49ba19
mov edx, dword [edi + 0x410]
mov dword [ebp - 0x138], edx
test eax, eax
je 0x49bb4d
push 2
push 0
push eax
mov dword [ebp - 0x134], ecx
call fcn.005113e5
add esp, 0xc
test eax, eax
sete al
mov byte [ebp - 0x129], al
test al, al
je 0x49baef
push dword [ebp - 0x14c]
call fcn.005112ea
add esp, 4
mov dword [ebp - 0x134], eax
test eax, eax
jns 0x49bae9
mov byte [ebp - 0x129], 0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x148]
test eax, eax
je 0x49ba91
push dword [ebp - 0x14c]
push 1
push ecx
push eax
call fcn.00510c9a
add esp, 0x10
cmp eax, 1
je 0x49ba98
mov byte [ebp - 0x129], 0
push dword [ebp - 0x14c]
call fcn.0050f81e
add esp, 4
cmp byte [ebp - 0x129], 0
jne 0x49bb4b
push dword [edi + 0x410]
push str.schannel:_Failed_to_read_cert_file__s
push edi
call fcn.00495900
push dword [ebp - 0x13c]
call dword [0x5a7094]
add esp, 0x10
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x129]
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x148], ecx
test al, al
je 0x49bb40
push 0
push 0
push dword [ebp - 0x14c]
call fcn.005113e5
add esp, 0xc
test eax, eax
sete al
mov byte [ebp - 0x129], al
test al, al
je 0x49ba6a
mov eax, dword [ebp - 0x134]
inc eax
push eax
call dword [0x5a7090]
add esp, 4
mov dword [ebp - 0x13c], eax
jmp 0x49ba70
mov eax, dword [ebp - 0x13c]
jmp 0x49ba76
xor ecx, ecx
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x158], eax
mov eax, dword [edi + 0x45c]
test eax, eax
je 0x49bb83
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49bb74
sub ecx, edx
mov dword [ebp - 0x130], ecx
lea eax, [ecx*2 + 2]
push eax
call dword [0x5a7090]
mov edx, eax
add esp, 4
mov dword [ebp - 0x134], edx
test edx, edx
je 0x49bc0f
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x49bbd7
lea ecx, [eax + 1]
push ecx
push edx
push eax
push dword [edi + 0x45c]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [ebp - 0x134]
mov ecx, eax
test ecx, ecx
js 0x49bbe5
mov eax, dword [ebp - 0x130]
jmp 0x49bbd9
xor ecx, ecx
cmp ecx, eax
jg 0x49bbe5
xor eax, eax
mov word [edx + ecx*2], ax
jmp 0x49bbea
xor eax, eax
mov word [edx], ax
push 0
push edx
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push dword [ebp - 0x134]
mov dword [ebp - 0x140], eax
call dword [0x5a7094]
add esp, 4
cmp byte [ebp - 0x12a], 0
jne 0x49bc27
push dword [ebp - 0x13c]
call dword [0x5a7094]
add esp, 4
mov eax, dword [ebp - 0x140]
test eax, eax
jne 0x49bc91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x49bc66
push dword [ebp - 0x138]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push edi
call fcn.00495900
add esp, 0xc
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
push eax
push dword [ebp - 0x138]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push edi
call fcn.00495900
add esp, 0x10
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0x10001
push eax
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0x144], eax
test eax, eax
jne 0x49bdfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x138]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push edi
call fcn.00495900
add esp, 0x10
push 0
push dword [ebp - 0x140]
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.0050bf8a
mov esp, ebp
pop ebp
ret
push dword [edi + 0x410]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push edi
call fcn.00495900
mov eax, dword [ebp - 0x154]
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x138]
mov eax, dword [ebp - 0x130]
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x140], eax
test eax, eax
jne 0x49bd84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x138]
push eax
push ebx
push dword [ebp - 0x130]
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push edi
call fcn.00495900
push ebx
call dword [0x5a7094]
add esp, 0x18
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x138]
call dword [0x5a7094]
add esp, 4
mov dword [ebp - 0x178], 0x14
lea eax, [ebp - 0x18]
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x178]
push 0
push 0
push eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0x28
push dword [ebp - 0x134]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
push 0
test eax, eax
je 0x49bcd0
lea eax, [ebp - 0x178]
push eax
push 0x10000
push 0
push 0x10001
push dword [ebp - 0x140]
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0x144], eax
test eax, eax
je 0x49bcce
push 0
push dword [ebp - 0x140]
lea eax, [ebp - 0x144]
mov dword [ebp - 0x1d0], 1
mov dword [ebp - 0x1cc], eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
push 0x18
push 1
call dword [0x5a70a0]
mov ecx, dword [ebx + 8]
add esp, 8
mov dword [ecx], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax]
test eax, eax
jne 0x49be70
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.00495900
mov eax, dword [ebp - 0x144]
add esp, 8
test eax, eax
je 0x49be5a
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.0050bf8a
mov esp, ebp
pop ebp
ret
mov dword [eax + 0x10], 1
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [ebp - 0x1d4]
push eax
mov eax, dword [0x5b00c4]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x130], eax
test ecx, ecx
je 0x49bebe
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x49bf46
push 0x100
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.004ad610
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push edi
call fcn.00495900
mov eax, dword [ebx + 8]
push dword [eax]
call dword [0x5a7094]
mov eax, dword [ebx + 8]
add esp, 0x1c
mov dword [eax], 0
xor eax, eax
cmp dword [ebp - 0x130], 0x80090300
pop edi
setne al
pop esi
pop ebx
lea eax, [eax*8 + 0x1b]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push edi
call fcn.00495900
add esp, 8
mov eax, 0x23
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1d8]
push eax
push dword [ebp - 0x150]
push 2
call fcn.0049ef20
add esp, 0xc
test eax, eax
jne 0x49bf7c
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x150]
push 0x17
call fcn.0049ef20
add esp, 0xc
test eax, eax
je 0x49bf8a
push str.schannel:_using_IP_address__SNI_is_not_supported_by_OS._n
push edi
call fcn.00495a20
add esp, 8
lea eax, [ebp - 0x190]
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x170]
mov dword [ebp - 0x194], eax
mov eax, dword [ebx + 8]
push 0x10
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 1
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 1
push 1
mov dword [eax + 0x38], 0x811c
call dword [0x5a70a0]
mov ecx, dword [ebx + 8]
add esp, 8
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x49c051
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.00495900
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x150], 0
je 0x49be5a
lea eax, [edx + 8]
push eax
lea eax, [ecx + 0x3c]
push eax
lea eax, [ebp - 0x19c]
push eax
push edx
xor edx, edx
lea eax, [ebp - 0x184]
cmp byte [ecx + 0x46], dl
push 0
cmove eax, edx
push eax
mov eax, dword [0x5b00c4]
push edx
push edx
push dword [ecx + 0x38]
mov eax, dword [eax + 0x18]
push dword [ebp - 0x150]
push edx
push dword [ecx]
call eax
mov dword [ebp - 0x154], eax
cmp eax, 0x90312
je 0x49c178
mov ecx, dword [ebx + 8]
push dword [ecx + 4]
call dword [0x5a7094]
mov ecx, dword [ebx + 8]
add esp, 4
mov eax, dword [ebp - 0x154]
mov dword [ecx + 4], 0
push 0x100
cmp eax, 0x80090300
je 0x49c142
cmp eax, 0x80090322
je 0x49c10c
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.004ad610
push eax
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push edi
call fcn.00495900
add esp, 0x18
mov eax, 0x23
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x118]
push eax
push 0x80090322
call fcn.004ad610
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push edi
call fcn.00495900
add esp, 0x18
mov eax, 0x3c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x118]
push eax
push 0x80090300
call fcn.004ad610
push eax
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push edi
call fcn.00495900
add esp, 0x18
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x170]
mov eax, dword [ebp - 0x15c]
push dword [ebp - 0x168]
push dword [esi + eax*4 + 0x158]
push edi
call fcn.00495e30
mov ecx, dword [0x5b00c4]
add esp, 0x14
mov esi, eax
push dword [ebp - 0x168]
mov ecx, dword [ecx + 0x40]
call ecx
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x170]
test esi, esi
jne 0x49c201
cmp ecx, eax
jne 0x49c201
mov eax, dword [ebx + 8]
pop edi
pop esi
mov dword [eax + 0x40], 0
mov eax, dword [ebx + 8]
mov byte [eax + 0x44], 0
mov eax, dword [ebx + 8]
mov byte [eax + 0x45], 0
mov eax, dword [ebx + 8]
mov byte [eax + 0x34], 0
xor eax, eax
mov dword [ebx + 4], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret
push ecx
push eax
push str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
push edi
call fcn.00495900
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 0x23
pop edi
pop esi
pop ebx
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret