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

Disassembly:
sub esp, 0x1c0
mov eax, dword [0x4a4080]
xor eax, esp
mov dword [esp + 0x1bc], eax
push ebx
mov ebx, dword [esp + 0x1cc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1d4]
push edi
mov dword [esp + 0x1c], ebx
mov esi, dword [edi + 8]
call fcn.004457f0
mov ebp, eax
push ebx
push edi
mov dword [esp + 0x58], ebp
call fcn.004457d0
xor ebx, ebx
mov dword [esp + 0x28], 0
add esp, 0xc
mov dword [esp + 0x14], ebx
mov edx, eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x40], eax
cmp byte [ebp + 0x39], bl
je 0x45ed9f
mov cl, byte [eax + 0x48]
cmp byte [edx + 0x63], bl
je 0x45ed78
test cl, cl
mov eax, 0x1808
mov esi, 0x1820
cmove eax, esi
jmp 0x45eda4
cmp byte [edx + 0x65], bl
je 0x45ed8e
test cl, cl
mov eax, 0x1a08
mov esi, 0x1a20
cmove eax, esi
jmp 0x45eda4
test cl, cl
mov eax, 0x208
mov esi, 0x220
cmove eax, esi
jmp 0x45eda4
mov eax, 0x1808
mov cl, byte [edx + 0x67]
mov esi, eax
or esi, 4
mov edx, 0x495814
cmp byte [ebp + 0x3a], bl
cmovne esi, eax
mov eax, esi
or eax, 0x10
test cl, cl
cmove esi, eax
mov eax, 0x49584c
cmove eax, edx
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x18]
push eax
push esi
call fcn.0044b7f0
mov eax, dword [ebp]
add esp, 8
cmp eax, 7
ja case.default.0x45edee
movzx eax, byte [eax + 0x45fbf0]
jmp dword [eax*4 + 0x45fbe8]
push edi
call fcn.004457f0
add esp, 4
mov edi, dword [eax + 4]
mov esi, dword [eax]
test edi, edi
je 0x45ee0f
cmp edi, 0x10000
jne 0x45ee33
push 3
push 2
push 0x4f7c
push 0
push 0xa
call fcn.00476410
add esp, 0x14
mov edi, 0x60000
test al, al
mov ecx, 0x70000
cmovne edi, ecx
sar edi, 0x10
cmp esi, edi
jg 0x45ee93
add esi, 0xfffffffc
nop dword [eax]
cmp esi, 3
ja case.default.0x45ee45
jmp dword [esi*4 + 0x45fbf8]
or dword [esp + 0x14], 0x80
jmp case.default.0x45ee45
or dword [esp + 0x14], 0x200
jmp case.default.0x45ee45
or dword [esp + 0x14], 0x800
jmp case.default.0x45ee45
push 3
push 2
push 0x4f7c
push 0
push 0xa
call fcn.00476410
add esp, 0x14
test al, al
je 0x45eed3
or dword [esp + 0x14], 0x2000
inc esi
lea eax, [esi + 4]
cmp eax, edi
jle 0x45ee40
mov edi, dword [esp + 0x18]
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov edx, dword [edi + 0x3f8]
test edx, edx
jne 0x45eee2
cmp dword [edi + 0x40c], ebx
je 0x45f4ca
mov ecx, dword [edi + 0x40c]
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x30], eax
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
xor esi, esi
mov dword [esp + 0x2c], ecx
jmp 0x45ef0c
mov eax, dword [esp + 0x18]
push str.schannel:_TLS_1.3_not_supported_on_Windows_prior_to_11
push eax
jmp 0x45fbbf
mov ecx, dword [edi + 0x40c]
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x30], eax
xor ebx, ebx
mov dword [esp + 0x28], eax
xor esi, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x45ef26
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
jmp 0x45f0d8
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov esi, eax
add esp, 4
test esi, esi
je case.0x45fb72.2146893056
push 0x5c
push esi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x44], eax
test eax, eax
jne 0x45ef5a
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
jmp 0x45f0a4
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov edi, eax
sub edi, esi
push edi
push 0x49578c
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x45ef7e
mov ebp, 0x10000
jmp 0x45f024
push edi
push 0x495798
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x45ef98
mov ebp, 0x20000
jmp 0x45f024
push edi
push 0x4957a8
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x45efaf
mov ebp, 0x40000
jmp 0x45f024
push edi
push 0x4957b8
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x45efc6
mov ebp, 0x50000
jmp 0x45f024
push edi
push 0x4957c4
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x45efdd
mov ebp, 0x60000
jmp 0x45f024
push edi
push 0x4957cc
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x45eff4
mov ebp, 0x70000
jmp 0x45f024
push edi
push 0x4957e4
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x45f00b
mov ebp, 0x80000
jmp 0x45f024
push edi
push 0x4957fc
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x45f09c
mov ebp, 0x90000
mov ebx, dword [esp + 0x44]
inc ebx
push 0x5c
push ebx
call sub.VCRUNTIME140.dll_strchr
mov edi, eax
add esp, 8
test edi, edi
jne 0x45f044
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
jmp 0x45f0a4
lea eax, [edi + 1]
mov ecx, eax
mov dword [esp + 0x28], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f050
sub ecx, edx
cmp ecx, 0x28
je 0x45f068
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
jmp 0x45f0a4
push ebx
mov byte [edi], 0
call dword [0x4a4028]
mov byte [edi], 0x5c
add esp, 4
mov edi, eax
mov dword [esp + 0x30], eax
test edi, edi
jne 0x45f08f
mov ecx, dword [esp + 0x14]
lea edi, [eax + 0x1b]
mov dword [esp + 0x14], ecx
jmp 0x45f0a9
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
jmp 0x45f12e
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov edi, 0x3a
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x3f8]
cmp byte [eax], 0
je 0x45fb84
push 0x491bf8
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45fb84
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x430]
test eax, eax
je 0x45f116
push 0x495914
push eax
call fcn.00450680
add esp, 8
test eax, eax
jne 0x45f116
cmp dword [esp + 0x2c], eax
mov eax, 0x495918
jne 0x45f105
mov eax, dword [edi + 0x3f8]
push eax
push 0x495928
push edi
call fcn.0044b720
add esp, 0xc
jmp 0x45f16b
mov eax, dword [esp + 0x2c]
test ebx, ebx
jne 0x45f232
test eax, eax
jne 0x45f232
mov edi, dword [esp + 0x30]
push edi
mov eax, ebp
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov ebx, eax
test ebx, ebx
jne 0x45f187
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x1c]
push edi
push ebp
push 0x495a50
push eax
call fcn.0044b720
push edi
call dword [0x4a4020]
add esp, 0x18
test esi, esi
je 0x45f46e
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, 0x3a
jmp 0x45fbcc
push edi
call dword [0x4a4020]
add esp, 4
mov dword [esp + 0x54], 0x14
lea eax, [esp + 0x94]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push 0
push 0
push eax
lea eax, [esp + 0xa0]
push eax
push 4
push 0x28
push dword [esp + 0x40]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x45f1e8
test esi, esi
je 0x45f1d5
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x45fbcc
push 0
lea eax, [esp + 0x58]
push eax
push 0x10000
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x45f218
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x45f4c0
push eax
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x45fbcc
xor edi, edi
test eax, eax
je 0x45f23f
mov ebp, 0x495918
jmp 0x45f249
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 0x3f8]
test esi, esi
je 0x45f257
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test ebx, ebx
je 0x45f2d0
push 2
xor esi, esi
push esi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
sete cl
mov byte [esp + 0x11], cl
test eax, eax
jne 0x45f375
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
add esp, 4
test esi, esi
jns 0x45f371
mov byte [esp + 0x11], 0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
test esi, esi
je 0x45f3bd
push ebx
push 1
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x45f3bd
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp byte [esp + 0x11], 0
je 0x45f3c7
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], ebx
mov eax, dword [eax + 0x440]
test eax, eax
je 0x45f2fc
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x45f2f3
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [0x4a401c]
mov esi, eax
add esp, 4
test esi, esi
je 0x45f41d
test edi, edi
je 0x45f3f0
mov eax, dword [esp + 0x18]
lea ecx, [edi + 1]
push ecx
push esi
push edi
push dword [eax + 0x440]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x45f3f2
xor eax, eax
mov word [esi], ax
push 3
push 2
push 0
push 0
push 6
call fcn.00476410
add esp, 0x14
test al, al
lea eax, [esp + 0x44]
je 0x45f405
push 0x8000
jmp 0x45f407
mov cl, byte [esp + 0x11]
mov eax, esi
mov dword [esp + 0x24], eax
test cl, cl
je 0x45f3b4
push 0
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
sete byte [esp + 0x11]
test eax, eax
jne 0x45f294
lea eax, [esi + 1]
push eax
call dword [0x4a401c]
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
jmp 0x45f298
mov esi, dword [esp + 0x20]
jmp 0x45f29c
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x18]
push dword [eax + 0x3f8]
push 0x495964
push eax
call fcn.0044b720
push esi
call dword [0x4a4020]
add esp, 0x10
mov eax, 0x3a
jmp 0x45fbcc
xor eax, eax
cmp eax, edi
jg 0x45f344
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x45f349
push 0
push esi
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push esi
mov dword [esp + 0x3c], eax
call dword [0x4a4020]
add esp, 4
cmp dword [esp + 0x2c], 0
jne 0x45f42e
push ebx
call dword [0x4a4020]
add esp, 4
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x45f478
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x45f45b
push ebp
push 0x49598c
push dword [esp + 0x20]
call fcn.0044b720
add esp, 0xc
lea eax, [ebx + 0x3a]
jmp 0x45fbcc
push eax
push ebp
push 0x4959c8
push dword [esp + 0x24]
call fcn.0044b720
add esp, 0x10
mov eax, 0x3a
jmp 0x45fbcc
push 0
push 0
push 0
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x45f4c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push 0x495a08
push dword [esp + 0x24]
call fcn.0044b720
add esp, 0x10
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x45fbcc
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov edi, dword [esp + 0x18]
push 0x20
push 1
call dword [0x4a402c]
mov ecx, dword [esp + 0x48]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x45f515
push 0x495a90
push edi
call fcn.0044b720
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x45f4fe
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je case.0x45fb72.2146893056
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x1b
jmp 0x45fbcc
push 3
mov edi, ecx
mov dword [eax + 0x18], 1
push 2
push 0x4563
push 0
mov eax, dword [edi]
push 0xa
mov dword [eax + 0x14], ebx
call fcn.00476410
add esp, 0x14
test al, al
je 0x45f9eb
push 0x2c
lea eax, [esp + 0x60]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x70
xorps xmm0, xmm0
lea eax, [esp + 0xdc]
push 0
push eax
movups xmmword [esp + 0xac], xmm0
movq qword [esp + 0xbc], xmm0
call sub.VCRUNTIME140.dll_memset
mov esi, dword [esp + 0x64]
xorps xmm0, xmm0
add esp, 0x18
movlpd qword [esp + 0x38], xmm0
xor ebp, ebp
movlpd qword [esp + 0x30], xmm0
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x45f970
mov bh, 1
xor eax, eax
mov dword [esp + 0x28], eax
mov bl, bh
movups xmmword [esp + 0xac], xmm0
mov byte [esp + 0x12], bh
movups xmmword [esp + 0xbc], xmm0
mov byte [esp + 0x13], bh
mov byte [esp + 0x11], bh
nop dword [eax]
cmp byte [edi], 0
je 0x45f7e3
cmp eax, 5
jge 0x45f7e3
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x45f5e9
mov esi, ebp
sub esi, edi
jmp 0x45f5f9
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x45f5f0
sub esi, ecx
cmp esi, 0x1f
ja 0x45f7cb
push esi
lea eax, [esp + 0xb0]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [esp + esi + 0xac], 0
test bh, bh
je 0x45f660
lea ecx, [esp + 0xac]
mov eax, str.TLS_AES_256_GCM_SHA384
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45f650
test dl, dl
je 0x45f64c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45f650
add eax, 2
add ecx, 2
test dl, dl
jne 0x45f630
xor eax, eax
jmp 0x45f655
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45f660
xor bh, bh
jmp 0x45f78b
cmp byte [esp + 0x12], 0
je 0x45f6a7
lea ecx, [esp + 0xac]
mov eax, str.TLS_AES_128_GCM_SHA256
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45f693
test dl, dl
je 0x45f68f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45f693
add eax, 2
add ecx, 2
test dl, dl
jne 0x45f673
xor eax, eax
jmp 0x45f698
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45f6a7
xor ch, ch
mov byte [esp + 0x12], ch
jmp 0x45f78f
cmp byte [esp + 0x13], 0
je 0x45f6f8
lea ecx, [esp + 0xac]
mov eax, str.TLS_CHACHA20_POLY1305_SHA256
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45f6e0
test dl, dl
je 0x45f6dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45f6e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x45f6c0
xor eax, eax
jmp 0x45f6e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45f6f8
mov ch, byte [esp + 0x12]
xor dl, dl
mov byte [esp + 0x13], dl
jmp 0x45f793
cmp byte [esp + 0x11], 0
je 0x45f749
lea ecx, [esp + 0xac]
mov eax, str.TLS_AES_128_CCM_8_SHA256
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45f730
test dl, dl
je 0x45f72c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45f730
add eax, 2
add ecx, 2
test dl, dl
jne 0x45f710
xor eax, eax
jmp 0x45f735
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45f749
mov dl, byte [esp + 0x13]
xor cl, cl
mov ch, byte [esp + 0x12]
mov byte [esp + 0x11], cl
jmp 0x45f797
test bl, bl
je 0x45f7b3
lea ecx, [esp + 0xac]
mov eax, str.TLS_AES_128_CCM_SHA256
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45f780
test dl, dl
je 0x45f77c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45f780
add eax, 2
add ecx, 2
test dl, dl
jne 0x45f760
xor eax, eax
jmp 0x45f785
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45f7b3
xor bl, bl
mov ch, byte [esp + 0x12]
mov dl, byte [esp + 0x13]
mov cl, byte [esp + 0x11]
mov edi, ebp
test ebp, ebp
je 0x45f7a0
lea edi, [ebp + 1]
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
test edi, edi
jne 0x45f5c0
jmp 0x45f7ef
push str.Passed_in_an_unknown_TLS_1.3_cipher.
push dword [esp + 0x1c]
call fcn.0044b720
mov eax, 0x3b
jmp 0x45fbc9
push str.Cipher_name_too_long__not_checked.
push dword [esp + 0x1c]
call fcn.0044b720
mov eax, 0x3b
jmp 0x45fbc9
mov ch, byte [esp + 0x12]
mov dl, byte [esp + 0x13]
mov cl, byte [esp + 0x11]
test bh, bh
je 0x45f81b
test ch, ch
je 0x45f81b
test dl, dl
je 0x45f81b
test cl, cl
je 0x45f81f
test bl, bl
je 0x45f823
push str.All_available_TLS_1.3_ciphers_were_disabled.
push dword [esp + 0x1c]
call fcn.0044b720
mov eax, 0x3b
jmp 0x45fbc9
test cl, cl
jne 0x45f823
test bl, bl
je 0x45f896
mov dword [esp + 0x38], 0x200020
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], str.ChainingModeCCM
mov dword [esp + 0xcc], 2
mov dword [esp + 0xdc], eax
mov dword [esp + 0xd8], 1
mov dword [esp + 0xd0], 0x80008
mov dword [esp + 0xd4], 0x495bd4
cmp cl, bl
je 0x45f88f
test cl, cl
je 0x45f884
mov dword [esp + 0xe0], 0x80
mov ebp, 1
jmp 0x45f898
mov dword [esp + 0xe4], 0x40
mov ebp, 1
jmp 0x45f898
xor ebp, ebp
mov al, ch
test bh, bh
jne 0x45f8b8
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x12], al
mov byte [esp + 0x13], dl
mov dword [esp + 0x14], ecx
test al, al
je 0x45f941
mov ch, al
lea edx, [ebp*8]
mov dword [esp + 0x30], 0x200020
sub edx, ebp
mov dword [esp + 0x34], str.ChainingModeGCM
cmp bh, ch
je 0x45f8e6
test bh, bh
mov esi, str.SHA384
mov eax, str.SHA256
cmove esi, eax
jmp 0x45f8eb
mov esi, 0x495bd4
xor eax, eax
cmp bh, ch
sete al
lea eax, [eax*4 + 4]
movzx ecx, ax
xor eax, eax
cmp bh, byte [esp + 0x12]
setne al
add eax, 2
inc ebp
mov dword [esp + edx*4 + 0xcc], eax
lea eax, [esp + 0x30]
mov word [esp + edx*4 + 0xd0], cx
mov word [esp + edx*4 + 0xd2], cx
mov dword [esp + edx*4 + 0xd4], esi
mov dword [esp + edx*4 + 0xdc], eax
mov dword [esp + edx*4 + 0xd8], 1
mov dl, byte [esp + 0x13]
test dl, dl
je 0x45f970
lea eax, [ebp*8]
sub eax, ebp
inc ebp
mov dword [esp + eax*4 + 0xcc], 2
mov dword [esp + eax*4 + 0xd0], 0x240024
mov dword [esp + eax*4 + 0xd4], str.CHACHA20_POLY1305
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0xcc]
mov dword [esp + 0xa4], eax
or ecx, 0x400000
cmp dword [esp + 0x1c], 0
lea eax, [esp + 0x94]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x14]
not eax
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x80], 1
mov dword [esp + 0x5c], 5
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x9c], eax
je 0x45f9d8
lea eax, [esp + 0x1c]
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], eax
mov edi, dword [esp + 0x40]
mov ecx, dword [edi]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x60]
jmp 0x45fafd
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x5c]
push 0x38
push 0
push eax
mov esi, dword [esi + 0x18]
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x5c]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [esp + 0x5c], 4
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x7c], eax
test esi, esi
je 0x45facf
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
xor edi, edi
nop
cmp byte [esi], 0
je 0x45faa2
cmp edi, 0x2f
jge 0x45faa2
push 0
push 0
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x45fa84
push esi
call fcn.0045df20
add esp, 4
test eax, eax
jne 0x45fa84
push 0x11
push 0x495760
push esi
call ebp
add esp, 0xc
test eax, eax
je 0x45fa77
push 0x15
push 0x495774
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x45fab7
or dword [esp + 0x8c], 0x400000
jmp 0x45fa8c
mov dword [esp + edi*4 + 0xcc], eax
inc edi
push 0x3a
push esi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
je 0x45faa2
add esi, 1
jne 0x45fa30
lea eax, [esp + 0xcc]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x78], eax
jmp 0x45fadc
push str.Unable_to_set_ciphers_to_from_connection_ssl_config
push dword [esp + 0x1c]
call fcn.0044b720
mov eax, 0x3b
jmp 0x45fbc9
or ecx, 0x400000
mov dword [esp + 0x8c], ecx
cmp dword [esp + 0x1c], 0
je 0x45faf3
lea eax, [esp + 0x1c]
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], eax
mov ecx, dword [edi]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x60]
push ecx
push 0
push 0
push eax
mov eax, dword [0x4a4be8]
push 0
push 2
push 0x495c40
mov eax, dword [eax + 0xc]
push 0
call eax
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45fb29
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x45fb80
push 0x100
lea eax, [esp + 0xd0]
push eax
push esi
call fcn.00435750
push eax
push 0x495ca4
push dword [esp + 0x2c]
call fcn.0044b720
push dword [edi]
call dword [0x4a4020]
add esi, 0x7ff6fd00
mov dword [edi], 0
add esp, 0x1c
cmp esi, 0xe
ja case.0x45fb72.2146893055
movzx eax, byte [esi + 0x45fc14]
jmp dword [eax*4 + 0x45fc08]
mov eax, 0x23
jmp 0x45fbcc
xor eax, eax
jmp 0x45fbcc
mov eax, dword [esp + 0x18]
push dword [eax + 0x3f8]
push 0x4958d8
push eax
call fcn.0044b720
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
mov eax, edi
jmp 0x45fbcc
push 0x495884
push esi
call fcn.0044b720
mov eax, 4
jmp 0x45fbc9
push 0x4958a0
push esi
call fcn.0044b720
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00486b00
add esp, 0x1c0
ret