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

Disassembly:
sub esp, 0x23c
mov eax, dword [0x53b0f8]
xor eax, esp
mov dword [esp + 0x238], eax
mov eax, dword [esp + 0x248]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24c]
add eax, 0x1a
push edi
mov edi, dword [esp + 0x254]
add eax, eax
push 0x38
push 0
mov dword [esp + 0x24], 0
mov ebp, dword [edi + eax*8]
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x40], ebp
call fcn.004a2c70
add esp, 0xc
mov dword [esp + 0x40], 4
cmp byte [edi + 0x21d], 0
mov edx, 0x1c8
mov ebx, 0x1b8
mov dword [esp + 0x20], edx
je 0x47cee1
cmp byte [ebp + 0x47], 0
mov ecx, 0x20
mov edx, dword [edi + 0xb8]
mov eax, 8
cmovne ecx, eax
cmp edx, 2
jne 0x47ce8c
cmp dword [edi + 0x154], 0xffffffff
mov eax, ebx
cmovne eax, dword [esp + 0x20]
cmp dword [eax + edi], edx
je 0x47ce8c
mov al, byte [esi + 0x4db]
jmp 0x47ce92
mov al, byte [esi + 0x46b]
test al, al
je 0x47cea3
or ecx, 0x1800
mov edx, 0x1c8
jmp 0x47cee6
cmp edx, 2
mov edx, 0x1c8
jne 0x47cec7
cmp dword [edi + 0x154], 0xffffffff
mov eax, ebx
cmovne eax, edx
cmp dword [eax + edi], 2
je 0x47cec7
mov al, byte [esi + 0x4dd]
jmp 0x47cecd
mov al, byte [esi + 0x46d]
test al, al
je 0x47ced9
or ecx, 0x1a00
jmp 0x47cee6
or ecx, 0x200
jmp 0x47cee6
mov ecx, 0x1808
cmp byte [edi + 0x21e], 0
mov dword [esp + 0x70], ecx
jne 0x47cefa
or ecx, 4
mov dword [esp + 0x70], ecx
cmp dword [edi + 0xb8], 2
jne 0x47cf1d
cmp dword [edi + 0x154], 0xffffffff
mov eax, ebx
cmovne eax, edx
cmp dword [eax + edi], 2
je 0x47cf1d
mov al, byte [esi + 0x4df]
jmp 0x47cf23
mov al, byte [esi + 0x46f]
test al, al
jne 0x47cf38
and ecx, 0xffffffbf
or ecx, 0x10
mov dword [esp + 0x70], ecx
push str.schannel:_disabled_automatic_use_of_client_certificate
jmp 0x47cf3d
push str.schannel:_enabled_automatic_use_of_client_certificate
push esi
call fcn.00467490
mov eax, dword [edi + 0x1dc]
add esp, 8
cmp eax, 7
ja case.default.0x47cf5c
movzx eax, byte [eax + 0x47d590]
jmp dword [eax*4 + 0x47d588]
push edi
lea eax, [esp + 0x44]
push esi
push eax
call fcn.0047efd0
add esp, 0xc
test eax, eax
jne 0x47d56c
mov ecx, dword [edi + 0xb8]
mov edx, 0x1c8
cmp ecx, 2
jne 0x47cfa3
cmp dword [edi + 0x154], 0xffffffff
mov eax, ebx
cmovne eax, edx
cmp dword [eax + edi], ecx
je 0x47cfa3
mov eax, dword [edi + 0x244]
jmp 0x47cfa9
mov eax, dword [edi + 0x1fc]
test eax, eax
je 0x47cffa
cmp ecx, 2
jne 0x47cfc9
cmp dword [edi + 0x154], 0xffffffff
cmovne ebx, edx
cmp dword [ebx + edi], ecx
je 0x47cfc9
mov eax, dword [edi + 0x244]
jmp 0x47cfcf
mov eax, dword [edi + 0x1fc]
lea ecx, [esp + 0x78]
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0047ef20
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47cffa
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push esi
call fcn.004673c0
mov eax, edi
jmp 0x47d569
mov ecx, dword [esi + 0x414]
test ecx, ecx
jne 0x47d010
cmp dword [esi + 0x430], ecx
je 0x47d480
mov edx, dword [esi + 0x430]
xor eax, eax
xor edi, edi
mov dword [esp + 0x2c], 0
xor ebp, ebp
mov dword [esp + 0x14], edi
xor ebx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
test edx, edx
je 0x47d054
mov ecx, dword [edx]
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x24], ecx
jmp 0x47d0d7
push ecx
call fcn.00506be4
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47d4b1
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.0047caf0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x47d0cd
mov ecx, dword [esi + 0x414]
cmp byte [ecx], 0
je 0x47d0ac
push 0x512470
push ecx
call fcn.0046da50
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x47d0ac
mov edi, dword [esp + 0x14]
jmp 0x47d0db
push dword [esi + 0x414]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push esi
call fcn.004673c0
push ebx
call fcn.004af1be
add esp, 0x10
mov eax, edi
jmp 0x47d56c
mov edi, dword [esp + 0x14]
xor eax, eax
mov edx, dword [esp + 0x28]
test edx, edx
je 0x47d146
mov ecx, dword [esi + 0x454]
test ecx, ecx
je 0x47d132
push 0x51b43c
push ecx
call fcn.0046d000
add esp, 8
test eax, eax
jne 0x47d12e
mov eax, str._memory_blob_
cmp dword [esp + 0x28], ebp
jne 0x47d108
mov eax, dword [esi + 0x414]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push esi
call fcn.004673c0
add esp, 0xc
test ebx, ebx
je 0x47d124
push ebx
call fcn.004af1be
add esp, 4
mov eax, 0x3a
jmp 0x47d56c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
test eax, eax
jne 0x47d22f
test edx, edx
jne 0x47d22f
mov eax, dword [esp + 0x2c]
push edi
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 0x47d186
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push dword [esp + 0x34]
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push esi
call fcn.004673c0
push edi
call dword [0x53b128]
add esp, 0x18
jmp 0x47d117
push edi
call dword [0x53b128]
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 + 0x38]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x47d1e6
test ebx, ebx
je 0x47d1d3
push ebx
call fcn.004af1be
add esp, 4
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x47d56c
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 ebx, ebx
je 0x47d215
push ebx
call fcn.004af1be
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x47d463
push eax
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x47d56c
xor edi, edi
test edx, edx
je 0x47d23f
mov dword [esp + 0x14], str._memory_blob_
jmp 0x47d249
mov eax, dword [esi + 0x414]
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x47d256
push ebx
call fcn.004af1be
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47d334
xor ecx, ecx
push 2
push ecx
push eax
mov dword [esp + 0x2c], ecx
call fcn.004d3c52
add esp, 0xc
test eax, eax
sete bl
test bl, bl
je 0x47d2ee
push dword [esp + 0x18]
call fcn.004d447c
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jns 0x47d2f0
xor bl, bl
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
test eax, eax
je 0x47d2b4
push dword [esp + 0x18]
push 1
push ecx
push eax
call fcn.004d3746
add esp, 0x10
cmp eax, 1
je 0x47d2b6
xor bl, bl
push dword [esp + 0x18]
call fcn.004cbef9
add esp, 4
test bl, bl
jne 0x47d334
push dword [esi + 0x414]
push str.schannel:_Failed_to_read_cert_file__s
push esi
call fcn.004673c0
push dword [esp + 0x1c]
call dword [0x53b128]
add esp, 0x10
mov eax, 0x3a
jmp 0x47d56c
xor eax, eax
mov ecx, eax
mov dword [esp + 0x24], ecx
test bl, bl
je 0x47d32b
push 0
push 0
push dword [esp + 0x20]
call fcn.004d3c52
add esp, 0xc
test eax, eax
sete bl
test bl, bl
je 0x47d293
mov eax, dword [esp + 0x20]
inc eax
push eax
call dword [0x53b124]
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x47d297
mov eax, dword [esp + 0x10]
jmp 0x47d29b
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x464]
test eax, eax
je 0x47d35c
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x47d353
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [0x53b124]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47d3b3
test edi, edi
je 0x47d3f0
lea ecx, [edi + 1]
push ecx
push ebx
push edi
push dword [esi + 0x464]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x47d3f2
xor eax, eax
mov word [ebx], ax
push 0
push ebx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push ebx
mov ebp, eax
call dword [0x53b128]
add esp, 4
cmp dword [esp + 0x28], 0
jne 0x47d3c7
push dword [esp + 0x10]
call dword [0x53b128]
add esp, 4
test ebp, ebp
jne 0x47d41b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x47d3fe
push dword [esp + 0x14]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push esi
call fcn.004673c0
add esp, 0xc
lea eax, [ebp + 0x3a]
jmp 0x47d56c
xor eax, eax
cmp eax, edi
jg 0x47d394
xor ecx, ecx
mov word [ebx + eax*2], cx
jmp 0x47d399
push eax
push dword [esp + 0x18]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push esi
call fcn.004673c0
add esp, 0x10
mov eax, 0x3a
jmp 0x47d56c
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 0x47d463
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 esi
call fcn.004673c0
add esp, 0x10
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x47d56c
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]
mov ebp, dword [esp + 0x34]
push 0x18
push 1
call dword [0x53b134]
add esp, 8
mov dword [ebp], eax
test eax, eax
jne 0x47d4bb
push str.schannel:_unable_to_allocate_memory
push esi
call fcn.004673c0
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x47d4b1
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
jmp 0x47d56c
mov dword [eax + 0x14], 1
mov ecx, dword [ebp]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [0x53db78]
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 edi, eax
test ecx, ecx
je 0x47d4f9
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test edi, edi
je 0x47d543
push 0x100
lea eax, [esp + 0x14c]
push eax
push edi
call fcn.00451720
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push esi
call fcn.004673c0
push dword [ebp]
call dword [0x53b128]
xor eax, eax
mov dword [ebp], 0
add esp, 0x1c
cmp edi, 0x80090300
setne al
lea eax, [eax*8 + 0x1b]
jmp 0x47d56c
xor eax, eax
jmp 0x47d56c
push str.SSL_versions_not_supported
push esi
call fcn.004673c0
mov eax, 4
jmp 0x47d569
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push esi
call fcn.004673c0
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00434475
add esp, 0x23c
ret