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

Disassembly:
sub esp, 0x25c
mov eax, dword [0x4f8f48]
xor eax, esp
mov dword [esp + 0x258], eax
mov eax, dword [esp + 0x268]
push ebx
mov ebx, dword [esp + 0x268]
push ebp
push esi
lea esi, [eax + 0x19]
mov dword [esp + 0x44], eax
shl esi, 4
mov ebp, 0x1b0
add esi, ebx
mov dword [esp + 0x48], 0xffffffff
cmp dword [ebx + 0xb8], 2
push edi
mov edi, dword [esp + 0x270]
lea ecx, [ebp + 0x10]
mov dword [esp + 0x34], esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x40], 0
jne 0x473cf0
cmp dword [ebx + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, ecx
cmp dword [eax + ebx], 2
je 0x473cf0
mov eax, dword [ebx + 0xac]
jmp 0x473cf3
mov eax, dword [ebx + 0x64]
push 1
push 2
push 1
push 5
mov dword [esp + 0x54], eax
call fcn.0048b1e0
add esp, 0x10
test al, al
je 0x473d19
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.0045f390
add esp, 8
cmp byte [ebx + 0x25c], 0
je 0x473d55
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 0x473d55
push 3
push 2
push 3
push 6
call fcn.0048b1e0
add esp, 0x10
test al, al
je 0x473d55
mov cl, 1
jmp 0x473d57
xor cl, cl
mov eax, dword [esi + 8]
mov byte [eax + 0x46], cl
cmp dword [ebx + 0xb8], 2
jne 0x473d85
cmp dword [ebx + 0x14c], 0xffffffff
mov eax, ebp
mov ecx, 0x1c0
cmovne eax, ecx
cmp dword [eax + ebx], 2
je 0x473d85
mov eax, dword [ebx + 0x214]
jmp 0x473d8b
mov eax, dword [ebx + 0x1e0]
test eax, eax
je 0x473dc4
push 3
push 2
push 1
push 6
call fcn.0048b1e0
add esp, 0x10
test al, al
je 0x473dac
mov eax, dword [esi + 8]
mov byte [eax + 0x47], 1
jmp 0x473dcb
push str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
push edi
call fcn.0045f2d0
add esp, 8
mov eax, 0x4d
jmp 0x474b47
mov eax, dword [esi + 8]
mov byte [eax + 0x47], 0
mov eax, dword [esi + 8]
mov dword [eax], 0
cmp dword [ebx + 0xb8], 2
jne 0x473dfc
cmp dword [ebx + 0x14c], 0xffffffff
mov eax, ebp
mov ecx, 0x1c0
cmovne eax, ecx
cmp dword [eax + ebx], 2
je 0x473dfc
mov al, byte [edi + 0x48b]
jmp 0x473e02
mov al, byte [edi + 0x423]
test al, al
je 0x473e70
push edi
call fcn.0045a4d0
add esp, 4
cmp dword [ebx + 0xb8], 2
jne 0x473e34
cmp dword [ebx + 0x14c], 0xffffffff
mov eax, ebp
mov ecx, 0x1c0
mov byte [esp + 0x18], 1
cmovne eax, ecx
cmp dword [eax + ebx], 2
jne 0x473e39
mov byte [esp + 0x18], 0
push dword [esp + 0x48]
lea eax, [esp + 0x44]
push 0
push eax
push dword [esp + 0x24]
push ebx
push edi
call fcn.00459f60
add esp, 0x18
test al, al
jne 0x473e67
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
inc dword [eax + 0x10]
push edi
call fcn.0045a4f0
add esp, 4
mov esi, dword [esi + 8]
cmp dword [esi], 0
jne 0x47484b
push 0x38
lea eax, [esp + 0x80]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x7c], 4
cmp byte [ebx + 0x204], 0
je 0x473f29
cmp byte [esi + 0x47], 0
mov ecx, 0x20
mov edx, dword [ebx + 0xb8]
mov eax, 8
cmovne ecx, eax
mov esi, 0x1c0
cmp edx, 2
jne 0x473edf
cmp dword [ebx + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, esi
cmp dword [eax + ebx], edx
je 0x473edf
mov al, byte [edi + 0x4bb]
jmp 0x473ee5
mov al, byte [edi + 0x453]
test al, al
je 0x473ef1
or ecx, 0x1800
jmp 0x473f2e
cmp edx, 2
jne 0x473f0f
cmp dword [ebx + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, esi
cmp dword [eax + ebx], edx
je 0x473f0f
mov al, byte [edi + 0x4bd]
jmp 0x473f15
mov al, byte [edi + 0x455]
test al, al
je 0x473f21
or ecx, 0x1a00
jmp 0x473f2e
or ecx, 0x200
jmp 0x473f2e
mov ecx, 0x1808
cmp byte [ebx + 0x205], 0
mov dword [esp + 0xac], ecx
jne 0x473f48
or ecx, 4
mov dword [esp + 0xac], ecx
mov edx, dword [ebx + 0x1d4]
cmp edx, 7
ja case.default.0x473f57
jmp dword [edx*4 + 0x474b60]
mov ecx, dword [ebx + 0xb8]
cmp ecx, 2
jne 0x473fab
cmp dword [ebx + 0x14c], 0xffffffff
mov eax, ebp
mov esi, 0x1c0
cmovne eax, esi
cmp dword [eax + ebx], ecx
je 0x473f8d
mov edx, dword [ebx + 0x208]
mov esi, dword [ebx + 0x20c]
jmp 0x473fb1
cmp ecx, 2
jne 0x473fab
cmp dword [ebx + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, esi
cmp dword [eax + ebx], ecx
je 0x473fab
mov esi, dword [ebx + 0x20c]
jmp 0x473fb1
mov esi, dword [ebx + 0x1d8]
test esi, esi
je 0x473fbd
cmp esi, 0x10000
jne 0x473fc2
mov esi, 0x60000
sar esi, 0x10
cmp edx, esi
jg 0x474036
mov ecx, dword [esp + 0x9c]
add edx, 0xfffffffc
cmp edx, 3
ja case.default.0x473fd8
jmp dword [edx*4 + 0x474b80]
or ecx, 0x80
jmp 0x473ff5
or ecx, 0x200
jmp 0x473ff5
or ecx, 0x800
mov dword [esp + 0x9c], ecx
inc edx
lea eax, [edx + 4]
cmp eax, esi
jle 0x473fd3
jmp 0x474036
push str.schannel:_TLS_1.3_is_not_yet_supported
push edi
call fcn.0045f2d0
add esp, 8
mov eax, 0x23
jmp 0x474b47
mov dword [esp + 0x9c], 0x20
jmp 0x474036
mov dword [esp + 0x9c], 8
mov ecx, dword [ebx + 0xb8]
mov edx, 0x1c0
cmp ecx, 2
jne 0x47405f
cmp dword [ebx + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, edx
cmp dword [eax + ebx], ecx
je 0x47405f
mov eax, dword [ebx + 0x224]
jmp 0x474065
mov eax, dword [ebx + 0x1f0]
test eax, eax
je 0x4740ed
cmp ecx, 2
jne 0x474089
cmp dword [ebx + 0x14c], 0xffffffff
cmovne ebp, edx
cmp dword [ebx + ebp], ecx
je 0x474089
mov esi, dword [ebx + 0x224]
jmp 0x47408f
mov esi, dword [ebx + 0x1f0]
xor ebp, ebp
test esi, esi
je 0x4740db
cmp byte [esi], 0
je 0x4740db
cmp ebp, 0x2d
jge 0x4740db
push 0
push 0
push esi
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
add esp, 0xc
test eax, eax
jne 0x4740bd
push esi
call fcn.00472c50
add esp, 4
test eax, eax
je 0x474135
push 0x3a
mov dword [ebp*4 + 0x4f95b8], eax
inc ebp
push esi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
je 0x4740db
add esi, 1
jne 0x474095
mov dword [esp + 0x98], 0x4f95b8
mov dword [esp + 0x94], ebp
mov ecx, dword [edi + 0x400]
test ecx, ecx
jne 0x47414d
cmp dword [edi + 0x418], ecx
je 0x4744b6
mov eax, dword [edi + 0x418]
xor ebp, ebp
mov dword [esp + 0x1c], ecx
xor edx, edx
mov dword [esp + 0x2c], ecx
xor esi, esi
mov dword [esp + 0x38], ecx
mov ecx, dword [eax]
mov dword [esp + 0x30], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
jmp 0x474343
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push edi
call fcn.0045f2d0
add esp, 8
mov eax, 0x3b
jmp 0x474b47
mov eax, dword [edi + 0x418]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0x1c], 0
xor esi, esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], eax
test eax, eax
je 0x474197
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
jmp 0x474343
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov esi, eax
add esp, 4
test esi, esi
je 0x4749b6
push 0x5c
push esi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x474310
mov ebp, eax
sub ebp, esi
push ebp
push str.CurrentUser
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x4741e5
mov dword [esp + 0x1c], 0x10000
jmp 0x4742b4
push ebp
push str.LocalMachine
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x474205
mov dword [esp + 0x1c], 0x20000
jmp 0x4742b4
push ebp
push str.CurrentService
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x474225
mov dword [esp + 0x1c], 0x40000
jmp 0x4742b4
push ebp
push str.Services
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x474242
mov dword [esp + 0x1c], 0x50000
jmp 0x4742b4
push ebp
push str.Users
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x47425f
mov dword [esp + 0x1c], 0x60000
jmp 0x4742b4
push ebp
push str.CurrentUserGroupPolicy
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x47427c
mov dword [esp + 0x1c], 0x70000
jmp 0x4742b4
push ebp
push str.LocalMachineGroupPolicy
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x474299
mov dword [esp + 0x1c], 0x80000
jmp 0x4742b4
push ebp
push str.LocalMachineEnterprise
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x474310
mov dword [esp + 0x1c], 0x90000
mov eax, dword [esp + 0x18]
inc eax
push 0x5c
push eax
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x474310
lea eax, [ebp + 1]
mov ecx, eax
mov dword [esp + 0x38], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4742d6
sub ecx, edx
cmp ecx, 0x28
jne 0x474310
mov byte [ebp], al
mov eax, dword [esp + 0x18]
inc eax
push eax
call dword [0x4d200c]
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [ebp], 0x5c
test eax, eax
jne 0x474399
mov dword [esp + 0x14], 0x1b
jmp 0x474318
mov dword [esp + 0x14], 0x3a
mov eax, dword [edi + 0x400]
cmp byte [eax], 0
je 0x474813
push 0x4c685c
push eax
call fcn.00471100
mov ebp, eax
add esp, 8
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x474813
mov eax, dword [edi + 0x43c]
test eax, eax
je 0x474381
push 0x4be028
push eax
call fcn.00462e00
add esp, 8
test eax, eax
jne 0x474381
cmp dword [esp + 0x30], eax
mov eax, str._memory_blob_
jne 0x474370
mov eax, dword [edi + 0x400]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push edi
call fcn.0045f2d0
add esp, 0xc
jmp 0x4743de
mov eax, dword [esp + 0x30]
test ebp, ebp
jne 0x474504
test eax, eax
jne 0x474504
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
push eax
mov eax, ebp
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov edx, eax
mov dword [esp + 0x14], edx
test edx, edx
jne 0x4743f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x2c]
push eax
push ebx
push ebp
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push edi
call fcn.0045f2d0
push ebx
call dword [0x4d2004]
add esp, 0x18
test esi, esi
je 0x474726
push esi
call fcn.004b6f04
add esp, 4
mov eax, 0x3a
jmp 0x474b47
push dword [esp + 0x2c]
call dword [0x4d2004]
add esp, 4
mov dword [esp + 0x74], 0x14
lea eax, [esp + 0xd4]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push 0
push 0
push eax
lea eax, [esp + 0xe0]
push eax
push 4
push 0x28
push dword [esp + 0x50]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x474460
test esi, esi
je 0x474449
push esi
call fcn.004b6f04
add esp, 4
mov ebp, dword [esp + 0x14]
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x474b47
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x74]
push 0
push eax
push 0x10000
push 0
push 0x10001
push ebp
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x24], eax
test esi, esi
je 0x474493
push esi
call fcn.004b6f04
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
je 0x47444d
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x84], 1
push ebp
mov dword [esp + 0x8c], eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
push 0x18
push 1
call dword [0x4d2010]
mov ebp, dword [esp + 0x3c]
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jne 0x47477c
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.0045f2d0
mov eax, dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x4749b6
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
jmp 0x474b47
xor ebp, ebp
test eax, eax
je 0x474514
mov dword [esp + 0x14], str._memory_blob_
jmp 0x47451e
mov eax, dword [edi + 0x400]
mov dword [esp + 0x14], eax
test esi, esi
je 0x47452b
push esi
call fcn.004b6f04
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4745aa
xor eax, eax
push 2
push eax
push esi
mov dword [esp + 0x24], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
test eax, eax
sete cl
mov byte [esp + 0x13], cl
test eax, eax
jne 0x474642
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jns 0x474646
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
test eax, eax
je 0x474691
push esi
push 1
push edx
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x474691
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
cmp byte [esp + 0x13], 0
je 0x47469a
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x44c]
test eax, eax
je 0x4745da
mov ebp, eax
lea ecx, [ebp + 1]
nop dword [eax]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x4745d0
sub ebp, ecx
lea eax, [ebp*2 + 2]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x4746d4
test ebp, ebp
je 0x4746bf
lea ecx, [ebp + 1]
push ecx
push esi
push ebp
push dword [edi + 0x44c]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x4746c1
xor eax, eax
mov word [esi], ax
push 0
push esi
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push esi
mov ebp, eax
call dword [0x4d2004]
add esp, 4
jmp 0x4746d6
xor eax, eax
jmp 0x47464a
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x28], edx
test cl, cl
je 0x474688
push 0
push 0
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
test eax, eax
sete byte [esp + 0x13]
test eax, eax
jne 0x474570
mov eax, dword [esp + 0x18]
inc eax
push eax
call dword [section..data]
add esp, 4
mov dword [esp + 0x20], eax
jmp 0x474574
mov eax, dword [esp + 0x20]
jmp 0x474578
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
push dword [edi + 0x400]
push str.schannel:_Failed_to_read_cert_file__s
push edi
call fcn.0045f2d0
push dword [esp + 0x2c]
call dword [0x4d2004]
mov eax, 0x3a
jmp 0x474b44
xor eax, eax
cmp eax, ebp
jg 0x47461e
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x474623
xor ebp, ebp
cmp dword [esp + 0x30], 0
jne 0x4746ea
push dword [esp + 0x20]
call dword [0x4d2004]
add esp, 4
test ebp, ebp
jne 0x474730
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x474713
push dword [esp + 0x14]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push edi
call fcn.0045f2d0
add esp, 0xc
lea eax, [ebp + 0x3a]
jmp 0x474b47
push eax
push dword [esp + 0x18]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push edi
call fcn.0045f2d0
add esp, 0x10
mov eax, 0x3a
jmp 0x474b47
push 0
push 0
push 0
push 0
push 0x10001
push ebp
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x474497
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x18]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push edi
call fcn.0045f2d0
add esp, 0x10
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x474b47
mov dword [eax + 0x10], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [esp + 0x8c]
push eax
mov eax, dword [0x4f9670]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov ecx, dword [esp + 0x24]
mov esi, eax
test ecx, ecx
je 0x4747bf
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x47484f
push 0x100
lea eax, [esp + 0x16c]
push eax
push esi
call fcn.004895b0
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push edi
call fcn.0045f2d0
mov eax, dword [ebp + 8]
push dword [eax]
call dword [0x4d2004]
mov eax, dword [ebp + 8]
add esp, 0x1c
mov dword [eax], 0
cmp esi, 0x80090300
je 0x4749b6
mov eax, 0x23
jmp 0x474b47
push dword [edi + 0x400]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push edi
call fcn.0045f2d0
push esi
call fcn.004b6f04
mov eax, dword [esp + 0x24]
jmp 0x474b44
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push edi
call fcn.0045f2d0
add esp, 8
mov eax, 0x23
jmp 0x474b47
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x44]
lea eax, [esp + 0xc0]
push eax
push esi
push 2
call fcn.00471320
add esp, 0xc
test eax, eax
jne 0x474881
lea eax, [esp + 0xc4]
push eax
push esi
push 0x17
call fcn.00471320
add esp, 0xc
test eax, eax
je 0x47488f
push str.schannel:_using_IP_address__SNI_is_not_supported_by_OS._n
push edi
call fcn.0045f390
add esp, 8
mov eax, dword [ebp + 8]
cmp byte [eax + 0x46], 0
je 0x47491c
push str.http_1.1
push str.schannel:_ALPN__offering__s_n
push edi
mov dword [esp + 0xf8], 2
mov byte [esp + 0xfe], 8
mov dword [esp + 0xff], 0x70747468
mov dword [esp + 0x103], 0x312e312f
call fcn.0045f390
push 9
call fcn.00461aa0
mov word [esp + 0x100], ax
add esp, 0x10
movzx eax, ax
add eax, 6
mov dword [esp + 0x50], 0x13
mov dword [esp + 0xe8], eax
lea eax, [esp + 0xe8]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x54], 0x12
jmp 0x47493c
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x6c], 1
push 0x10
mov dword [esp + 0x6c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xbc], 1
push 1
mov dword [eax + 0x38], 0x811c
call dword [0x4d2010]
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne 0x4749c0
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.0045f2d0
add esp, 8
mov eax, 0x1b
jmp 0x474b47
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4749b6
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 8]
mov ecx, dword [edx + 4]
lea eax, [ecx + 8]
push eax
lea eax, [edx + 0x3c]
push eax
lea eax, [esp + 0xbc]
push eax
push ecx
xor ecx, ecx
lea eax, [esp + 0x78]
cmp byte [edx + 0x46], cl
push 0
cmove eax, ecx
push eax
mov eax, dword [0x4f9670]
push ecx
push ecx
push dword [edx + 0x38]
mov eax, dword [eax + 0x18]
push ebp
push ecx
push dword [edx]
call eax
push ebp
mov esi, eax
call fcn.004b6f04
add esp, 4
cmp esi, 0x90312
je 0x474ac2
mov ebx, dword [esp + 0x34]
mov ecx, dword [ebx + 8]
push dword [ecx + 4]
call dword [0x4d2004]
mov eax, dword [ebx + 8]
add esp, 4
mov dword [eax + 4], 0
lea eax, [esp + 0x168]
push 0x100
push eax
cmp esi, 0x80090300
je 0x474a9f
cmp esi, 0x80090322
je 0x474a7c
push esi
call fcn.004895b0
push eax
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push edi
call fcn.0045f2d0
add esp, 0x18
mov eax, 0x23
jmp 0x474b47
push 0x80090322
call fcn.004895b0
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push edi
call fcn.0045f2d0
add esp, 0x18
mov eax, 0x3c
jmp 0x474b47
push 0x80090300
call fcn.004895b0
push eax
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push edi
call fcn.0045f2d0
add esp, 0x18
mov eax, 0x1b
jmp 0x474b47
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x60]
mov eax, dword [esp + 0x50]
push dword [esp + 0x6c]
push dword [ebx + eax*4 + 0x148]
push edi
call fcn.0045f8a0
mov ecx, dword [0x4f9670]
add esp, 0x14
mov esi, eax
push dword [esp + 0x64]
mov ecx, dword [ecx + 0x40]
call ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
test esi, esi
jne 0x474b32
cmp ecx, eax
jne 0x474b32
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 8]
mov dword [eax + 0x40], 0
mov eax, dword [ecx + 8]
mov byte [eax + 0x44], 0
mov eax, dword [ecx + 8]
mov byte [eax + 0x45], 0
mov eax, dword [ecx + 8]
mov byte [eax + 0x34], 0
xor eax, eax
mov dword [ecx + 4], 1
jmp 0x474b47
push ecx
push eax
push str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
push edi
call fcn.0045f2d0
mov eax, 0x23
add esp, 0x10
mov ecx, dword [esp + 0x268]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b50b5
add esp, 0x25c
ret