Function at 0x4a58e0
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 0x4a594c
xor edx, edx
cmp dword [ebp + 0x424], ecx
setne dl
add edx, edx
cmp dword [ebp + edx*8 + 0x488], esi
je 0x4a594c
mov eax, dword [ebp + 0x34c]
mov dword [esp + 0x40], eax
jmp 0x4a5956
mov ecx, dword [ebp + 0x304]
mov dword [esp + 0x40], ecx
push 1
push esi
push 1
push 5
call fcn.004a4950
add esp, 0x10
test eax, eax
je 0x4a5977
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.00499770
add esp, 8
mov edx, dword [edi + 8]
xor ecx, ecx
mov dword [edx + 0x4c], ecx
cmp dword [ebp + 0x358], esi
jne 0x4a59a6
xor eax, eax
cmp dword [ebp + 0x424], 0xffffffff
setne al
add eax, eax
cmp dword [ebp + eax*8 + 0x488], esi
je 0x4a59a6
mov eax, dword [ebp + 0x4f8]
jmp 0x4a59ac
mov eax, dword [ebp + 0x4b8]
cmp eax, ecx
je 0x4a59ed
push 3
push esi
push 1
push 6
call fcn.004a4950
add esp, 0x10
test eax, eax
je 0x4a59cf
mov ecx, dword [edi + 8]
mov dword [ecx + 0x50], 1
jmp 0x4a59f3
push str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
push ebx
call fcn.00499840
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 0x4a5a23
xor ecx, ecx
cmp dword [ebp + 0x424], 0xffffffff
setne cl
add ecx, ecx
cmp dword [ebp + ecx*8 + 0x488], esi
je 0x4a5a23
mov eax, dword [ebx + 0x924]
jmp 0x4a5a29
mov eax, dword [ebx + 0x89c]
test eax, eax
je 0x4a5a69
push ebp
call fcn.00490800
mov edx, dword [esp + 0x1ec]
push edx
push 0
lea eax, [esp + 0x48]
push eax
push ebp
call fcn.00490860
add esp, 0x14
test eax, eax
jne 0x4a5a60
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.00490830
add esp, 4
mov esi, dword [edi + 8]
cmp dword [esi], 0
jne 0x4a612c
push 0x38
lea ecx, [esp + 0x84]
push 0
push ecx
call fcn.004d8ce0
add esp, 0xc
cmp dword [ebp + 0x4dc], 0
mov dword [esp + 0x80], 4
mov ecx, ebx
je 0x4a5ada
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 0x4a5ac3
or eax, 0x1800
jmp 0x4a5adf
cmp dword [ecx + 0x8e0], 0
je 0x4a5ad3
or eax, 0x1a00
jmp 0x4a5adf
or eax, 0x200
jmp 0x4a5adf
mov eax, 0x1808
cmp dword [ebp + 0x4e0], 0
mov dword [esp + 0xb0], eax
jne 0x4a5af9
or eax, 4
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 0x4ac]
cmp eax, 7
ja case.default.0x4a5b08
jmp dword [eax*4 + 0x4a63a0]
mov eax, ebp
lea esi, [esp + 0x80]
call fcn.004a4a90
test eax, eax
je 0x4a5b44
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret
mov dword [esp + 0xa0], 0x20
jmp 0x4a5b44
mov dword [esp + 0xa0], 8
mov ecx, dword [ebp + 0x358]
cmp ecx, 2
jne 0x4a5b6e
xor edx, edx
cmp dword [ebp + 0x424], 0xffffffff
setne dl
add edx, edx
cmp dword [ebp + edx*8 + 0x488], ecx
je 0x4a5b6e
mov eax, dword [ebp + 0x508]
jmp 0x4a5b74
mov eax, dword [ebp + 0x4c8]
test eax, eax
je 0x4a5bd3
cmp ecx, 2
jne 0x4a5b9c
xor eax, eax
cmp dword [ebp + 0x424], 0xffffffff
setne al
add eax, eax
cmp dword [ebp + eax*8 + 0x488], ecx
je 0x4a5b9c
mov eax, dword [ebp + 0x508]
jmp 0x4a5ba2
mov eax, dword [ebp + 0x4c8]
lea ebx, [esp + 0x80]
call fcn.004a5700
mov esi, eax
test esi, esi
je 0x4a5bd3
mov ecx, dword [esp + 0x10]
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push ecx
call fcn.00499840
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 0x4a5bef
cmp dword [ebx + 0x888], esi
je 0x4a602a
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 0x4a5c31
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 0x4a5c9f
cmp eax, esi
je 0x4a6061
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x38]
push ecx
call fcn.004a5770
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4a5d12
mov eax, dword [ebx + 0x870]
cmp byte [eax], 0
je 0x4a5c79
push 0x50dcf0
push eax
call fcn.004a9560
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a5c9b
mov edx, dword [ebx + 0x870]
push edx
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push ebx
call fcn.00499840
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 0x4a5ceb
push 0x51ad3c
push eax
call fcn.004a22f0
add esp, 8
test eax, eax
jne 0x4a5ceb
cmp dword [esp + 0x20], eax
mov eax, str._memory_blob_
jne 0x4a5ccc
mov eax, dword [ebx + 0x870]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebx
call fcn.00499840
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x3a
pop ebx
add esp, 0x1d0
ret
test edi, edi
jne 0x4a5cf5
cmp dword [esp + 0x20], edi
je 0x4a5d16
xor ebp, ebp
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x20], ebp
je 0x4a5dd9
mov dword [esp + 0x14], str._memory_blob_
jmp 0x4a5de5
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 0x4a5d63
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.00499840
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 0x4a5fe1
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 0x4a5fdf
lea ecx, [esp + 0x1c]
mov dword [esp + 0x88], ecx
jmp 0x4a600e
mov edx, ebx
mov eax, dword [edx + 0x870]
mov dword [esp + 0x14], eax
cmp edi, ebp
je 0x4a5ea5
push 2
xor ebx, ebx
push ebx
push edi
call fcn.004dbda4
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x4a5e17
push edi
call fcn.004dc78e
mov ebx, eax
add esp, 4
test ebx, ebx
jns 0x4a5e17
xor esi, esi
jmp 0x4a5e44
mov dword [esp + 0x24], ebx
test esi, esi
je 0x4a5e44
push 0
push 0
push edi
call fcn.004dbda4
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x4a5e44
inc ebx
push ebx
call dword [0x54ae68]
add esp, 4
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], ebp
je 0x4a5e64
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push edi
push 1
push ecx
push edx
call fcn.004dbcfd
add esp, 0x10
cmp eax, 1
je 0x4a5e66
xor esi, esi
push edi
call fcn.004d7aea
add esp, 4
test esi, esi
jne 0x4a5ea5
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.00499840
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 0x4a5ed1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a5ec6
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 0x4a5f3c
test ebp, ebp
je 0x4a5f2c
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 0x4a5f30
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 0x4a5f40
mov eax, dword [esp + 0x28]
cmp eax, ebp
jg 0x4a5f07
xor edx, edx
mov word [esi + eax*2], dx
jmp 0x4a5f0c
mov edi, dword [esp + 0x2c]
cmp dword [esp + 0x20], 0
jne 0x4a5f55
mov edx, dword [esp + 0x18]
push edx
call dword [0x54ae6c]
add esp, 4
test edi, edi
jne 0x4a5fa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x4a5f85
mov eax, dword [esp + 0x14]
push eax
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.00499840
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.00499840
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 0x4a5ff8
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.00499840
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 0x4a6071
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.00499840
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x4a6061
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 [0x54ee60]
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 0x4a60b6
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x4a612c
push 0x100
lea edx, [esp + 0xe4]
push edx
push esi
call fcn.0048f050
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.00499840
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.00499840
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.004c8160
add esp, 0xc
test eax, eax
jne 0x4a615e
lea ecx, [esp + 0xd0]
push ecx
push esi
push 0x17
call fcn.004c8160
add esp, 0xc
test eax, eax
je 0x4a6170
mov edx, dword [esp + 0x10]
push str.schannel:_using_IP_address__SNI_is_not_supported_by_OS._n
push edx
call fcn.00499770
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 0x4a61f6
mov edx, dword [esp + 0x10]
push str.schannel:_unable_to_allocate_memory
push edx
call fcn.00499840
add esp, 8
pop edi
pop esi
pop ebp
lea eax, [ebx + 0x1b]
pop ebx
add esp, 0x1d0
ret
cmp esi, ebx
je 0x4a6061
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 [0x54ee60]
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 0x4a6307
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 0x4a62d2
cmp esi, 0x80090322
je 0x4a629d
lea edx, [esp + 0xe4]
push edx
push esi
call fcn.0048f050
push eax
mov eax, dword [esp + 0x20]
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push eax
call fcn.00499840
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.0048f050
mov edx, dword [esp + 0x1c]
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push edx
call fcn.00499840
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.0048f050
mov ecx, dword [esp + 0x1c]
push eax
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push ecx
call fcn.00499840
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.00499dc0
mov ecx, dword [esp + 0x60]
mov edx, dword [0x54ee60]
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 0x4a637c
cmp ecx, eax
jne 0x4a637c
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.00499840
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0x23
pop ebx
add esp, 0x1d0
ret