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

Disassembly:
sub esp, 0x180
mov eax, dword [0x4a8040]
xor eax, esp
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x18c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x194]
add eax, eax
push edi
mov edi, dword [esp + 0x194]
push 0x38
mov ebx, dword [esi + eax*8 + 0x198]
lea eax, [esp + 0x44]
push 0
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], ebx
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esi + 0xb8]
add esp, 0xc
cmp byte [esi + 0x210], 0
mov ebp, 0x1b0
mov dword [esp + 0x40], 4
je 0x46a07b
cmp byte [ebx + 0x47], 0
mov ecx, 0x20
mov eax, 8
lea ebx, [ebp + 0x10]
cmovne ecx, eax
cmp edx, 2
jne 0x46a031
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, ebx
cmp dword [eax + esi], edx
je 0x46a031
mov al, byte [edi + 0x4db]
jmp 0x46a037
mov al, byte [edi + 0x46f]
test al, al
je 0x46a043
or ecx, 0x1800
jmp 0x46a080
cmp edx, 2
jne 0x46a061
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, ebx
cmp dword [eax + esi], edx
je 0x46a061
mov al, byte [edi + 0x4dd]
jmp 0x46a067
mov al, byte [edi + 0x471]
test al, al
je 0x46a073
or ecx, 0x1a00
jmp 0x46a080
or ecx, 0x200
jmp 0x46a080
mov ecx, 0x1808
cmp byte [esi + 0x211], 0
mov dword [esp + 0x70], ecx
jne 0x46a094
or ecx, 4
mov dword [esp + 0x70], ecx
mov ebx, 0x1c0
cmp edx, 2
jne 0x46a0b7
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, ebx
cmp dword [eax + esi], edx
je 0x46a0b7
mov al, byte [edi + 0x4df]
jmp 0x46a0bd
mov al, byte [edi + 0x473]
test al, al
jne 0x46a0d2
and ecx, 0xffffffbf
mov eax, str.schannel:_disabled_automatic_use_of_client_certificate
or ecx, 0x10
mov dword [esp + 0x70], ecx
jmp 0x46a0d7
mov eax, str.schannel:_enabled_automatic_use_of_client_certificate
push eax
push edi
call fcn.00454970
mov edx, dword [esi + 0x1d4]
add esp, 8
cmp edx, 7
ja case.default.0x46a0f7
movzx eax, byte [edx + 0x46a98c]
jmp dword [eax*4 + 0x46a984]
mov ecx, dword [esi + 0xb8]
cmp ecx, 2
jne 0x46a146
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, ebx
cmp dword [eax + esi], ecx
je 0x46a128
mov edx, dword [esi + 0x214]
mov ebx, dword [esi + 0x218]
jmp 0x46a14c
cmp ecx, 2
jne 0x46a146
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, ebx
cmp dword [eax + esi], ecx
je 0x46a146
mov ebx, dword [esi + 0x218]
jmp 0x46a14c
mov ebx, dword [esi + 0x1d8]
test ebx, ebx
je 0x46a158
cmp ebx, 0x10000
jne 0x46a15d
mov ebx, 0x60000
sar ebx, 0x10
cmp edx, ebx
jg 0x46a1a4
mov ecx, dword [esp + 0x60]
add edx, 0xfffffffc
nop dword [eax + eax]
cmp edx, 3
ja case.default.0x46a175
jmp dword [edx*4 + 0x46a994]
or ecx, 0x80
jmp 0x46a192
or ecx, 0x200
jmp 0x46a192
or ecx, 0x800
mov dword [esp + 0x60], ecx
inc edx
lea eax, [edx + 4]
cmp eax, ebx
jle 0x46a170
mov ecx, dword [esi + 0xb8]
mov ebx, 0x1c0
cmp ecx, 2
jne 0x46a1df
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, ebx
cmp dword [eax + esi], ecx
je 0x46a1df
mov eax, dword [esi + 0x234]
jmp 0x46a1e5
push str.schannel:_TLS_1.3_is_not_yet_supported
push edi
call fcn.004548a0
add esp, 8
mov eax, 0x23
jmp 0x46a968
mov eax, dword [esi + 0x1f4]
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x46a2a3
cmp ecx, 2
jne 0x46a214
cmp dword [esi + 0x14c], 0xffffffff
mov eax, 0x1b0
cmovne eax, ebx
cmp dword [eax + esi], ecx
je 0x46a214
mov esi, dword [esi + 0x234]
jmp 0x46a21a
mov esi, dword [esi + 0x1f4]
xor ebx, ebx
test esi, esi
je 0x46a294
cmp byte [esi], 0
je 0x46a294
cmp ebx, 0x2d
jge 0x46a294
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
test eax, eax
jne 0x46a275
push esi
call fcn.00469190
add esp, 4
test eax, eax
jne 0x46a275
push 0x11
push str.USE_STRONG_CRYPTO
push esi
call ebp
add esp, 0xc
test eax, eax
je 0x46a26b
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x46a2e3
or dword [esp + 0x70], 0x400000
jmp 0x46a27e
mov ecx, dword [esp + 0x2c]
mov dword [ecx + ebx*4 + 0x48], eax
inc ebx
push 0x3a
push esi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
je 0x46a294
add esi, 1
jne 0x46a220
mov eax, dword [esp + 0x2c]
add eax, 0x48
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
mov edx, dword [edi + 0x41c]
test edx, edx
jne 0x46a2f8
cmp dword [edi + 0x434], edx
je 0x46a852
mov eax, dword [edi + 0x434]
xor ebx, ebx
mov dword [esp + 0x28], eax
xor ebp, ebp
mov dword [esp + 0x24], ebx
xor esi, esi
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
jmp 0x46a4a9
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push edi
call fcn.004548a0
mov eax, 0x3b
jmp 0x46a965
mov eax, dword [edi + 0x434]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
test eax, eax
je 0x46a32e
mov ecx, dword [eax]
xor ebp, ebp
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
jmp 0x46a4a9
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.0x46a917.2146893056
push 0x5c
push esi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x46a47a
mov ebx, eax
sub ebx, esi
push ebx
push str.CurrentUser
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x46a377
mov ebx, 0x10000
jmp 0x46a419
push ebx
push str.LocalMachine
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x46a391
mov ebx, 0x20000
jmp 0x46a419
push ebx
push str.CurrentService
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x46a3a8
mov ebx, 0x40000
jmp 0x46a419
push ebx
push str.Services
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x46a3bf
mov ebx, 0x50000
jmp 0x46a419
push ebx
push str.Users
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x46a3d6
mov ebx, 0x60000
jmp 0x46a419
push ebx
push str.CurrentUserGroupPolicy
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x46a3ed
mov ebx, 0x70000
jmp 0x46a419
push ebx
push str.LocalMachineGroupPolicy
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x46a404
mov ebx, 0x80000
jmp 0x46a419
push ebx
push str.LocalMachineEnterprise
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x46a478
mov ebx, 0x90000
mov eax, dword [esp + 0x14]
inc eax
push 0x5c
push eax
mov dword [esp + 0x1c], eax
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x46a47a
lea eax, [ebp + 1]
mov ecx, eax
mov dword [esp + 0x30], eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46a440
sub ecx, edx
cmp ecx, 0x28
jne 0x46a47a
push dword [esp + 0x14]
mov byte [ebp], al
call dword [0x4a800c]
add esp, 4
mov dword [esp + 0x24], eax
mov byte [ebp], 0x5c
test eax, eax
jne 0x46a4ff
mov dword [esp + 0x14], 0x1b
jmp 0x46a482
xor ebx, ebx
mov dword [esp + 0x14], 0x3a
mov eax, dword [edi + 0x41c]
cmp byte [eax], 0
je 0x46a922
push 0x49ed08
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x46a922
mov eax, dword [edi + 0x458]
test eax, eax
je 0x46a4e7
push 0x49897c
push eax
call fcn.0045a530
add esp, 8
test eax, eax
jne 0x46a4e7
cmp dword [esp + 0x28], eax
mov eax, str._memory_blob_
jne 0x46a4d6
mov eax, dword [edi + 0x41c]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push edi
call fcn.004548a0
add esp, 0xc
jmp 0x46a53c
mov eax, dword [esp + 0x28]
test ebp, ebp
jne 0x46a604
test eax, eax
jne 0x46a604
mov eax, dword [esp + 0x24]
push eax
mov eax, ebx
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov ebp, eax
test ebp, ebp
jne 0x46a558
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [esp + 0x24]
push eax
push ebp
push ebx
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push edi
call fcn.004548a0
push ebp
call dword [0x4a8004]
add esp, 0x18
test esi, esi
je 0x46a7e7
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, 0x3a
jmp 0x46a968
push dword [esp + 0x24]
call dword [0x4a8004]
add esp, 4
mov dword [esp + 0x38], 0x14
lea eax, [esp + 0x78]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push 0
push 0
push eax
lea eax, [esp + 0x84]
push eax
push 4
push 0x28
push dword [esp + 0x48]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x46a5b9
test esi, esi
je 0x46a5f1
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x46a968
push 0
lea eax, [esp + 0x3c]
push eax
push 0x10000
push 0
push 0x10001
push ebp
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x46a5e9
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 0x46a839
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x46a968
xor ebx, ebx
test eax, eax
je 0x46a614
mov dword [esp + 0x14], str._memory_blob_
jmp 0x46a61e
mov eax, dword [edi + 0x41c]
mov dword [esp + 0x14], eax
test esi, esi
je 0x46a62c
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test ebp, ebp
je 0x46a706
push 2
xor esi, esi
push esi
push ebp
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 + 0x13], cl
test eax, eax
jne 0x46a699
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
add esp, 4
test esi, esi
jns 0x46a695
mov byte [esp + 0x13], bl
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
test esi, esi
je 0x46a6d7
push ebp
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 0x46a6d7
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp byte [esp + 0x13], bl
jne 0x46a70a
jmp 0x46a6e1
mov cl, byte [esp + 0x13]
mov eax, esi
mov dword [esp + 0x20], eax
test cl, cl
je 0x46a6d1
push 0
push 0
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
sete byte [esp + 0x13]
test eax, eax
jne 0x46a664
lea eax, [esi + 1]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
jmp 0x46a668
mov esi, dword [esp + 0x18]
jmp 0x46a66c
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push dword [edi + 0x41c]
push str.schannel:_Failed_to_read_cert_file__s
push edi
call fcn.004548a0
push esi
call dword [0x4a8004]
add esp, 0x10
mov eax, 0x3a
jmp 0x46a968
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x468]
mov dword [esp + 0x34], esi
test eax, eax
je 0x46a72e
mov ebx, eax
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x46a725
sub ebx, ecx
lea eax, [ebx*2 + 2]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x46a795
test ebx, ebx
je 0x46a787
lea ecx, [ebx + 1]
push ecx
push esi
push ebx
push dword [edi + 0x468]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x46a789
xor eax, eax
mov word [esi], ax
push 0
push esi
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push esi
mov ebp, eax
call dword [0x4a8004]
add esp, 4
jmp 0x46a797
xor eax, eax
cmp eax, ebx
jg 0x46a766
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x46a76b
xor ebp, ebp
cmp dword [esp + 0x28], 0
jne 0x46a7ab
push dword [esp + 0x18]
call dword [0x4a8004]
add esp, 4
test ebp, ebp
jne 0x46a7f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x46a7d4
push dword [esp + 0x14]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push edi
call fcn.004548a0
add esp, 0xc
lea eax, [ebp + 0x3a]
jmp 0x46a968
push eax
push dword [esp + 0x18]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push edi
call fcn.004548a0
add esp, 0x10
mov eax, 0x3a
jmp 0x46a968
push 0
push 0
push 0
push 0
push 0x10001
push ebp
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x46a839
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.004548a0
add esp, 0x10
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x46a968
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x48], 1
push ebp
mov dword [esp + 0x50], eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
push 0x18
push 1
call dword [0x4a8010]
mov ebx, dword [esp + 0x34]
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x46a890
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.004548a0
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je case.0x46a917.2146893056
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
jmp 0x46a968
mov dword [eax + 0x10], 1
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [0x591850]
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 0x46a8cd
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x46a91e
push 0x100
lea eax, [esp + 0x90]
push eax
push esi
call fcn.0043fcf0
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push edi
call fcn.004548a0
push dword [ebx]
call dword [0x4a8004]
add esi, 0x7ff6fd00
mov dword [ebx], 0
add esp, 0x1c
cmp esi, 0xe
ja case.0x46a917.2146893055
movzx eax, byte [esi + 0x46a9b0]
jmp dword [eax*4 + 0x46a9a4]
xor eax, eax
jmp 0x46a968
push dword [edi + 0x41c]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push edi
call fcn.004548a0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x24]
add esp, 0x10
jmp 0x46a968
push str.SSL_versions_not_supported
push edi
call fcn.004548a0
mov eax, 4
jmp 0x46a965
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push edi
call fcn.004548a0
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048f548
add esp, 0x180
ret