Function at 0x5b43c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x13c
mov eax, dword [0x7ec06c]
xor eax, esp
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0x144]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x150]
mov ebx, eax
shl ebx, 4
mov esi, 0x210
add ebx, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0xffffffff
cmp dword [edi + 0xec], 2
mov ebp, dword [edi]
lea ecx, [esi + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
jne 0x5b443a
cmp dword [edi + 0x1ac], 0xffffffff
mov eax, esi
cmovne eax, ecx
cmp dword [eax + edi], 2
je 0x5b443a
mov eax, dword [edi + 0xe0]
jmp 0x5b4440
mov eax, dword [edi + 0x9c]
push dword [edi + 0xfc]
mov dword [esp + 0x24], eax
push eax
push str.schannel:_SSL_TLS_connection_with__s_port__hu__step_1_3__n
push ebp
call fcn.0058e3b0
push 1
push 2
push 1
push 5
call fcn.005b83a0
add esp, 0x20
test al, al
je 0x5b4478
push str.schannel:_WinSSL_version_is_old_and_may_not_be_able_to_connect_to_some_servers_due_to_lack_of_SNI__algorithms__etc._n
push ebp
call fcn.0058e3b0
add esp, 8
cmp byte [edi + 0x2a0], 0
je 0x5b44b4
push str.wine_get_version
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x5b44b4
push 3
push 2
push 3
push 6
call fcn.005b83a0
add esp, 0x10
test al, al
je 0x5b44b4
mov cl, 1
jmp 0x5b44b6
xor cl, cl
mov eax, dword [ebx + 0x1f8]
mov byte [eax + 0x46], cl
cmp dword [edi + 0xec], 2
jne 0x5b44e7
cmp dword [edi + 0x1ac], 0xffffffff
mov eax, esi
mov ecx, 0x220
cmovne eax, ecx
cmp dword [eax + edi], 2
je 0x5b44e7
mov eax, dword [edi + 0x268]
jmp 0x5b44ed
mov eax, dword [edi + 0x240]
test eax, eax
je 0x5b4529
push 3
push 2
push 1
push 6
call fcn.005b83a0
add esp, 0x10
test al, al
je 0x5b4511
mov eax, dword [ebx + 0x1f8]
mov byte [eax + 0x47], 1
jmp 0x5b4533
push str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
push ebp
call fcn.0058e2d0
add esp, 8
mov eax, 0x4d
jmp 0x5b4def
mov eax, dword [ebx + 0x1f8]
mov byte [eax + 0x47], 0
mov eax, dword [ebx + 0x1f8]
mov dword [eax], 0
cmp dword [edi + 0xec], 2
jne 0x5b4567
cmp dword [edi + 0x1ac], 0xffffffff
mov eax, esi
mov ecx, 0x220
cmovne eax, ecx
cmp dword [eax + edi], 2
je 0x5b4567
mov al, byte [ebp + 0x46f]
jmp 0x5b456d
mov al, byte [ebp + 0x417]
test al, al
je 0x5b45d3
push edi
call fcn.0058dfa0
push dword [esp + 0x28]
lea eax, [esp + 0x20]
push 0
push eax
push edi
call fcn.0058d9f0
add esp, 0x14
test al, al
jne 0x5b45ca
mov ecx, dword [ebx + 0x1f8]
mov eax, dword [esp + 0x18]
push str.schannel:_re_using_existing_credential_handle_n
push ebp
mov dword [ecx], eax
call fcn.0058e3b0
mov eax, dword [ebx + 0x1f8]
mov eax, dword [eax]
inc dword [eax + 0x10]
mov eax, dword [ebx + 0x1f8]
mov eax, dword [eax]
push dword [eax + 0x10]
push str.schannel:_incremented_credential_handle_refcount___d_n
push ebp
call fcn.0058e3b0
add esp, 0x14
push edi
call fcn.0058dfc0
add esp, 4
mov esi, dword [ebx + 0x1f8]
cmp dword [esi], 0
jne 0x5b4b3a
push 0x38
lea eax, [esp + 0x60]
push 0
push eax
call fcn.005530b0
add esp, 0xc
mov dword [esp + 0x5c], 4
cmp byte [edi + 0x238], 0
je 0x5b4646
cmp byte [esi + 0x47], 0
mov eax, 0x20
mov ecx, 8
cmovne eax, ecx
mov dword [esp + 0x8c], eax
cmp byte [ebp + 0x435], 0
je 0x5b4633
or eax, 0x1800
mov dword [esp + 0x8c], eax
jmp 0x5b4651
or eax, 0x200
mov dword [esp + 0x8c], eax
mov eax, str.schannel:_checking_server_certificate_revocation_n
jmp 0x5b4656
mov dword [esp + 0x8c], 0x1808
mov eax, str.schannel:_disabled_server_certificate_revocation_checks_n
push eax
push ebp
call fcn.0058e3b0
add esp, 8
cmp byte [edi + 0x239], 0
jne 0x5b467f
or dword [esp + 0x8c], 4
push str.schannel:_verifyhost_setting_prevents_Schannel_from_comparing_the_supplied_target_name_with_the_subject_names_in_server_certificates._n
push ebp
call fcn.0058e3b0
add esp, 8
mov edx, dword [edi + 0x230]
cmp edx, 7
ja case.default.0x5b468e
jmp dword [edx*4 + 0x5b4e08]
mov dword [esp + 0x7c], 0xa80
jmp 0x5b477a
mov ecx, dword [edi + 0xec]
mov esi, 0x220
mov eax, dword [edi]
mov dword [esp + 0x10], eax
cmp ecx, 2
jne 0x5b46f6
cmp dword [edi + 0x1ac], 0xffffffff
mov eax, 0x210
cmovne eax, esi
cmp dword [eax + edi], ecx
je 0x5b46d4
mov edx, dword [edi + 0x258]
jmp 0x5b46d9
cmp ecx, 2
jne 0x5b46f6
cmp dword [edi + 0x1ac], 0xffffffff
mov eax, 0x210
cmovne eax, esi
cmp dword [eax + edi], 2
je 0x5b46f6
mov esi, dword [edi + 0x25c]
jmp 0x5b46fc
mov esi, dword [edi + 0x234]
test esi, esi
je 0x5b470f
cmp esi, 0x10000
jne 0x5b4714
mov esi, 0x60000
jmp 0x5b4714
mov esi, edx
shl esi, 0x10
sar esi, 0x10
cmp edx, esi
jg 0x5b477a
mov ecx, dword [esp + 0x7c]
add edx, 0xfffffffc
cmp edx, 3
ja case.default.0x5b4727
jmp dword [edx*4 + 0x5b4e28]
or ecx, 0x80
jmp 0x5b4744
or ecx, 0x200
jmp 0x5b4744
or ecx, 0x800
mov dword [esp + 0x7c], ecx
inc edx
lea eax, [edx + 4]
cmp eax, esi
jle 0x5b4722
jmp 0x5b477a
push str.Schannel:_TLS_1.3_is_not_yet_supported
push dword [esp + 0x14]
call fcn.0058e2d0
add esp, 8
jmp 0x5b4dea
mov dword [esp + 0x7c], 0x20
jmp 0x5b477a
mov dword [esp + 0x7c], 8
mov ecx, dword [edi + 0xec]
mov edx, 0x210
lea esi, [edx + 0x10]
cmp ecx, 2
jne 0x5b47a6
cmp dword [edi + 0x1ac], 0xffffffff
mov eax, edx
cmovne eax, esi
cmp dword [eax + edi], ecx
je 0x5b47a6
mov eax, dword [edi + 0x278]
jmp 0x5b47ac
mov eax, dword [edi + 0x250]
test eax, eax
je 0x5b482e
cmp ecx, 2
jne 0x5b47cc
cmp dword [edi + 0x1ac], 0xffffffff
cmovne edx, esi
cmp dword [edx + edi], ecx
je 0x5b47cc
mov esi, dword [edi + 0x278]
jmp 0x5b47d2
mov esi, dword [edi + 0x250]
xor ebx, ebx
test esi, esi
je 0x5b481e
cmp byte [esi], 0
je 0x5b481e
cmp ebx, 0x2d
jge 0x5b481e
push 0
push 0
push esi
call fcn.0056f2fa
add esp, 0xc
test eax, eax
jne 0x5b4800
push esi
call fcn.005b3400
add esp, 4
test eax, eax
je 0x5b4874
push 0x3a
mov dword [ebx*4 + 0x807438], eax
inc ebx
push esi
call fcn.00552990
mov esi, eax
add esp, 8
test esi, esi
je 0x5b481e
add esi, 1
jne 0x5b47d8
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x78], 0x807438
mov esi, dword [ebp + 0x450]
test esi, esi
je 0x5b4a3c
push 0x5c
push esi
call fcn.00552990
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x5b4a88
mov ebx, eax
sub ebx, esi
push ebx
push str.CurrentUser
push esi
call fcn.0056e0c0
add esp, 0xc
test eax, eax
jne 0x5b488c
mov ebx, 0x10000
jmp 0x5b494a
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push ebp
call fcn.0058e2d0
add esp, 8
mov eax, 0x3b
jmp 0x5b4def
push ebx
push str.LocalMachine
push esi
call fcn.0056e0c0
add esp, 0xc
test eax, eax
jne 0x5b48a9
mov ebx, 0x20000
jmp 0x5b494a
push ebx
push str.CurrentService
push esi
call fcn.0056e0c0
add esp, 0xc
test eax, eax
jne 0x5b48c6
mov ebx, 0x40000
jmp 0x5b494a
push ebx
push str.Services
push esi
call fcn.0056e0c0
add esp, 0xc
test eax, eax
jne 0x5b48e0
mov ebx, 0x50000
jmp 0x5b494a
push ebx
push str.Users
push esi
call fcn.0056e0c0
add esp, 0xc
test eax, eax
jne 0x5b48fa
mov ebx, 0x60000
jmp 0x5b494a
push ebx
push str.CurrentUserGroupPolicy
push esi
call fcn.0056e0c0
add esp, 0xc
test eax, eax
jne 0x5b4914
mov ebx, 0x70000
jmp 0x5b494a
push ebx
push str.LocalMachineGroupPolicy
push esi
call fcn.0056e0c0
add esp, 0xc
test eax, eax
jne 0x5b492e
mov ebx, 0x80000
jmp 0x5b494a
push ebx
push str.LocalMachineEnterprise
push esi
call fcn.0056e0c0
add esp, 0xc
test eax, eax
jne 0x5b4a88
mov ebx, 0x90000
mov eax, dword [esp + 0x10]
inc eax
push 0x5c
push eax
call fcn.00552990
add esp, 8
test eax, eax
je 0x5b4a88
mov byte [eax], 0
inc eax
mov ecx, eax
mov dword [esp + 0x50], eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5b4970
sub ecx, edx
cmp ecx, 0x28
jne 0x5b4a88
mov eax, dword [esp + 0x10]
inc eax
push eax
mov eax, ebx
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov esi, eax
test esi, esi
jne 0x5b49c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x14]
inc eax
push eax
push ebx
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is__x
push ebp
call fcn.0058e2d0
add esp, 0x14
jmp 0x5b4dea
push 0
push 0
lea eax, [esp + 0xbc]
mov dword [esp + 0x5c], 0x14
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0xc0]
push eax
push 4
push 0x28
push dword [esp + 0x68]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x5b4dea
push 0
lea eax, [esp + 0x58]
push eax
push 0x10000
push 0
push 0x10001
push esi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x14], eax
test eax, eax
je 0x5b4a2f
lea eax, [esp + 0x14]
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], eax
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov ebx, dword [esp + 0x1c]
push 0x18
push 1
call dword [0x7eca9c]
mov ecx, dword [ebx + 0x1f8]
add esp, 8
mov dword [ecx], eax
mov eax, dword [ebx + 0x1f8]
mov eax, dword [eax]
test eax, eax
jne 0x5b4a9c
push str.schannel:_unable_to_allocate_memory
push ebp
call fcn.0058e2d0
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x5b4cb0
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
jmp 0x5b4def
push esi
push str.schannel:_Failed_to_get_certificate_location_for__s
push ebp
call fcn.0058e2d0
add esp, 0xc
jmp 0x5b4dea
mov dword [eax + 0x10], 1
mov eax, dword [ebx + 0x1f8]
mov ecx, dword [eax]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [esp + 0x6c]
push eax
mov eax, dword [0x8074f0]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov ecx, dword [esp + 0x14]
mov esi, eax
test ecx, ecx
je 0x5b4adf
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x5b4b3a
push esi
push edi
call fcn.005b6850
mov edx, str.schannel:_AcquireCredentialsHandle_failed:__s
cmp esi, 0x80090322
mov ecx, str.schannel:_SNI_or_certificate_check_failed:__s
push eax
cmovne ecx, edx
push ecx
push ebp
call fcn.0058e2d0
mov eax, dword [ebx + 0x1f8]
push dword [eax]
call dword [0x7eca90]
mov eax, dword [ebx + 0x1f8]
add esp, 0x18
mov dword [eax], 0
jmp 0x5b4dea
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ebp
call fcn.0058e2d0
add esp, 8
jmp 0x5b4dea
mov esi, dword [esp + 0x20]
lea eax, [esp + 0xa0]
push eax
push esi
push 2
call fcn.0058f930
add esp, 0xc
test eax, eax
jne 0x5b4b6c
lea eax, [esp + 0xa4]
push eax
push esi
push 0x17
call fcn.0058f930
add esp, 0xc
test eax, eax
je 0x5b4b7a
push str.schannel:_using_IP_address__SNI_is_not_supported_by_OS._n
push ebp
call fcn.0058e3b0
add esp, 8
mov eax, dword [ebx + 0x1f8]
cmp byte [eax + 0x46], 0
je 0x5b4c0f
mov eax, dword [str.http_1.1]
push str.http_1.1
mov dword [esp + 0xd7], eax
mov eax, dword [0x6e4fe8]
push str.schannel:_ALPN__offering__s_n
push ebp
mov dword [esp + 0xd8], 2
mov byte [esp + 0xde], 8
mov dword [esp + 0xe3], eax
call fcn.0058e3b0
push 9
call fcn.0058e1e0
mov word [esp + 0xe0], ax
add esp, 0x10
movzx eax, ax
add eax, 6
mov dword [esp + 0x38], 0x13
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc8]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x1f8]
mov dword [esp + 0x3c], 0x12
jmp 0x5b4c2f
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 1
push 0x10
mov dword [esp + 0x48], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x9c], 1
push 1
mov dword [eax + 0x38], 0x811c
call dword [0x7eca9c]
mov ecx, dword [ebx + 0x1f8]
add esp, 8
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 0x1f8]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x5b4cba
push str.schannel:_unable_to_allocate_memory
push ebp
call fcn.0058e2d0
add esp, 8
mov eax, 0x1b
jmp 0x5b4def
test esi, esi
je 0x5b4cb0
lea eax, [edx + 8]
push eax
lea eax, [ecx + 0x3c]
push eax
lea eax, [esp + 0x9c]
push eax
push edx
xor edx, edx
lea eax, [esp + 0x54]
cmp byte [ecx + 0x46], dl
push 0
cmove eax, edx
push eax
mov eax, dword [0x8074f0]
push edx
push edx
push dword [ecx + 0x38]
mov eax, dword [eax + 0x18]
push esi
push edx
push dword [ecx]
call eax
mov esi, eax
cmp esi, 0x90312
je 0x5b4d41
push esi
push edi
call fcn.005b6850
mov edx, str.schannel:_initial_InitializeSecurityContext_failed:__s
cmp esi, 0x80090322
mov ecx, str.schannel:_SNI_or_certificate_check_failed:__s
push eax
cmovne ecx, edx
push ecx
push ebp
call fcn.0058e2d0
mov eax, dword [ebx + 0x1f8]
push dword [eax + 4]
call dword [0x7eca90]
mov eax, dword [ebx + 0x1f8]
add esp, 0x18
mov dword [eax + 4], 0
jmp 0x5b4dea
push dword [esp + 0x2c]
push str.schannel:_sending_initial_handshake_data:_sending__lu_bytes..._n
push ebp
call fcn.0058e3b0
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push dword [esp + 0x48]
push dword [edi + eax*4 + 0x1a8]
push edi
call fcn.0058e990
mov ecx, dword [0x8074f0]
add esp, 0x20
mov esi, eax
push dword [esp + 0x34]
mov ecx, dword [ecx + 0x40]
call ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
test esi, esi
jne 0x5b4dda
cmp ecx, eax
jne 0x5b4dda
push eax
push str.schannel:_sent_initial_handshake_data:_sent__zd_bytes_n
push ebp
call fcn.0058e3b0
mov eax, dword [ebx + 0x1f8]
add esp, 0xc
mov dword [eax + 0x40], 0
mov eax, dword [ebx + 0x1f8]
mov byte [eax + 0x44], 0
mov eax, dword [ebx + 0x1f8]
mov byte [eax + 0x45], 0
mov eax, dword [ebx + 0x1f8]
mov byte [eax + 0x34], 0
xor eax, eax
mov dword [ebx + 0x1f4], 1
jmp 0x5b4def
push ecx
push eax
push str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
push ebp
call fcn.0058e2d0
add esp, 0x10
mov eax, 0x23
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053bd3e
add esp, 0x13c
ret