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

Disassembly:
sub esp, 0x1b8
push ebx
mov ebx, dword [esp + 0x1c0]
push ebp
mov ebp, dword [esp + 0x1c8]
push esi
shl ebp, 4
mov esi, 0x224
push edi
mov edi, dword [ebx]
add ebp, ebx
cmp dword [ebx + 0xf0], 2
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esi + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
jne 0x1013de06
cmp dword [ebx + 0x1c4], 0xffffffff
mov eax, esi
cmovne eax, ecx
cmp dword [eax + ebx], 2
je 0x1013de06
mov eax, dword [ebx + 0xe4]
jmp 0x1013de0c
mov eax, dword [ebx + 0x9c]
push 1
push 2
push 1
push 5
mov dword [esp + 0x34], eax
call fcn.1011f4f0
add esp, 0x10
test al, al
je 0x1013de32
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.1011fc90
add esp, 8
cmp byte [ebx + 0x2c2], 0
je 0x1013de6e
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 0x1013de6e
push 3
push 2
push 3
push 6
call fcn.1011f4f0
add esp, 0x10
test al, al
je 0x1013de6e
mov cl, 1
jmp 0x1013de70
xor cl, cl
mov eax, dword [ebp + 0x20c]
mov byte [eax + 0x46], cl
cmp dword [ebx + 0xf0], 2
jne 0x1013dea1
cmp dword [ebx + 0x1c4], 0xffffffff
mov eax, esi
mov ecx, 0x234
cmovne eax, ecx
cmp dword [eax + ebx], 2
je 0x1013dea1
mov eax, dword [ebx + 0x280]
jmp 0x1013dea7
mov eax, dword [ebx + 0x254]
test eax, eax
je 0x1013dee9
push 3
push 2
push 1
push 6
call fcn.1011f4f0
add esp, 0x10
test al, al
je 0x1013decb
mov eax, dword [ebp + 0x20c]
mov byte [eax + 0x47], 1
jmp 0x1013def3
push str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
push edi
call fcn.1011fbd0
add esp, 8
mov eax, 0x4d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret
mov eax, dword [ebp + 0x20c]
mov byte [eax + 0x47], 0
mov eax, dword [ebp + 0x20c]
mov dword [eax], 0
cmp dword [ebx + 0xf0], 2
jne 0x1013df27
cmp dword [ebx + 0x1c4], 0xffffffff
mov eax, esi
mov ecx, 0x234
cmovne eax, ecx
cmp dword [eax + ebx], 2
je 0x1013df27
mov al, byte [edi + 0x8bf]
jmp 0x1013df2d
mov al, byte [edi + 0x863]
test al, al
je 0x1013df72
push ebx
call fcn.1011dbf0
push dword [esp + 0x1d4]
lea eax, [esp + 0x28]
push 0
push eax
push ebx
call fcn.1011d630
add esp, 0x14
test al, al
jne 0x1013df69
mov ecx, dword [ebp + 0x20c]
mov eax, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x20c]
mov eax, dword [eax]
inc dword [eax + 0x10]
push ebx
call fcn.1011dc20
add esp, 4
mov esi, dword [ebp + 0x20c]
cmp dword [esi], 0
jne 0x1013e549
push 0x38
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.10024f30
add esp, 0xc
mov dword [esp + 0x68], 4
cmp byte [ebx + 0x270], 0
je 0x1013dfd2
cmp byte [esi + 0x47], 0
mov eax, 0x20
mov ecx, 8
cmovne eax, ecx
mov dword [esp + 0x98], eax
cmp byte [edi + 0x88f], 0
je 0x1013dfcb
or eax, 0x1800
jmp 0x1013dfd7
or eax, 0x200
jmp 0x1013dfd7
mov eax, 0x1808
cmp byte [ebx + 0x271], 0
mov dword [esp + 0x98], eax
jne 0x1013dff1
or eax, 4
mov dword [esp + 0x98], eax
mov edx, dword [ebx + 0x248]
cmp edx, 7
ja case.default.0x1013e000
jmp dword [edx*4 + 0x1013e840]
cmp dword [ebx + 0xf0], 2
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
jne 0x1013e03e
cmp dword [ebx + 0x1c4], 0xffffffff
mov eax, 0x224
mov ecx, 0x234
cmovne eax, ecx
cmp dword [eax + ebx], 2
je 0x1013e03e
mov edx, dword [ebx + 0x274]
mov esi, dword [ebx + 0x278]
jmp 0x1013e044
mov esi, dword [ebx + 0x24c]
test esi, esi
je 0x1013e050
cmp esi, 0x10000
jne 0x1013e055
mov esi, 0x60000
sar esi, 0x10
cmp edx, esi
jg 0x1013e0d2
mov ecx, dword [esp + 0x88]
add edx, 0xfffffffc
cmp edx, 3
ja case.default.0x1013e06b
jmp dword [edx*4 + 0x1013e860]
or ecx, 0x80
jmp 0x1013e088
or ecx, 0x200
jmp 0x1013e088
or ecx, 0x800
mov dword [esp + 0x88], ecx
inc edx
lea eax, [edx + 4]
cmp eax, esi
jle 0x1013e066
jmp 0x1013e0d2
push str.schannel:_TLS_1.3_is_not_yet_supported
push dword [esp + 0x14]
call fcn.1011fbd0
add esp, 8
mov eax, 0x23
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret
mov dword [esp + 0x88], 0x20
jmp 0x1013e0d2
mov dword [esp + 0x88], 8
mov ecx, dword [ebx + 0xf0]
cmp ecx, 2
jne 0x1013e10a
cmp dword [ebx + 0x1c4], 0xffffffff
mov eax, 0x224
mov edx, 0x234
cmovne eax, edx
cmp dword [eax + ebx], ecx
je 0x1013e10a
mov edx, dword [ebx + 0x290]
lea esi, [ebx + 0x290]
lea eax, [ebx + 0x264]
jmp 0x1013e11c
mov edx, dword [ebx + 0x264]
lea eax, [ebx + 0x264]
lea esi, [ebx + 0x290]
test edx, edx
je 0x1013e1ac
cmp ecx, 2
jne 0x1013e143
cmp dword [ebx + 0x1c4], 0xffffffff
mov ecx, 0x224
mov edx, 0x234
cmovne ecx, edx
cmp dword [ecx + ebx], 2
jne 0x1013e145
mov esi, eax
mov esi, dword [esi]
xor edi, edi
test esi, esi
je 0x1013e196
nop dword [eax]
cmp byte [esi], 0
je 0x1013e196
cmp edi, 0x2d
jge 0x1013e196
push 0
push 0
push esi
call fcn.1017fdfb
add esp, 0xc
test eax, eax
jne 0x1013e178
push esi
call fcn.1013cc70
add esp, 4
test eax, eax
je 0x1013e1f2
push 0x3a
mov dword [edi*4 + 0x101e26c0], eax
inc edi
push esi
call fcn.10028c30
mov esi, eax
add esp, 8
test esi, esi
je 0x1013e196
add esi, 1
jne 0x1013e150
mov dword [esp + 0x80], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x84], 0x101e26c0
mov esi, dword [edi + 0x878]
test esi, esi
je 0x1013e415
push 0x5c
push esi
call fcn.10028c30
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x1013e467
mov edi, eax
sub edi, esi
push edi
push str.CurrentUser
push esi
call fcn.1015a2b0
add esp, 0xc
test eax, eax
jne 0x1013e213
mov edi, 0x10000
jmp 0x1013e2d1
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push dword [esp + 0x18]
call fcn.1011fbd0
add esp, 8
mov eax, 0x3b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret
push edi
push str.LocalMachine
push esi
call fcn.1015a2b0
add esp, 0xc
test eax, eax
jne 0x1013e230
mov edi, 0x20000
jmp 0x1013e2d1
push edi
push str.CurrentService
push esi
call fcn.1015a2b0
add esp, 0xc
test eax, eax
jne 0x1013e24d
mov edi, 0x40000
jmp 0x1013e2d1
push edi
push str.Services
push esi
call fcn.1015a2b0
add esp, 0xc
test eax, eax
jne 0x1013e267
mov edi, 0x50000
jmp 0x1013e2d1
push edi
push str.Users
push esi
call fcn.1015a2b0
add esp, 0xc
test eax, eax
jne 0x1013e281
mov edi, 0x60000
jmp 0x1013e2d1
push edi
push str.CurrentUserGroupPolicy
push esi
call fcn.1015a2b0
add esp, 0xc
test eax, eax
jne 0x1013e29b
mov edi, 0x70000
jmp 0x1013e2d1
push edi
push str.LocalMachineGroupPolicy
push esi
call fcn.1015a2b0
add esp, 0xc
test eax, eax
jne 0x1013e2b5
mov edi, 0x80000
jmp 0x1013e2d1
push edi
push str.LocalMachineEnterprise
push esi
call fcn.1015a2b0
add esp, 0xc
test eax, eax
jne 0x1013e467
mov edi, 0x90000
mov eax, dword [esp + 0x10]
inc eax
push 0x5c
push eax
mov dword [esp + 0x18], eax
call fcn.10028c30
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x1013e467
push dword [esp + 0x10]
mov byte [eax], 0
call dword [0x101da89c]
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], edx
mov byte [eax], 0x5c
test edx, edx
jne 0x1013e31a
lea edi, [edx + 0x1b]
jmp 0x1013e46c
inc eax
mov ecx, eax
mov dword [esp + 0x50], eax
lea eax, [ecx + 1]
mov dword [esp + 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1013e328
sub ecx, dword [esp + 0x18]
cmp ecx, 0x28
jne 0x1013e467
push edx
mov eax, edi
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1013e38e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x10]
push eax
push esi
push edi
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is__x
push dword [esp + 0x24]
call fcn.1011fbd0
push esi
call dword [0x101da894]
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, 0x3a
pop ebx
add esp, 0x1b8
ret
mov esi, dword [esp + 0x10]
push esi
call dword [0x101da894]
add esp, 4
mov dword [esp + 0x54], 0x14
lea eax, [esp + 0xa4]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push 0
push 0
push eax
lea eax, [esp + 0xb0]
push eax
push 4
push 0x28
push dword [esp + 0x68]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x1013e37e
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x54]
push 0
push eax
push 0x10000
push 0
push 0x10001
push esi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1013e37e
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x70], 1
push esi
mov dword [esp + 0x78], eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov edi, dword [esp + 0x14]
push 0x18
push 1
call dword [0x101da8a0]
mov ecx, dword [ebp + 0x20c]
add esp, 8
mov dword [ecx], eax
mov eax, dword [ebp + 0x20c]
mov eax, dword [eax]
test eax, eax
jne 0x1013e48b
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.1011fbd0
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je case.0x1013e524.2146893056
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1b8
ret
mov edi, 0x3a
push esi
push str.schannel:_Failed_to_get_certificate_location_for__s
push dword [esp + 0x1c]
call fcn.1011fbd0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret
mov dword [eax + 0x10], 1
mov eax, dword [ebp + 0x20c]
mov ecx, dword [eax]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [esp + 0x78]
push eax
mov eax, dword [0x101e2778]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov ecx, dword [esp + 0x1c]
mov esi, eax
test ecx, ecx
je 0x1013e4ce
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x1013e549
push pe_nt_image_headers32
lea eax, [esp + 0x14c]
push eax
push esi
call fcn.10140600
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push edi
call fcn.1011fbd0
mov eax, dword [ebp + 0x20c]
push dword [eax]
call dword [0x101da894]
mov eax, dword [ebp + 0x20c]
add esi, 0x7ff6fd00
add esp, 0x1c
mov dword [eax], 0
cmp esi, 0xe
ja case.0x1013e524.2146893055
movzx eax, byte [esi + 0x1013e87c]
jmp dword [eax*4 + 0x1013e870]
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push edi
call fcn.1011fbd0
add esp, 8
mov eax, 0x23
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret
mov esi, dword [esp + 0x24]
lea eax, [esp + 0xa0]
push eax
push esi
push 2
call fcn.1013b940
add esp, 0xc
test eax, eax
jne 0x1013e57b
lea eax, [esp + 0xb8]
push eax
push esi
push 0x17
call fcn.1013b940
add esp, 0xc
test eax, eax
je 0x1013e589
push str.schannel:_using_IP_address__SNI_is_not_supported_by_OS._n
push edi
call fcn.1011fc90
add esp, 8
mov eax, dword [ebp + 0x20c]
cmp byte [eax + 0x46], 0
je 0x1013e60a
push str.http_1.1
push str.schannel:_ALPN__offering__s_n
push edi
mov dword [esp + 0xd8], 2
mov byte [esp + 0xde], 8
mov dword [esp + 0xdf], 0x70747468
mov dword [esp + 0xe3], 0x312e312f
call fcn.1011fc90
push 9
call fcn.10119e10
mov word [esp + 0xe0], ax
add esp, 0x10
movzx eax, ax
add eax, 6
mov dword [esp + 0x2c], 0x13
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc8]
mov dword [esp + 0x30], 0x12
mov dword [esp + 0x34], eax
jmp 0x1013e622
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x20c]
push 0x10
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 1
push 1
mov dword [eax + 0x38], 0x811c
call dword [0x101da8a0]
mov ecx, dword [ebp + 0x20c]
add esp, 8
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x20c]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x1013e6b8
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.1011fbd0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1b8
ret
test esi, esi
je case.0x1013e524.2146893056
lea eax, [edx + 8]
push eax
lea eax, [ecx + 0x3c]
push eax
lea eax, [esp + 0x64]
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 [0x101e2778]
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 0x1013e797
mov ecx, dword [ebp + 0x20c]
push dword [ecx + 4]
call dword [0x101da894]
mov ecx, dword [ebp + 0x20c]
lea eax, [esp + 0x14c]
add esp, 4
mov dword [ecx + 4], 0
push pe_nt_image_headers32
push eax
push esi
call fcn.10140600
push eax
cmp esi, 0x80090300
je 0x1013e779
cmp esi, 0x80090322
je 0x1013e75b
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push edi
call fcn.1011fbd0
add esp, 0x18
mov eax, 0x23
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret
push str.schannel:_SNI_or_certificate_check_failed:__s
push edi
call fcn.1011fbd0
add esp, 0x18
mov eax, 0x3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push edi
call fcn.1011fbd0
add esp, 0x18
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b8
ret
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x3c]
mov eax, dword [esp + 0x1d8]
push dword [esp + 0x48]
push dword [ebx + eax*4 + 0x1c0]
push ebx
call fcn.10120130
mov ecx, dword [0x101e2778]
add esp, 0x14
mov esi, eax
push dword [esp + 0x40]
mov ecx, dword [ecx + 0x40]
call ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
test esi, esi
jne 0x1013e81e
cmp ecx, eax
jne 0x1013e81e
mov eax, dword [ebp + 0x20c]
pop edi
pop esi
mov dword [eax + 0x40], 0
mov eax, dword [ebp + 0x20c]
mov byte [eax + 0x44], 0
mov eax, dword [ebp + 0x20c]
mov byte [eax + 0x45], 0
mov eax, dword [ebp + 0x20c]
mov byte [eax + 0x34], 0
xor eax, eax
mov dword [ebp + 0x208], 1
pop ebp
pop ebx
add esp, 0x1b8
ret
push ecx
push eax
push str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
push edi
call fcn.1011fbd0
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0x23
pop ebx
add esp, 0x1b8
ret