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

Disassembly:
sub esp, 0x23c
mov eax, dword [0x57f0b4]
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.0051b820
mov edx, dword [esi + 0xb8]
add esp, 0xc
cmp byte [esi + 0x21d], 0
mov ebp, 0x1b8
mov dword [esp + 0x40], 4
je 0x4f3a8a
cmp byte [edi + 0x47], 0
mov ecx, 0x20
mov eax, 8
lea edi, [ebp + 0x10]
cmovne ecx, eax
cmp edx, 2
jne 0x4f3a40
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], edx
je 0x4f3a40
mov al, byte [ebx + 0x4db]
jmp 0x4f3a46
mov al, byte [ebx + 0x46b]
test al, al
je 0x4f3a52
or ecx, 0x1800
jmp 0x4f3a8f
cmp edx, 2
jne 0x4f3a70
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], edx
je 0x4f3a70
mov al, byte [ebx + 0x4dd]
jmp 0x4f3a76
mov al, byte [ebx + 0x46d]
test al, al
je 0x4f3a82
or ecx, 0x1a00
jmp 0x4f3a8f
or ecx, 0x200
jmp 0x4f3a8f
mov ecx, 0x1808
cmp byte [esi + 0x21e], 0
mov dword [esp + 0x70], ecx
jne 0x4f3aa3
or ecx, 4
mov dword [esp + 0x70], ecx
mov edi, 0x1c8
cmp edx, 2
jne 0x4f3ac6
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], edx
je 0x4f3ac6
mov al, byte [ebx + 0x4df]
jmp 0x4f3acc
mov al, byte [ebx + 0x46f]
test al, al
jne 0x4f3ae1
and ecx, 0xffffffbf
mov eax, str.schannel:_disabled_automatic_use_of_client_certificate
or ecx, 0x10
mov dword [esp + 0x70], ecx
jmp 0x4f3ae6
mov eax, str.schannel:_enabled_automatic_use_of_client_certificate
push eax
push ebx
call fcn.004de5c0
mov edx, dword [esi + 0x1dc]
add esp, 8
cmp edx, 7
ja case.default.0x4f3b06
movzx eax, byte [edx + 0x4f4374]
jmp dword [eax*4 + 0x4f436c]
mov ecx, dword [esi + 0xb8]
cmp ecx, 2
jne 0x4f3b50
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], ecx
je 0x4f3b31
mov edx, dword [esi + 0x224]
jmp 0x4f3b36
cmp ecx, 2
jne 0x4f3b50
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], 2
je 0x4f3b50
mov edi, dword [esi + 0x228]
jmp 0x4f3b56
mov edi, dword [esi + 0x1e0]
test edi, edi
je 0x4f3b62
cmp edi, 0x10000
jne 0x4f3b67
mov edi, 0x60000
sar edi, 0x10
cmp edx, edi
jg 0x4f3ba9
mov ecx, dword [esp + 0x60]
add edx, 0xfffffffc
cmp edx, 3
ja case.default.0x4f3b7a
jmp dword [edx*4 + 0x4f437c]
or ecx, 0x80
jmp 0x4f3b97
or ecx, 0x200
jmp 0x4f3b97
or ecx, 0x800
mov dword [esp + 0x60], ecx
inc edx
lea eax, [edx + 4]
cmp eax, edi
jle 0x4f3b75
mov ecx, dword [esi + 0xb8]
mov edi, 0x1c8
cmp ecx, 2
jne 0x4f3be4
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edi
cmp dword [eax + esi], ecx
je 0x4f3be4
mov eax, dword [esi + 0x244]
jmp 0x4f3bea
push str.schannel:_TLS_1.3_is_not_yet_supported
push ebx
call fcn.004de4f0
add esp, 8
mov eax, 0x23
jmp 0x4f4351
mov eax, dword [esi + 0x1fc]
test eax, eax
je 0x4f3ca1
cmp ecx, 2
jne 0x4f3c0e
cmp dword [esi + 0x154], 0xffffffff
cmovne ebp, edi
cmp dword [esi + ebp], ecx
je 0x4f3c0e
mov esi, dword [esi + 0x244]
jmp 0x4f3c14
mov esi, dword [esi + 0x1fc]
xor edi, edi
test esi, esi
je 0x4f3c95
nop word [eax + eax]
cmp byte [esi], 0
je 0x4f3c95
cmp edi, 0x2f
jge 0x4f3c95
push 0
push 0
push esi
call fcn.005223fb
add esp, 0xc
test eax, eax
jne 0x4f3c7a
push esi
call fcn.004f2bc0
add esp, 4
test eax, eax
jne 0x4f3c7a
push 0x11
push str.USE_STRONG_CRYPTO
push esi
call fcn.00528660
add esp, 0xc
test eax, eax
je 0x4f3c70
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push esi
call fcn.00528660
add esp, 0xc
test eax, eax
jne 0x4f3ced
or dword [esp + 0x70], 0x400000
jmp 0x4f3c7f
mov dword [esp + edi*4 + 0x78], eax
inc edi
push 0x3a
push esi
call fcn.0051a760
mov esi, eax
add esp, 8
test esi, esi
je 0x4f3c95
add esi, 1
jne 0x4f3c20
lea eax, [esp + 0x78]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x414]
test eax, eax
jne 0x4f3cb7
cmp dword [ebx + 0x430], eax
je 0x4f4266
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 0x4f3d02
mov eax, dword [ecx]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
jmp 0x4f3ecb
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push ebx
call fcn.004de4f0
mov eax, 0x3b
jmp 0x4f434e
push eax
call fcn.004f0f20
mov esi, eax
add esp, 4
test esi, esi
je 0x4f429a
push 0x5c
push esi
call fcn.0051c9ed
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x4f3e6e
mov edi, eax
sub edi, esi
sar edi, 1
push edi
push str.CurrentUser
push esi
call fcn.0052bd6b
add esp, 0xc
test eax, eax
jne 0x4f3d4f
mov ebp, 0x10000
jmp 0x4f3e09
push edi
push str.LocalMachine
push esi
call fcn.0052bd6b
add esp, 0xc
test eax, eax
jne 0x4f3d6c
mov ebp, 0x20000
jmp 0x4f3e09
push edi
push str.CurrentService
push esi
call fcn.0052bd6b
add esp, 0xc
test eax, eax
jne 0x4f3d89
mov ebp, 0x40000
jmp 0x4f3e09
push edi
push str.Services
push esi
call fcn.0052bd6b
add esp, 0xc
test eax, eax
jne 0x4f3da3
mov ebp, 0x50000
jmp 0x4f3e09
push edi
push str.Users
push esi
call fcn.0052bd6b
add esp, 0xc
test eax, eax
jne 0x4f3dbd
mov ebp, 0x60000
jmp 0x4f3e09
push edi
push str.CurrentUserGroupPolicy
push esi
call fcn.0052bd6b
add esp, 0xc
test eax, eax
jne 0x4f3dd7
mov ebp, 0x70000
jmp 0x4f3e09
push edi
push str.LocalMachineGroupPolicy
push esi
call fcn.0052bd6b
add esp, 0xc
test eax, eax
jne 0x4f3df1
mov ebp, 0x80000
jmp 0x4f3e09
push edi
push str.LocalMachineEnterprise
push esi
call fcn.0052bd6b
add esp, 0xc
test eax, eax
jne 0x4f3e6e
mov ebp, 0x90000
mov eax, dword [esp + 0x20]
add eax, 2
push 0x5c
push eax
mov dword [esp + 0x28], eax
call fcn.0051c9ed
mov edi, eax
add esp, 8
test edi, edi
je 0x4f3e6e
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 0x4f3e31
sub ecx, edx
sar ecx, 1
cmp ecx, 0x28
jne 0x4f3e6e
push dword [esp + 0x20]
xor eax, eax
mov word [edi], ax
call dword [0x57f074]
mov edx, eax
add esp, 4
mov dword [esp + 0x10], edx
mov eax, 0x5c
mov word [edi], ax
test edx, edx
jne 0x4f3eb7
lea edi, [edx + 0x1b]
jmp 0x4f3e73
mov edi, 0x3a
mov eax, dword [ebx + 0x414]
cmp byte [eax], 0
je 0x4f3e96
push 0x54a828
push eax
call fcn.004f1040
mov ecx, eax
add esp, 8
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x4f3eb9
push dword [ebx + 0x414]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push ebx
call fcn.004de4f0
push esi
call fcn.0052811e
add esp, 0x10
mov eax, edi
jmp 0x4f4351
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x4f4158
mov edi, dword [esp + 0x1c]
mov eax, dword [ebx + 0x454]
test eax, eax
je 0x4f3f0c
push 0x553e0c
push eax
call fcn.004e40b0
add esp, 8
test eax, eax
jne 0x4f3f0c
cmp dword [esp + 0x28], eax
mov eax, str._memory_blob_
jne 0x4f3ef8
mov eax, dword [ebx + 0x414]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebx
call fcn.004de4f0
add esp, 0xc
jmp 0x4f4198
mov eax, dword [esp + 0x28]
test edi, edi
jne 0x4f3f1c
test eax, eax
je 0x4f4158
xor edi, edi
test eax, eax
je 0x4f3f2c
mov dword [esp + 0x10], str._memory_blob_
jmp 0x4f3f36
mov eax, dword [ebx + 0x414]
mov dword [esp + 0x10], eax
test esi, esi
je 0x4f3f43
push esi
call fcn.0052811e
add esp, 4
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4f401a
push 2
push 0
push esi
call fcn.00529c3e
add esp, 0xc
test eax, eax
sete cl
mov byte [esp + 0x17], cl
test eax, eax
jne 0x4f3f7a
push esi
call fcn.00531098
mov cl, byte [esp + 0x1b]
add esp, 4
mov edx, eax
jmp 0x4f3f7c
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 0x4f3fc2
push 0
push 0
push esi
call fcn.00529c3e
add esp, 0xc
test eax, eax
sete al
mov dword [esp + 0x1c], eax
test al, al
je 0x4f3fc2
lea eax, [ebp + 1]
push eax
call dword [0x57f060]
add esp, 4
mov dword [esp + 0x24], eax
jmp 0x4f3fc6
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4f3fdc
push esi
push 1
push ebp
push eax
call fcn.0052986f
add esp, 0x10
cmp eax, 1
je 0x4f3fe1
mov byte [esp + 0x1c], 0
push esi
call fcn.00528d0a
add esp, 4
cmp byte [esp + 0x1c], 0
jne 0x4f401e
push dword [ebx + 0x414]
push str.schannel:_Failed_to_read_cert_file__s
push ebx
call fcn.004de4f0
mov eax, dword [esp + 0x30]
push eax
call dword [0x57f064]
add esp, 0x10
mov eax, 0x3a
jmp 0x4f4351
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 0x4f4049
mov edi, eax
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x4f4040
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [0x57f060]
mov esi, eax
add esp, 4
test esi, esi
je 0x4f40b0
test edi, edi
je 0x4f40a2
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 0x4f40a4
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 [0x57f064]
add esp, 4
jmp 0x4f40b2
xor eax, eax
cmp eax, edi
jg 0x4f4081
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x4f4086
xor edi, edi
cmp dword [esp + 0x28], 0
jne 0x4f40c6
push dword [esp + 0x24]
call dword [0x57f064]
add esp, 4
test edi, edi
jne 0x4f410c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x4f40ef
push dword [esp + 0x10]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.004de4f0
add esp, 0xc
lea eax, [edi + 0x3a]
jmp 0x4f4351
push eax
push dword [esp + 0x14]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push ebx
call fcn.004de4f0
add esp, 0x10
mov eax, 0x3a
jmp 0x4f4351
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 0x4f424d
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.004de4f0
add esp, 0x10
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x4f4351
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 0x4f41af
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.004de4f0
push edi
call dword [0x57f064]
add esp, 0x18
test esi, esi
je 0x4f41a5
push esi
call fcn.0052811e
add esp, 4
mov eax, 0x3a
jmp 0x4f4351
push dword [esp + 0x10]
call dword [0x57f064]
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 0x4f4216
test esi, esi
je 0x4f4145
push esi
call fcn.0052811e
add esp, 4
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x4f4351
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 0x4f4245
push esi
call fcn.0052811e
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x4f4145
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 [0x57f070]
mov edi, dword [esp + 0x3c]
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x4f42a4
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.004de4f0
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x4f429a
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
jmp 0x4f4351
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 [0x592ae0]
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 0x4f42e1
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x4f4328
push 0x100
lea eax, [esp + 0x14c]
push eax
push esi
call fcn.004ca6c0
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.004de4f0
push dword [edi]
call dword [0x57f064]
add esp, 0x1c
mov dword [edi], 0
cmp esi, 0x80090300
je 0x4f429a
mov eax, 0x23
jmp 0x4f4351
xor eax, eax
jmp 0x4f4351
push str.SSL_versions_not_supported
push ebx
call fcn.004de4f0
mov eax, 4
jmp 0x4f434e
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ebx
call fcn.004de4f0
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00518690
add esp, 0x23c
ret