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

Disassembly:
sub esp, 0x180
mov eax, dword [0x649ffc]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
mov ebx, dword [esp + 0x190]
lea eax, [esp + 0x34]
push ebp
push esi
mov esi, dword [esp + 0x194]
push edi
mov edi, dword [esp + 0x194]
lea ebx, [ebx + 0x19]
push 0x38
shl ebx, 4
push 0
add ebx, esi
mov dword [esp + 0x20], 0
push eax
mov dword [esp + 0x40], ebx
call fcn.00586790
add esp, 0xc
mov dword [esp + 0x40], 4
cmp byte [esi + 0x210], 0
mov ebp, 0x1b0
je 0x478ae1
mov eax, dword [ebx + 8]
mov edx, 8
mov ecx, 0x20
lea ebx, [ebp + 0x10]
cmp byte [eax + 0x47], 0
cmovne ecx, edx
mov edx, dword [esi + 0xb8]
cmp edx, 2
jne 0x478a97
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, ebx
cmp dword [eax + esi], edx
je 0x478a97
mov al, byte [edi + 0x4d3]
jmp 0x478a9d
mov al, byte [edi + 0x467]
test al, al
je 0x478aa9
or ecx, 0x1800
jmp 0x478aec
cmp edx, 2
jne 0x478ac7
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, ebx
cmp dword [eax + esi], edx
je 0x478ac7
mov al, byte [edi + 0x4d5]
jmp 0x478acd
mov al, byte [edi + 0x469]
test al, al
je 0x478ad9
or ecx, 0x1a00
jmp 0x478aec
or ecx, 0x200
jmp 0x478aec
mov edx, dword [esi + 0xb8]
mov ecx, 0x1808
cmp byte [esi + 0x211], 0
mov dword [esp + 0x70], ecx
jne 0x478b00
or ecx, 4
mov dword [esp + 0x70], ecx
mov ebx, 0x1c0
cmp edx, 2
jne 0x478b23
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, ebx
cmp dword [eax + esi], edx
je 0x478b23
mov al, byte [edi + 0x4d7]
jmp 0x478b29
mov al, byte [edi + 0x46b]
test al, al
jne 0x478b3e
and ecx, 0xffffffbf
mov eax, str.schannel:_disabled_automatic_use_of_client_certificate
or ecx, 0x10
mov dword [esp + 0x70], ecx
jmp 0x478b43
mov eax, str.schannel:_enabled_automatic_use_of_client_certificate
push eax
push edi
call fcn.00462fb0
mov edx, dword [esi + 0x1d4]
add esp, 8
cmp edx, 7
ja case.default.0x478b63
movzx eax, byte [edx + 0x4793c8]
jmp dword [eax*4 + 0x4793c0]
mov ecx, dword [esi + 0xb8]
cmp ecx, 2
jne 0x478bad
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, ebx
cmp dword [eax + esi], ecx
je 0x478b8e
mov edx, dword [esi + 0x214]
jmp 0x478b93
cmp ecx, 2
jne 0x478bad
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, ebx
cmp dword [eax + esi], 2
je 0x478bad
mov ebx, dword [esi + 0x218]
jmp 0x478bb3
mov ebx, dword [esi + 0x1d8]
test ebx, ebx
je 0x478bbf
cmp ebx, 0x10000
jne 0x478bc4
mov ebx, 0x60000
sar ebx, 0x10
cmp edx, ebx
jg 0x478c06
mov ecx, dword [esp + 0x60]
add edx, 0xfffffffc
cmp edx, 3
ja case.default.0x478bd7
jmp dword [edx*4 + 0x4793d0]
or ecx, 0x80
jmp 0x478bf4
or ecx, 0x200
jmp 0x478bf4
or ecx, 0x800
mov dword [esp + 0x60], ecx
inc edx
lea eax, [edx + 4]
cmp eax, ebx
jle 0x478bd2
mov ecx, dword [esi + 0xb8]
mov ebx, 0x1c0
cmp ecx, 2
jne 0x478c41
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, ebx
cmp dword [eax + esi], ecx
je 0x478c41
mov eax, dword [esi + 0x234]
jmp 0x478c47
push str.schannel:_TLS_1.3_is_not_yet_supported
push edi
call fcn.00462ee0
add esp, 8
mov eax, 0x23
jmp 0x4793a7
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x478cfe
cmp ecx, 2
jne 0x478c6b
cmp dword [esi + 0x14c], 0xffffffff
cmovne ebp, ebx
cmp dword [esi + ebp], ecx
je 0x478c6b
mov esi, dword [esi + 0x234]
jmp 0x478c71
mov esi, dword [esi + 0x1f4]
mov ebp, dword [esp + 0x34]
xor ebx, ebx
mov ebp, dword [ebp + 8]
add ebp, 0x48
test esi, esi
je 0x478cf6
cmp byte [esi], 0
je 0x478cf6
cmp ebx, 0x2d
jge 0x478cf6
push 0
push 0
push esi
call fcn.0059a185
add esp, 0xc
test eax, eax
jne 0x478cdb
push esi
call fcn.00477dc0
add esp, 4
test eax, eax
jne 0x478cdb
push 0x11
push str.USE_STRONG_CRYPTO
push esi
call fcn.0059a9d0
add esp, 0xc
test eax, eax
je 0x478cd1
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push esi
call fcn.0059a9d0
add esp, 0xc
test eax, eax
jne 0x478d4a
or dword [esp + 0x70], 0x400000
jmp 0x478ce0
mov dword [ebp + ebx*4], eax
inc ebx
push 0x3a
push esi
call fcn.005874a0
mov esi, eax
add esp, 8
test esi, esi
je 0x478cf6
add esi, 1
jne 0x478c81
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov eax, dword [edi + 0x414]
test eax, eax
jne 0x478d14
cmp dword [edi + 0x42c], eax
je 0x4792ab
mov ecx, dword [edi + 0x42c]
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x10], ebp
xor esi, esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x478d5f
mov eax, dword [ecx]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
jmp 0x478f1c
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push edi
call fcn.00462ee0
mov eax, 0x3b
jmp 0x4793a4
push eax
call fcn.0059fabb
mov esi, eax
add esp, 4
test esi, esi
je 0x4792e7
push 0x5c
push esi
call fcn.005874a0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x478ebf
mov ebx, eax
sub ebx, esi
push ebx
push str.CurrentUser
push esi
call fcn.0059a9d0
add esp, 0xc
test eax, eax
jne 0x478daa
mov ebp, 0x10000
jmp 0x478e64
push ebx
push str.LocalMachine
push esi
call fcn.0059a9d0
add esp, 0xc
test eax, eax
jne 0x478dc7
mov ebp, 0x20000
jmp 0x478e64
push ebx
push str.CurrentService
push esi
call fcn.0059a9d0
add esp, 0xc
test eax, eax
jne 0x478de4
mov ebp, 0x40000
jmp 0x478e64
push ebx
push str.Services
push esi
call fcn.0059a9d0
add esp, 0xc
test eax, eax
jne 0x478dfe
mov ebp, 0x50000
jmp 0x478e64
push ebx
push str.Users
push esi
call fcn.0059a9d0
add esp, 0xc
test eax, eax
jne 0x478e18
mov ebp, 0x60000
jmp 0x478e64
push ebx
push str.CurrentUserGroupPolicy
push esi
call fcn.0059a9d0
add esp, 0xc
test eax, eax
jne 0x478e32
mov ebp, 0x70000
jmp 0x478e64
push ebx
push str.LocalMachineGroupPolicy
push esi
call fcn.0059a9d0
add esp, 0xc
test eax, eax
jne 0x478e4c
mov ebp, 0x80000
jmp 0x478e64
push ebx
push str.LocalMachineEnterprise
push esi
call fcn.0059a9d0
add esp, 0xc
test eax, eax
jne 0x478ebf
mov ebp, 0x90000
mov eax, dword [esp + 0x20]
inc eax
push 0x5c
push eax
mov dword [esp + 0x28], eax
call fcn.005874a0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x478ebf
lea eax, [ebx + 1]
mov ecx, eax
mov dword [esp + 0x2c], eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x478e90
sub ecx, edx
cmp ecx, 0x28
jne 0x478ebf
push dword [esp + 0x20]
mov byte [ebx], al
call dword [0x64900c]
mov edx, eax
mov byte [ebx], 0x5c
add esp, 4
mov dword [esp + 0x10], edx
test edx, edx
jne 0x478f08
lea ebx, [eax + 0x1b]
jmp 0x478ec4
mov ebx, 0x3a
mov eax, dword [edi + 0x414]
cmp byte [eax], 0
je 0x478ee7
push 0x5fcb08
push eax
call fcn.00476300
mov ecx, eax
add esp, 8
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x478f0a
push dword [edi + 0x414]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push edi
call fcn.00462ee0
push esi
call fcn.00595b6f
add esp, 0x10
mov eax, ebx
jmp 0x4793a7
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x4791a0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 0x450]
test eax, eax
je 0x478f5d
push 0x5c7c7c
push eax
call fcn.00467300
add esp, 8
test eax, eax
jne 0x478f5d
cmp dword [esp + 0x28], eax
mov eax, str._memory_blob_
jne 0x478f49
mov eax, dword [edi + 0x414]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push edi
call fcn.00462ee0
add esp, 0xc
jmp 0x4791e0
mov eax, dword [esp + 0x28]
test ebx, ebx
jne 0x478f6d
test eax, eax
je 0x4791a0
xor ebx, ebx
test eax, eax
je 0x478f7d
mov dword [esp + 0x10], str._memory_blob_
jmp 0x478f87
mov eax, dword [edi + 0x414]
mov dword [esp + 0x10], eax
test esi, esi
je 0x478f94
push esi
call fcn.00595b6f
add esp, 4
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x479069
push 2
push 0
push esi
call fcn.00597ec0
add esp, 0xc
test eax, eax
sete cl
mov byte [esp + 0x17], cl
test eax, eax
jne 0x478fcb
push esi
call fcn.00598432
mov cl, byte [esp + 0x1b]
add esp, 4
mov edx, eax
jmp 0x478fcd
xor edx, edx
mov ebp, dword [esp + 0x20]
xor eax, eax
test edx, edx
movzx ecx, cl
cmovns eax, ecx
cmovns ebp, edx
mov dword [esp + 0x1c], eax
test al, al
je 0x479013
push 0
push 0
push esi
call fcn.00597ec0
add esp, 0xc
test eax, eax
sete al
mov dword [esp + 0x1c], eax
test al, al
je 0x479013
lea eax, [ebp + 1]
push eax
call dword [section..data]
add esp, 4
mov dword [esp + 0x24], eax
jmp 0x479017
mov eax, dword [esp + 0x24]
test eax, eax
je 0x47902d
push esi
push 1
push ebp
push eax
call fcn.00598609
add esp, 0x10
cmp eax, 1
je 0x479031
mov byte [esp + 0x1c], bl
push esi
call fcn.0059740b
add esp, 4
cmp byte [esp + 0x1c], bl
jne 0x47906d
push dword [edi + 0x414]
push str.schannel:_Failed_to_read_cert_file__s
push edi
call fcn.00462ee0
mov eax, dword [esp + 0x30]
push eax
call dword [0x649004]
add esp, 0x10
mov eax, 0x3a
jmp 0x4793a7
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x460]
mov dword [esp + 0x2c], ebp
test eax, eax
je 0x479091
mov ebx, eax
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x479088
sub ebx, ecx
lea eax, [ebx*2 + 2]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x4790f8
test ebx, ebx
je 0x4790ea
lea ecx, [ebx + 1]
push ecx
push esi
push ebx
push dword [edi + 0x460]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x4790ec
xor eax, eax
mov word [esi], ax
push 0
push esi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push esi
mov ebx, eax
call dword [0x649004]
add esp, 4
jmp 0x4790fa
xor eax, eax
cmp eax, ebx
jg 0x4790c9
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x4790ce
xor ebx, ebx
cmp dword [esp + 0x28], 0
jne 0x47910e
push dword [esp + 0x24]
call dword [0x649004]
add esp, 4
test ebx, ebx
jne 0x479154
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x479137
push dword [esp + 0x10]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push edi
call fcn.00462ee0
add esp, 0xc
lea eax, [ebx + 0x3a]
jmp 0x4793a7
push eax
push dword [esp + 0x14]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push edi
call fcn.00462ee0
add esp, 0x10
mov eax, 0x3a
jmp 0x4793a7
push 0
push 0
push 0
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x479292
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x14]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push edi
call fcn.00462ee0
add esp, 0x10
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x4793a7
push dword [esp + 0x10]
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 0x4791f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x10]
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.00462ee0
push ebx
call dword [0x649004]
add esp, 0x18
test esi, esi
je 0x4791ed
push esi
call fcn.00595b6f
add esp, 4
mov eax, 0x3a
jmp 0x4793a7
push dword [esp + 0x10]
call dword [0x649004]
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 + 0x44]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x47925b
test esi, esi
je 0x47918d
push esi
call fcn.00595b6f
add esp, 4
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x4793a7
push 0
lea eax, [esp + 0x3c]
push eax
push 0x10000
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x18], eax
test esi, esi
je 0x47928a
push esi
call fcn.00595b6f
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x47918d
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x48], 1
push ebx
mov dword [esp + 0x50], eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
push 0x18
push 1
call dword [0x649010]
mov ebx, dword [esp + 0x3c]
add esp, 8
mov ecx, dword [ebx + 8]
mov dword [ecx], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax]
test eax, eax
jne 0x4792f1
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.00462ee0
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x4792e7
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
jmp 0x4793a7
mov dword [eax + 0x10], 1
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [0x64f124]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov ecx, dword [esp + 0x18]
mov esi, eax
test ecx, ecx
je 0x479331
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x47937e
push 0x100
lea eax, [esp + 0x90]
push eax
push esi
call fcn.00475350
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push edi
call fcn.00462ee0
mov eax, dword [ebx + 8]
push dword [eax]
call dword [0x649004]
mov eax, dword [ebx + 8]
add esp, 0x1c
mov dword [eax], 0
cmp esi, 0x80090300
je 0x4792e7
mov eax, 0x23
jmp 0x4793a7
xor eax, eax
jmp 0x4793a7
push str.SSL_versions_not_supported
push edi
call fcn.00462ee0
mov eax, 4
jmp 0x4793a4
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push edi
call fcn.00462ee0
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0056e987
add esp, 0x180
ret