Function at 0x4a5ee0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1d0
mov eax, dword [esp + 0x1d8]
push ebx
push ebp
mov ebp, dword [esp + 0x1dc]
mov ebx, dword [ebp]
push esi
add eax, eax
push edi
lea edi, [ebp + eax*8 + 0x468]
xor eax, eax
or ecx, 0xffffffff
mov esi, 2
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
cmp dword [ebp + 0x358], esi
jne 0x4a5f4c
xor edx, edx
cmp dword [ebp + 0x424], ecx
setne dl
add edx, edx
cmp dword [ebp + edx*8 + 0x488], esi
je 0x4a5f4c
mov eax, dword [ebp + 0x34c]
mov dword [esp + 0x40], eax
jmp 0x4a5f56
mov ecx, dword [ebp + 0x304]
mov dword [esp + 0x40], ecx
push 1
push esi
push 1
push 5
call fcn.004a4f50
add esp, 0x10
test eax, eax
je 0x4a5f77
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 ebx
call fcn.00499d70
add esp, 8
mov edx, dword [edi + 8]
xor ecx, ecx
mov dword [edx + 0x4c], ecx
cmp dword [ebp + 0x358], esi
jne 0x4a5fa6
xor eax, eax
cmp dword [ebp + 0x424], 0xffffffff
setne al
add eax, eax
cmp dword [ebp + eax*8 + 0x488], esi
je 0x4a5fa6
mov eax, dword [ebp + 0x4f8]
jmp 0x4a5fac
mov eax, dword [ebp + 0x4b8]
cmp eax, ecx
je 0x4a5fed
push 3
push esi
push 1
push 6
call fcn.004a4f50
add esp, 0x10
test eax, eax
je 0x4a5fcf
mov ecx, dword [edi + 8]
mov dword [ecx + 0x50], 1
jmp 0x4a5ff3
push str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
push ebx
call fcn.00499e40
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x4d
pop ebx
add esp, 0x1d0
ret
mov edx, dword [edi + 8]
mov dword [edx + 0x50], ecx
mov eax, dword [edi + 8]
mov dword [eax], 0
cmp dword [ebp + 0x358], esi
jne 0x4a6023
xor ecx, ecx
cmp dword [ebp + 0x424], 0xffffffff
setne cl
add ecx, ecx
cmp dword [ebp + ecx*8 + 0x488], esi
je 0x4a6023
mov eax, dword [ebx + 0x924]
jmp 0x4a6029
mov eax, dword [ebx + 0x89c]
test eax, eax
je 0x4a6069
push ebp
call fcn.00490e10
mov edx, dword [esp + 0x1ec]
push edx
push 0
lea eax, [esp + 0x48]
push eax
push ebp
call fcn.00490e70
add esp, 0x14
test eax, eax
jne 0x4a6060
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x3c]
mov dword [ecx], edx
mov eax, dword [edi + 8]
mov eax, dword [eax]
inc dword [eax + 0x10]
push ebp
call fcn.00490e40
add esp, 4
mov esi, dword [edi + 8]
cmp dword [esi], 0
jne 0x4a672c
push 0x38
lea ecx, [esp + 0x84]
push 0
push ecx
call fcn.004d9310
add esp, 0xc
cmp dword [ebp + 0x4dc], 0
mov dword [esp + 0x80], 4
mov ecx, ebx
je 0x4a60da
mov eax, dword [esi + 0x50]
neg eax
sbb eax, eax
and eax, 0xffffffe8
add eax, 0x20
mov dword [esp + 0xb0], eax
cmp dword [ecx + 0x8d8], 0
je 0x4a60c3
or eax, 0x1800
jmp 0x4a60df
cmp dword [ecx + 0x8e0], 0
je 0x4a60d3
or eax, 0x1a00
jmp 0x4a60df
or eax, 0x200
jmp 0x4a60df
mov eax, 0x1808
cmp dword [ebp + 0x4e0], 0
mov dword [esp + 0xb0], eax
jne 0x4a60f9
or eax, 4
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 0x4ac]
cmp eax, 7
ja case.default.0x4a6108
jmp dword [eax*4 + 0x4a69a0]
mov eax, ebp
lea esi, [esp + 0x80]
call fcn.004a5090
test eax, eax
je 0x4a6144
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret
mov dword [esp + 0xa0], 0x20
jmp 0x4a6144
mov dword [esp + 0xa0], 8
mov ecx, dword [ebp + 0x358]
cmp ecx, 2
jne 0x4a616e
xor edx, edx
cmp dword [ebp + 0x424], 0xffffffff
setne dl
add edx, edx
cmp dword [ebp + edx*8 + 0x488], ecx
je 0x4a616e
mov eax, dword [ebp + 0x508]
jmp 0x4a6174
mov eax, dword [ebp + 0x4c8]
test eax, eax
je 0x4a61d3
cmp ecx, 2
jne 0x4a619c
xor eax, eax
cmp dword [ebp + 0x424], 0xffffffff
setne al
add eax, eax
cmp dword [ebp + eax*8 + 0x488], ecx
je 0x4a619c
mov eax, dword [ebp + 0x508]
jmp 0x4a61a2
mov eax, dword [ebp + 0x4c8]
lea ebx, [esp + 0x80]
call fcn.004a5d00
mov esi, eax
test esi, esi
je 0x4a61d3
mov ecx, dword [esp + 0x10]
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push ecx
call fcn.00499e40
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x870]
xor esi, esi
cmp eax, esi
jne 0x4a61ef
cmp dword [ebx + 0x888], esi
je 0x4a662a
xor ecx, ecx
xor edi, edi
cmp dword [ebx + 0x888], esi
mov dword [esp + 0x30], esi
setne cl
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
cmp ecx, esi
je 0x4a6231
mov eax, dword [ebx + 0x888]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
jmp 0x4a629f
cmp eax, esi
je 0x4a6661
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x38]
push ecx
call fcn.004a5d70
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4a6312
mov eax, dword [ebx + 0x870]
cmp byte [eax], 0
je 0x4a6279
push 0x50f1e0
push eax
call fcn.004a9b70
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a629b
mov edx, dword [ebx + 0x870]
push edx
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push ebx
call fcn.00499e40
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 0x8b8]
test eax, eax
je 0x4a62eb
push 0x51ad14
push eax
call fcn.004a28f0
add esp, 8
test eax, eax
jne 0x4a62eb
cmp dword [esp + 0x20], eax
mov eax, str._memory_blob_
jne 0x4a62cc
mov eax, dword [ebx + 0x870]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebx
call fcn.00499e40
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x3a
pop ebx
add esp, 0x1d0
ret
test edi, edi
jne 0x4a62f5
cmp dword [esp + 0x20], edi
je 0x4a6316
xor ebp, ebp
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x20], ebp
je 0x4a63d9
mov dword [esp + 0x14], str._memory_blob_
jmp 0x4a63e5
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
push esi
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov edi, eax
test edi, edi
jne 0x4a6363
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x30]
push eax
push esi
push ecx
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push ebx
call fcn.00499e40
push esi
call dword [0x54ae6c]
add esp, 0x18
lea eax, [edi + 0x3a]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret
push esi
call dword [0x54ae6c]
add esp, 4
push 0
push 0
lea edx, [esp + 0xc4]
lea eax, [esp + 0x5c]
push eax
mov ecx, edx
push ecx
push 4
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x3c]
push 0x28
push edx
mov dword [esp + 0x70], 0x14
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
push 0
test eax, eax
je 0x4a65e1
lea eax, [esp + 0x58]
push eax
push 0x10000
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4a65df
lea ecx, [esp + 0x1c]
mov dword [esp + 0x88], ecx
jmp 0x4a660e
mov edx, ebx
mov eax, dword [edx + 0x870]
mov dword [esp + 0x14], eax
cmp edi, ebp
je 0x4a64a5
push 2
xor ebx, ebx
push ebx
push edi
call fcn.004dc429
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x4a6417
push edi
call fcn.004dce0e
mov ebx, eax
add esp, 4
test ebx, ebx
jns 0x4a6417
xor esi, esi
jmp 0x4a6444
mov dword [esp + 0x24], ebx
test esi, esi
je 0x4a6444
push 0
push 0
push edi
call fcn.004dc429
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x4a6444
inc ebx
push ebx
call dword [0x54ae68]
add esp, 4
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], ebp
je 0x4a6464
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push edi
push 1
push ecx
push edx
call fcn.004dc382
add esp, 0x10
cmp eax, 1
je 0x4a6466
xor esi, esi
push edi
call fcn.004d811a
add esp, 4
test esi, esi
jne 0x4a64a5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x870]
push ecx
push str.schannel:_Failed_to_read_cert_file__s
push eax
call fcn.00499e40
mov edx, dword [esp + 0x24]
push edx
call dword [0x54ae6c]
add esp, 0x10
pop edi
lea eax, [esi + 0x3a]
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x8c8]
mov dword [esp + 0x30], ecx
test eax, eax
je 0x4a64d1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a64c6
sub eax, edx
mov ebp, eax
lea edx, [ebp + ebp + 2]
push edx
call dword [0x54ae68]
mov esi, eax
add esp, 4
test esi, esi
je 0x4a653c
test ebp, ebp
je 0x4a652c
mov ecx, dword [ebx + 0x8c8]
lea eax, [ebp + 1]
push eax
push esi
push ebp
push ecx
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x4a6530
xor eax, eax
mov word [esi], ax
push 0
push esi
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov edi, eax
push esi
mov dword [esp + 0x30], edi
call dword [0x54ae6c]
add esp, 4
jmp 0x4a6540
mov eax, dword [esp + 0x28]
cmp eax, ebp
jg 0x4a6507
xor edx, edx
mov word [esi + eax*2], dx
jmp 0x4a650c
mov edi, dword [esp + 0x2c]
cmp dword [esp + 0x20], 0
jne 0x4a6555
mov edx, dword [esp + 0x18]
push edx
call dword [0x54ae6c]
add esp, 4
test edi, edi
jne 0x4a65a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x4a6585
mov eax, dword [esp + 0x14]
push eax
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.00499e40
add esp, 0xc
lea eax, [edi + 0x3a]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push ebx
call fcn.00499e40
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0x3a
pop ebx
add esp, 0x1d0
ret
push 0
push 0
push 0
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4a65f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
push eax
push edx
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push ebx
call fcn.00499e40
add esp, 0x10
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop edi
pop esi
pop ebp
mov eax, 0x3a
pop ebx
add esp, 0x1d0
ret
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1e4]
lea eax, [esp + 0x1c]
mov dword [esp + 0x88], eax
push 0
push edi
mov dword [esp + 0x8c], 1
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x10]
push 0x18
push 1
call dword [0x54ae78]
mov ecx, dword [edi + 8]
mov dword [ecx], eax
mov eax, dword [edi + 8]
add esp, 8
cmp dword [eax], 0
jne 0x4a6671
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.00499e40
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x4a6661
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1d0
ret
mov edx, dword [eax]
mov dword [edx + 0x10], 1
mov eax, dword [edi + 8]
mov eax, dword [eax]
lea ecx, [eax + 8]
push ecx
push eax
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0xc]
push 0
push 0
lea edx, [esp + 0x90]
push edx
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push 0
call ecx
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4a66b6
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x4a672c
push 0x100
lea edx, [esp + 0xe4]
push edx
push esi
call fcn.0048f660
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.00499e40
mov eax, dword [edi + 8]
mov ecx, dword [eax]
push ecx
call dword [0x54ae6c]
mov edx, dword [edi + 8]
add esp, 0x1c
xor eax, eax
cmp esi, 0x80090300
setne al
pop edi
pop esi
pop ebp
mov dword [edx], 0
pop ebx
lea eax, [eax*8 + 0x1b]
add esp, 0x1d0
ret
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ecx
call fcn.00499e40
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x23
pop ebx
add esp, 0x1d0
ret
mov esi, dword [esp + 0x40]
lea eax, [esp + 0xb8]
push eax
push esi
push 2
call fcn.004c87b0
add esp, 0xc
test eax, eax
jne 0x4a675e
lea ecx, [esp + 0xd0]
push ecx
push esi
push 0x17
call fcn.004c87b0
add esp, 0xc
test eax, eax
je 0x4a6770
mov edx, dword [esp + 0x10]
push str.schannel:_using_IP_address__SNI_is_not_supported_by_OS._n
push edx
call fcn.00499d70
add esp, 8
mov edx, dword [edi + 8]
xor ebx, ebx
lea eax, [esp + 0x5c]
mov dword [esp + 0x70], eax
mov eax, 1
lea ecx, [esp + 0x44]
push 0x10
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], eax
push eax
mov dword [edx + 0x38], 0x811c
call dword [0x54ae78]
mov ecx, dword [edi + 8]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
add esp, 8
cmp dword [eax + 4], ebx
jne 0x4a67f6
mov edx, dword [esp + 0x10]
push str.schannel:_unable_to_allocate_memory
push edx
call fcn.00499e40
add esp, 8
pop edi
pop esi
pop ebp
lea eax, [ebx + 0x1b]
pop ebx
add esp, 0x1d0
ret
cmp esi, ebx
je 0x4a6661
mov ecx, dword [eax + 4]
lea edx, [ecx + 8]
push edx
lea edx, [eax + 0x3c]
push edx
lea edx, [esp + 0x7c]
push edx
push ecx
mov ecx, dword [eax + 0x4c]
neg ecx
push ebx
sbb ecx, ecx
lea edx, [esp + 0x7c]
and ecx, edx
mov edx, dword [eax]
push ecx
mov ecx, dword [eax + 0x38]
mov eax, dword [0x54f0c0]
push ebx
push ebx
push ecx
mov ecx, dword [eax + 0x18]
push esi
push ebx
push edx
call ecx
mov esi, eax
cmp esi, 0x90312
je 0x4a6907
mov edx, dword [edi + 8]
mov eax, dword [edx + 4]
push eax
call dword [0x54ae6c]
mov ecx, dword [edi + 8]
add esp, 4
mov dword [ecx + 4], ebx
push 0x100
cmp esi, 0x80090300
je 0x4a68d2
cmp esi, 0x80090322
je 0x4a689d
lea edx, [esp + 0xe4]
push edx
push esi
call fcn.0048f660
push eax
mov eax, dword [esp + 0x20]
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push eax
call fcn.00499e40
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, 0x23
pop ebx
add esp, 0x1d0
ret
lea ecx, [esp + 0xe4]
push ecx
push 0x80090322
call fcn.0048f660
mov edx, dword [esp + 0x1c]
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push edx
call fcn.00499e40
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, 0x3c
pop ebx
add esp, 0x1d0
ret
lea eax, [esp + 0xe4]
push eax
push 0x80090300
call fcn.0048f660
mov ecx, dword [esp + 0x1c]
push eax
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push ecx
call fcn.00499e40
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1d0
ret
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x1ec]
push eax
mov eax, dword [ebp + edx*4 + 0x420]
push ecx
push eax
push ebp
call fcn.0049a3c0
mov ecx, dword [esp + 0x60]
mov edx, dword [0x54f0c0]
add esp, 0x14
mov esi, eax
mov eax, dword [edx + 0x40]
push ecx
call eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
cmp esi, ebx
jne 0x4a697c
cmp ecx, eax
jne 0x4a697c
mov ecx, dword [edi + 8]
mov dword [ecx + 0x40], ebx
mov edx, dword [edi + 8]
mov dword [edx + 0x44], ebx
mov eax, dword [edi + 8]
mov dword [eax + 0x48], ebx
mov ecx, dword [edi + 8]
mov dword [ecx + 0x34], ebx
mov dword [edi + 4], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1d0
ret
mov edx, dword [esp + 0x10]
push ecx
push eax
push str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
push edx
call fcn.00499e40
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0x23
pop ebx
add esp, 0x1d0
ret