Function at 0x445187
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x19c
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
mov ebx, dword [esp + 0x1a8]
push ebp
mov ebp, dword [esp + 0x1a8]
push esi
push edi
push ebp
mov esi, dword [ebp + 8]
call fcn.00428bb0
push ebx
push ebp
mov dword [esp + 0x44], eax
call fcn.00428b90
mov dword [esp + 0x24], 0
xor edi, edi
mov edx, dword [esi + 0x24]
add esp, 0xc
mov esi, dword [esp + 0x38]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edx
cmp byte [esi + 0x39], 0
je 0x445131
cmp byte [edx + 0x48], 0
mov ecx, 0x20
mov edx, 8
cmovne ecx, edx
cmp byte [eax + 0x63], 0
je 0x44511b
or ecx, 0x1800
jmp 0x445136
cmp byte [eax + 0x65], 0
je 0x445129
or ecx, 0x1a00
jmp 0x445136
or ecx, 0x200
jmp 0x445136
mov ecx, 0x1808
cmp byte [esi + 0x3a], 0
mov dword [esp + 0x24], ecx
jne 0x445147
or ecx, 4
mov dword [esp + 0x24], ecx
cmp byte [eax + 0x67], 0
jne 0x44515e
and ecx, 0xffffffbf
or ecx, 0x10
mov dword [esp + 0x24], ecx
push str.schannel:_disabled_automatic_use_of_client_certificate
jmp 0x445163
push str.schannel:_enabled_automatic_use_of_client_certificate
push ebx
call fcn.0042ffe0
movzx eax, byte [esi + 0x38]
add esp, 8
cmp eax, 7
ja case.default.0x445180
movzx eax, byte [eax + 0x445c18]
jmp dword [eax*4 + 0x445c10]
push ebx
lea eax, [esp + 0x50]
push ebp
push eax
call fcn.00446d80
add esp, 0xc
test eax, eax
jne 0x445bf6
mov eax, dword [ebx + 0x3c0]
test eax, eax
jne 0x4451b4
cmp dword [ebx + 0x3d4], edi
je 0x445646
mov ecx, dword [ebx + 0x3d4]
xor ebp, ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], edi
xor edi, edi
test ecx, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], edi
setne dl
mov dword [esp + 0x1c], edi
xor esi, esi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x13], dl
test dl, dl
je 0x4451f4
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x2c], eax
jmp 0x445258
push eax
call fcn.00442350
mov esi, eax
add esp, 4
test esi, esi
je 0x445688
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00444f10
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x445543
mov eax, dword [ebx + 0x3c0]
cmp byte [eax], 0
je 0x445522
push 0x54fd04
push eax
call fcn.00442430
mov ecx, eax
add esp, 8
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x445522
mov ebp, dword [esp + 0x20]
mov eax, dword [ebx + 0x400]
test eax, eax
je 0x4452ad
push 0x554478
push eax
call fcn.004368f0
add esp, 8
test eax, eax
jne 0x4452ad
mov al, byte [esp + 0x13]
test al, al
mov eax, str._memory_blob_
jne 0x445287
mov eax, dword [ebx + 0x3c0]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebx
call fcn.0042ff10
add esp, 0xc
test esi, esi
je 0x4452a3
push esi
call fcn.004f67c5
add esp, 4
mov eax, 0x3a
jmp 0x445bf6
mov al, byte [esp + 0x13]
cmp dword [esp + 0x28], edi
jne 0x4452bf
test al, al
je 0x445547
xor ebp, ebp
test al, al
je 0x4452cf
mov dword [esp + 0x20], str._memory_blob_
jmp 0x4452d9
mov eax, dword [ebx + 0x3c0]
mov dword [esp + 0x20], eax
test esi, esi
je 0x4452e6
push esi
call fcn.004f67c5
add esp, 4
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4453d0
push 2
push 0
push esi
mov dword [esp + 0x34], edi
call fcn.004fd47a
add esp, 0xc
test eax, eax
sete al
mov byte [esp + 0x14], al
test al, al
je 0x445385
push esi
call fcn.004fe1c7
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
jns 0x445381
mov byte [esp + 0x14], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
test eax, eax
je 0x445344
push esi
push 1
push ecx
push eax
call fcn.004fd0f5
add esp, 0x10
cmp eax, 1
je 0x445349
mov byte [esp + 0x14], 0
push esi
call fcn.004f2d0d
add esp, 4
cmp byte [esp + 0x14], 0
jne 0x4453d0
push dword [ebx + 0x3c0]
push str.schannel:_Failed_to_read_cert_file__s
push ebx
call fcn.0042ff10
push dword [esp + 0x28]
call dword [0x5a8004]
add esp, 0x10
mov eax, 0x3a
jmp 0x445bf6
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
test al, al
je 0x4453c7
push 0
push 0
push esi
call fcn.004fd47a
add esp, 0xc
test eax, eax
sete al
mov byte [esp + 0x14], al
test al, al
je 0x445326
mov eax, dword [esp + 0x28]
inc eax
push eax
call dword [section..data]
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x44532a
mov eax, dword [esp + 0x1c]
jmp 0x44532e
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x410]
test eax, eax
je 0x4453fa
mov ebp, eax
lea ecx, [ebp + 1]
nop
mov al, byte [ebp]
inc ebp
test al, al
jne 0x4453f0
sub ebp, ecx
lea eax, [ebp*2 + 2]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x44547c
test ebp, ebp
je 0x445458
lea ecx, [ebp + 1]
push ecx
push esi
push ebp
push dword [ebx + 0x410]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x44545a
xor eax, eax
mov word [esi], ax
push 3
push 2
push 0
push 0
push 6
call fcn.00464830
add esp, 0x14
test al, al
lea eax, [esp + 0x40]
je 0x445466
push 0x8000
jmp 0x445468
xor eax, eax
cmp eax, ebp
jg 0x445432
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x445437
push 0
push esi
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push esi
mov edi, eax
call dword [0x5a8004]
add esp, 4
cmp byte [esp + 0x13], 0
jne 0x445490
push dword [esp + 0x1c]
call dword [0x5a8004]
add esp, 4
test edi, edi
jne 0x4454d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x4454b9
push dword [esp + 0x20]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.0042ff10
add esp, 0xc
lea eax, [edi + 0x3a]
jmp 0x445bf6
push eax
push dword [esp + 0x24]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_lx
push ebx
call fcn.0042ff10
add esp, 0x10
mov eax, 0x3a
jmp 0x445bf6
push 0
push 0
push 0
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x445642
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x24]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_lx
push ebx
call fcn.0042ff10
add esp, 0x10
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x445bf6
push dword [ebx + 0x3c0]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push ebx
call fcn.0042ff10
push esi
call fcn.004f67c5
add esp, 0x10
mov eax, ebp
jmp 0x445bf6
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
push ebp
or eax, 0x4000
push eax
push 0
push 0
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov edi, eax
push ebp
test edi, edi
jne 0x4455b0
call fcn.004423c0
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
test edi, edi
mov ecx, str._unknown_
cmovne ecx, edi
push ecx
push dword [esp + 0x38]
push str.schannel:_Failed_to_open_cert_store__lx__s__last_error_is_0x_lx
push ebx
call fcn.0042ff10
push ebp
call dword [0x5a8004]
add esp, 0x18
test edi, edi
je 0x445296
push edi
call fcn.004f67c5
add esp, 4
jmp 0x445296
call dword [0x5a8004]
add esp, 4
mov dword [esp + 0x50], 0x14
lea eax, [esp + 0x90]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
push 0
push 0
push eax
lea eax, [esp + 0x9c]
push eax
push 4
push 0x28
push dword [esp + 0x58]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x44560f
test esi, esi
je 0x4455fc
push esi
call fcn.004f67c5
add esp, 4
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x445bf6
push 0
lea eax, [esp + 0x54]
push eax
push 0x10000
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x18], eax
test esi, esi
je 0x44563e
push esi
call fcn.004f67c5
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x4455fc
mov esi, dword [esp + 0x38]
push 0x20
push 1
call dword [0x5a8010]
mov ebp, dword [esp + 0x50]
add esp, 8
mov dword [ebp], eax
test eax, eax
jne 0x445692
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.0042ff10
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x44567b
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test edi, edi
je 0x445688
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x1b
jmp 0x445bf6
mov dword [eax + 0x18], 1
mov eax, dword [ebp]
mov dword [eax + 0x14], edi
cmp dword [esi + 0x10], 0
jne 0x445a93
push 3
push 2
push 0x4563
push 0
push 0xa
call fcn.00464830
add esp, 0x14
test al, al
je 0x445a93
push 0x2c
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.004efc10
push 0x70
lea eax, [esp + 0xb8]
mov dword [esp + 0xa0], 0
xorps xmm0, xmm0
mov dword [esp + 0xb4], 0
push 0
push eax
movups xmmword [esp + 0xac], xmm0
call fcn.004efc10
mov edi, dword [esi + 0x14]
xor eax, eax
add esp, 0x18
mov word [esp + 0x38], ax
xor edx, edx
mov dword [esp + 0x3a], eax
mov word [esp + 0x3e], ax
mov word [esp + 0x30], ax
mov dword [esp + 0x32], eax
mov word [esp + 0x36], ax
test edi, edi
je 0x445a1e
mov dl, 1
mov dword [esp + 0x40], eax
mov byte [esp + 0x16], 1
mov byte [esp + 0x15], 1
mov byte [esp + 0x17], 1
mov byte [esp + 0x13], 1
mov byte [esp + 0x14], dl
cmp byte [edi], 0
je 0x445895
cmp eax, 5
jge 0x445895
push 0x3a
push edi
call fcn.004efd70
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x44577b
mov esi, ebp
sub esi, edi
jmp 0x445789
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x445780
sub esi, ecx
cmp byte [esp + 0x16], 0
je 0x4457b2
push esi
push edi
push str.TLS_AES_256_GCM_SHA384
call fcn.00444e90
add esp, 0xc
test al, al
je 0x4457b2
mov dl, byte [esp + 0x14]
xor ch, ch
mov byte [esp + 0x16], ch
jmp 0x445857
mov al, byte [esp + 0x15]
test al, al
je 0x4457e0
push esi
push edi
push str.TLS_AES_128_GCM_SHA256
call fcn.00444e90
add esp, 0xc
test al, al
je 0x4457e0
mov dl, byte [esp + 0x14]
xor dh, dh
mov ch, byte [esp + 0x16]
mov byte [esp + 0x15], dh
jmp 0x44585b
cmp byte [esp + 0x17], 0
je 0x445805
push esi
push edi
push str.TLS_CHACHA20_POLY1305_SHA256
call fcn.00444e90
add esp, 0xc
test al, al
je 0x445805
mov dl, byte [esp + 0x14]
mov byte [esp + 0x17], 0
jmp 0x445853
cmp byte [esp + 0x13], 0
je 0x445833
push esi
push edi
push str.TLS_AES_128_CCM_8_SHA256
call fcn.00444e90
add esp, 0xc
test al, al
je 0x445833
mov dl, byte [esp + 0x14]
xor cl, cl
mov ch, byte [esp + 0x16]
mov dh, byte [esp + 0x15]
mov byte [esp + 0x13], cl
jmp 0x44585f
cmp byte [esp + 0x14], 0
je 0x44587b
push esi
push edi
push str.TLS_AES_128_CCM_SHA256
call fcn.00444e90
add esp, 0xc
test al, al
je 0x44587b
xor dl, dl
mov byte [esp + 0x14], dl
mov ch, byte [esp + 0x16]
mov dh, byte [esp + 0x15]
mov cl, byte [esp + 0x13]
mov edi, ebp
test ebp, ebp
je 0x445868
lea edi, [ebp + 1]
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
test edi, edi
jne 0x445752
jmp 0x4458a1
push edi
push esi
push str.schannel:_Unknown_TLS_1.3_cipher:__.s
push ebx
call fcn.0042ff10
add esp, 0x10
mov eax, 0x3b
jmp 0x445bf6
mov dh, byte [esp + 0x15]
mov ch, byte [esp + 0x16]
mov cl, byte [esp + 0x13]
test ch, ch
je 0x4458cd
test dh, dh
je 0x4458cd
cmp byte [esp + 0x17], 0
je 0x4458cd
test cl, cl
je 0x4458d1
test dl, dl
je 0x4458cd
push str.schannel:_All_available_TLS_1.3_ciphers_were_disabled
push ebx
call fcn.0042ff10
mov eax, 0x3b
jmp 0x445bf3
test cl, cl
jne 0x4458d5
test dl, dl
je 0x445948
mov dword [esp + 0x38], 0x200020
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], str.ChainingModeCCM
mov dword [esp + 0xa8], 2
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb4], 1
mov dword [esp + 0xac], 0x80008
mov dword [esp + 0xb0], 0x554730
cmp cl, dl
je 0x445941
test cl, cl
je 0x445936
mov dword [esp + 0xbc], 0x80
mov edx, 1
jmp 0x44594a
mov dword [esp + 0xc0], 0x40
mov edx, 1
jmp 0x44594a
xor edx, edx
mov al, byte [esp + 0x15]
test ch, ch
jne 0x44595a
test al, al
je 0x4459e8
cmp ch, al
mov dword [esp + 0x30], 0x200020
mov dword [esp + 0x34], str.ChainingModeGCM
lea ecx, [edx*8]
je 0x4459ab
sub ecx, edx
mov eax, str.SHA384
shl ecx, 2
mov esi, str.SHA256
cmp byte [esp + 0x16], 0
cmove eax, esi
mov dword [esp + ecx + 0xa8], 3
mov dword [esp + ecx + 0xac], 0x40004
mov dword [esp + ecx + 0xb0], eax
jmp 0x4459d1
sub ecx, edx
shl ecx, 2
mov dword [esp + ecx + 0xa8], 2
mov dword [esp + ecx + 0xac], 0x80008
mov dword [esp + ecx + 0xb0], 0x554730
lea eax, [esp + 0x30]
mov dword [esp + ecx + 0xb4], 1
mov dword [esp + ecx + 0xb8], eax
inc edx
cmp byte [esp + 0x17], 0
mov ebp, dword [esp + 0x48]
je 0x445a1e
lea eax, [edx*8]
sub eax, edx
inc edx
mov dword [esp + eax*4 + 0xa8], 2
mov dword [esp + eax*4 + 0xac], 0x240024
mov dword [esp + eax*4 + 0xb0], str.CHACHA20_POLY1305
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xa8]
mov dword [esp + 0xa0], eax
or ecx, 0x400000
cmp dword [esp + 0x18], 0
lea eax, [esp + 0x90]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x4c]
not eax
mov dword [esp + 0x9c], edx
mov dword [esp + 0x7c], 1
mov dword [esp + 0x58], 5
mov dword [esp + 0x78], ecx
mov dword [esp + 0x98], eax
je 0x445a83
lea eax, [esp + 0x18]
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], eax
mov ecx, dword [ebp]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x5c]
jmp 0x445b57
mov esi, dword [esi + 0x10]
lea eax, [esp + 0x5c]
push 0x34
push 0
push eax
call fcn.004efc10
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x58], 4
mov dword [esp + 0x88], ecx
mov dword [esp + 0x78], eax
test esi, esi
je 0x445b28
test eax, 0x2000
je 0x445adb
push str.schannel:_WARNING:_This_version_of_Schannel_may_negotiate_a_less_secure_TLS_version_than_TLS_1.3_because_the_user_set_an_algorithm_cipher_list.
push ebx
call fcn.0042ffe0
add esp, 8
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x14], 0
je 0x445afa
push str.schannel:_This_version_of_Schannel_does_not_support_setting_an_algorithm_cipher_list_and_TLS_1.3_cipher_list_at_the_same_time
push ebx
call fcn.0042ff10
mov eax, 0x3b
jmp 0x445bf3
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.00446e50
mov esi, eax
add esp, 0xc
test esi, esi
je 0x445b35
push str.schannel:_Failed_setting_algorithm_cipher_list
push ebx
call fcn.0042ff10
mov eax, esi
jmp 0x445bf3
or ecx, 0x400000
mov dword [esp + 0x88], ecx
cmp dword [esp + 0x18], 0
je 0x445b4c
lea eax, [esp + 0x18]
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], eax
mov ecx, dword [ebp]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x5c]
push ecx
push 0
push 0
push eax
mov eax, dword [0x5a9df4]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x445b83
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x445bcd
push 0x100
lea eax, [esp + 0xac]
push eax
push esi
call fcn.00419a10
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.0042ff10
push dword [ebp]
call dword [0x5a8004]
xor eax, eax
mov dword [ebp], 0
add esp, 0x1c
cmp esi, 0x80090300
setne al
lea eax, [eax*8 + 0x1b]
jmp 0x445bf6
xor eax, eax
jmp 0x445bf6
push str.SSL_versions_not_supported
push ebx
call fcn.0042ff10
mov eax, 4
jmp 0x445bf3
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ebx
call fcn.0042ff10
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046ec22
add esp, 0x19c
ret