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

Disassembly:
sub esp, 0x23c
mov eax, dword [0x57906c]
xor eax, esp
mov dword [esp + 0x238], eax
mov eax, dword [esp + 0x248]
push ebx
mov ebx, dword [esp + 0x244]
add eax, 0x1a
push ebp
push esi
mov esi, dword [esp + 0x250]
add eax, eax
push edi
push 0x38
push 0
mov edi, dword [esi + eax*8]
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x40], edi
call fcn.00516f30
mov edx, dword [esi + 0xb8]
add esp, 0xc
cmp byte [esi + 0x21d], 0
mov ebp, 0x1b8
mov dword [esp + 0x40], 4
je 0x4f084a
cmp byte [edi + 0x47], 0
mov ecx, 0x20
mov eax, 8
lea edi, [ebp + 0x10]
cmovne ecx, eax
cmp edx, 2
jne 0x4f0800
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], edx
je 0x4f0800
mov al, byte [ebx + 0x4db]
jmp 0x4f0806
mov al, byte [ebx + 0x46b]
test al, al
je 0x4f0812
or ecx, 0x1800
jmp 0x4f084f
cmp edx, 2
jne 0x4f0830
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], edx
je 0x4f0830
mov al, byte [ebx + 0x4dd]
jmp 0x4f0836
mov al, byte [ebx + 0x46d]
test al, al
je 0x4f0842
or ecx, 0x1a00
jmp 0x4f084f
or ecx, 0x200
jmp 0x4f084f
mov ecx, 0x1808
cmp byte [esi + 0x21e], 0
mov dword [esp + 0x70], ecx
jne 0x4f0863
or ecx, 4
mov dword [esp + 0x70], ecx
mov edi, 0x1c8
cmp edx, 2
jne 0x4f0886
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], edx
je 0x4f0886
mov al, byte [ebx + 0x4df]
jmp 0x4f088c
mov al, byte [ebx + 0x46f]
test al, al
jne 0x4f08a1
and ecx, 0xffffffbf
mov eax, str.schannel:_disabled_automatic_use_of_client_certificate
or ecx, 0x10
mov dword [esp + 0x70], ecx
jmp 0x4f08a6
mov eax, str.schannel:_enabled_automatic_use_of_client_certificate
push eax
push ebx
call fcn.004db360
mov edx, dword [esi + 0x1dc]
add esp, 8
cmp edx, 7
ja case.default.0x4f08c6
movzx eax, byte [edx + 0x4f1134]
jmp dword [eax*4 + 0x4f112c]
mov ecx, dword [esi + 0xb8]
cmp ecx, 2
jne 0x4f0910
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], ecx
je 0x4f08f1
mov edx, dword [esi + 0x224]
jmp 0x4f08f6
cmp ecx, 2
jne 0x4f0910
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], 2
je 0x4f0910
mov edi, dword [esi + 0x228]
jmp 0x4f0916
mov edi, dword [esi + 0x1e0]
test edi, edi
je 0x4f0922
cmp edi, 0x10000
jne 0x4f0927
mov edi, 0x60000
sar edi, 0x10
cmp edx, edi
jg 0x4f0969
mov ecx, dword [esp + 0x60]
add edx, 0xfffffffc
cmp edx, 3
ja case.default.0x4f093a
jmp dword [edx*4 + 0x4f113c]
or ecx, 0x80
jmp 0x4f0957
or ecx, 0x200
jmp 0x4f0957
or ecx, 0x800
mov dword [esp + 0x60], ecx
inc edx
lea eax, [edx + 4]
cmp eax, edi
jle 0x4f0935
mov ecx, dword [esi + 0xb8]
mov edi, 0x1c8
cmp ecx, 2
jne 0x4f09a4
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], ecx
je 0x4f09a4
mov eax, dword [esi + 0x244]
jmp 0x4f09aa
push str.schannel:_TLS_1.3_is_not_yet_supported
push ebx
call fcn.004db290
add esp, 8
mov eax, 0x23
jmp 0x4f1111
mov eax, dword [esi + 0x1fc]
test eax, eax
je 0x4f0a61
cmp ecx, 2
jne 0x4f09ce
cmp dword [esi + 0x154], 0xffffffff
cmovne ebp, edi
cmp dword [esi + ebp], ecx
je 0x4f09ce
mov esi, dword [esi + 0x244]
jmp 0x4f09d4
mov esi, dword [esi + 0x1fc]
xor edi, edi
test esi, esi
je 0x4f0a55
nop word [eax + eax]
cmp byte [esi], 0
je 0x4f0a55
cmp edi, 0x2f
jge 0x4f0a55
push 0
push 0
push esi
call fcn.00523d4d
add esp, 0xc
test eax, eax
jne 0x4f0a3a
push esi
call fcn.004ef980
add esp, 4
test eax, eax
jne 0x4f0a3a
push 0x11
push str.USE_STRONG_CRYPTO
push esi
call fcn.005269a0
add esp, 0xc
test eax, eax
je 0x4f0a30
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push esi
call fcn.005269a0
add esp, 0xc
test eax, eax
jne 0x4f0aad
or dword [esp + 0x70], 0x400000
jmp 0x4f0a3f
mov dword [esp + edi*4 + 0x78], eax
inc edi
push 0x3a
push esi
call fcn.00515d30
mov esi, eax
add esp, 8
test esi, esi
je 0x4f0a55
add esi, 1
jne 0x4f09e0
lea eax, [esp + 0x78]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x414]
test eax, eax
jne 0x4f0a77
cmp dword [ebx + 0x430], eax
je 0x4f1026
mov ecx, dword [ebx + 0x430]
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x10], ebp
xor esi, esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x4f0ac2
mov eax, dword [ecx]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
jmp 0x4f0c8b
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push ebx
call fcn.004db290
mov eax, 0x3b
jmp 0x4f110e
push eax
call fcn.004edce0
mov esi, eax
add esp, 4
test esi, esi
je 0x4f105a
push 0x5c
push esi
call fcn.00518181
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x4f0c2e
mov edi, eax
sub edi, esi
sar edi, 1
push edi
push str.CurrentUser
push esi
call fcn.00526fe6
add esp, 0xc
test eax, eax
jne 0x4f0b0f
mov ebp, 0x10000
jmp 0x4f0bc9
push edi
push str.LocalMachine
push esi
call fcn.00526fe6
add esp, 0xc
test eax, eax
jne 0x4f0b2c
mov ebp, 0x20000
jmp 0x4f0bc9
push edi
push str.CurrentService
push esi
call fcn.00526fe6
add esp, 0xc
test eax, eax
jne 0x4f0b49
mov ebp, 0x40000
jmp 0x4f0bc9
push edi
push str.Services
push esi
call fcn.00526fe6
add esp, 0xc
test eax, eax
jne 0x4f0b63
mov ebp, 0x50000
jmp 0x4f0bc9
push edi
push str.Users
push esi
call fcn.00526fe6
add esp, 0xc
test eax, eax
jne 0x4f0b7d
mov ebp, 0x60000
jmp 0x4f0bc9
push edi
push str.CurrentUserGroupPolicy
push esi
call fcn.00526fe6
add esp, 0xc
test eax, eax
jne 0x4f0b97
mov ebp, 0x70000
jmp 0x4f0bc9
push edi
push str.LocalMachineGroupPolicy
push esi
call fcn.00526fe6
add esp, 0xc
test eax, eax
jne 0x4f0bb1
mov ebp, 0x80000
jmp 0x4f0bc9
push edi
push str.LocalMachineEnterprise
push esi
call fcn.00526fe6
add esp, 0xc
test eax, eax
jne 0x4f0c2e
mov ebp, 0x90000
mov eax, dword [esp + 0x20]
add eax, 2
push 0x5c
push eax
mov dword [esp + 0x28], eax
call fcn.00518181
mov edi, eax
add esp, 8
test edi, edi
je 0x4f0c2e
lea eax, [edi + 2]
mov ecx, eax
mov dword [esp + 0x2c], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f0bf1
sub ecx, edx
sar ecx, 1
cmp ecx, 0x28
jne 0x4f0c2e
push dword [esp + 0x20]
xor eax, eax
mov word [edi], ax
call dword [0x5790b4]
mov edx, eax
add esp, 4
mov dword [esp + 0x10], edx
mov eax, 0x5c
mov word [edi], ax
test edx, edx
jne 0x4f0c77
lea edi, [edx + 0x1b]
jmp 0x4f0c33
mov edi, 0x3a
mov eax, dword [ebx + 0x414]
cmp byte [eax], 0
je 0x4f0c56
push 0x5473b8
push eax
call fcn.004ede00
mov ecx, eax
add esp, 8
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x4f0c79
push dword [ebx + 0x414]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push ebx
call fcn.004db290
push esi
call fcn.0051f38c
add esp, 0x10
mov eax, edi
jmp 0x4f1111
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x4f0f18
mov edi, dword [esp + 0x1c]
mov eax, dword [ebx + 0x454]
test eax, eax
je 0x4f0ccc
push 0x54fe2c
push eax
call fcn.004e0e50
add esp, 8
test eax, eax
jne 0x4f0ccc
cmp dword [esp + 0x28], eax
mov eax, str._memory_blob_
jne 0x4f0cb8
mov eax, dword [ebx + 0x414]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebx
call fcn.004db290
add esp, 0xc
jmp 0x4f0f58
mov eax, dword [esp + 0x28]
test edi, edi
jne 0x4f0cdc
test eax, eax
je 0x4f0f18
xor edi, edi
test eax, eax
je 0x4f0cec
mov dword [esp + 0x10], str._memory_blob_
jmp 0x4f0cf6
mov eax, dword [ebx + 0x414]
mov dword [esp + 0x10], eax
test esi, esi
je 0x4f0d03
push esi
call fcn.0051f38c
add esp, 4
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4f0dda
push 2
push 0
push esi
call fcn.00524dcb
add esp, 0xc
test eax, eax
sete cl
mov byte [esp + 0x17], cl
test eax, eax
jne 0x4f0d3a
push esi
call fcn.0052ee68
mov cl, byte [esp + 0x1b]
add esp, 4
mov edx, eax
jmp 0x4f0d3c
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 0x4f0d82
push 0
push 0
push esi
call fcn.00524dcb
add esp, 0xc
test eax, eax
sete al
mov dword [esp + 0x1c], eax
test al, al
je 0x4f0d82
lea eax, [ebp + 1]
push eax
call dword [0x5790a0]
add esp, 4
mov dword [esp + 0x24], eax
jmp 0x4f0d86
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4f0d9c
push esi
push 1
push ebp
push eax
call fcn.005249fc
add esp, 0x10
cmp eax, 1
je 0x4f0da1
mov byte [esp + 0x1c], 0
push esi
call fcn.005231c3
add esp, 4
cmp byte [esp + 0x1c], 0
jne 0x4f0dde
push dword [ebx + 0x414]
push str.schannel:_Failed_to_read_cert_file__s
push ebx
call fcn.004db290
mov eax, dword [esp + 0x30]
push eax
call dword [0x5790a4]
add esp, 0x10
mov eax, 0x3a
jmp 0x4f1111
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x464]
mov dword [esp + 0x2c], ebp
test eax, eax
je 0x4f0e09
mov edi, eax
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x4f0e00
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [0x5790a0]
mov esi, eax
add esp, 4
test esi, esi
je 0x4f0e70
test edi, edi
je 0x4f0e62
lea ecx, [edi + 1]
push ecx
push esi
push edi
push dword [ebx + 0x464]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x4f0e64
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 edi, eax
call dword [0x5790a4]
add esp, 4
jmp 0x4f0e72
xor eax, eax
cmp eax, edi
jg 0x4f0e41
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x4f0e46
xor edi, edi
cmp dword [esp + 0x28], 0
jne 0x4f0e86
push dword [esp + 0x24]
call dword [0x5790a4]
add esp, 4
test edi, edi
jne 0x4f0ecc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x4f0eaf
push dword [esp + 0x10]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.004db290
add esp, 0xc
lea eax, [edi + 0x3a]
jmp 0x4f1111
push eax
push dword [esp + 0x14]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push ebx
call fcn.004db290
add esp, 0x10
mov eax, 0x3a
jmp 0x4f1111
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 0x4f100d
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 ebx
call fcn.004db290
add esp, 0x10
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x4f1111
push dword [esp + 0x10]
mov eax, ebp
or eax, 0x4000
push eax
push 0
push 0
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov edi, eax
test edi, edi
jne 0x4f0f6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x10]
push eax
push edi
push ebp
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push ebx
call fcn.004db290
push edi
call dword [0x5790a4]
add esp, 0x18
test esi, esi
je 0x4f0f65
push esi
call fcn.0051f38c
add esp, 4
mov eax, 0x3a
jmp 0x4f1111
push dword [esp + 0x10]
call dword [0x5790a4]
add esp, 4
mov dword [esp + 0x38], 0x14
lea eax, [esp + 0x134]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push 0
push 0
push eax
lea eax, [esp + 0x140]
push eax
push 4
push 0x28
push dword [esp + 0x44]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x4f0fd6
test esi, esi
je 0x4f0f05
push esi
call fcn.0051f38c
add esp, 4
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x4f1111
push 0
lea eax, [esp + 0x3c]
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 0x4f1005
push esi
call fcn.0051f38c
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x4f0f05
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x48], 1
push edi
mov dword [esp + 0x50], eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
push 0x18
push 1
call dword [0x5790b0]
mov edi, dword [esp + 0x3c]
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x4f1064
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.004db290
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x4f105a
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
jmp 0x4f1111
mov dword [eax + 0x14], 1
mov ecx, dword [edi]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [0x58ce40]
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 0x4f10a1
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x4f10e8
push 0x100
lea eax, [esp + 0x14c]
push eax
push esi
call fcn.004c7450
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.004db290
push dword [edi]
call dword [0x5790a4]
add esp, 0x1c
mov dword [edi], 0
cmp esi, 0x80090300
je 0x4f105a
mov eax, 0x23
jmp 0x4f1111
xor eax, eax
jmp 0x4f1111
push str.SSL_versions_not_supported
push ebx
call fcn.004db290
mov eax, 4
jmp 0x4f110e
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ebx
call fcn.004db290
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c61ad
add esp, 0x23c
ret