Function at 0x10053770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x10084044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
add eax, eax
mov dword [ebp - 0x1f0], 0
mov edi, edx
mov esi, ecx
push 0x38
push 0
mov eax, dword [edi + eax*8 + 0x198]
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x24c]
push eax
call fcn.10015420
add esp, 0xc
mov dword [ebp - 0x24c], 4
cmp byte [edi + 0x20d], 0
mov ebx, 0x1b0
mov dword [ebp - 0x1e8], 0x1c0
je 0x1005386c
mov eax, dword [ebp - 0x204]
mov edx, 8
mov ecx, 0x20
cmp byte [eax + 0x47], 0
cmovne ecx, edx
mov edx, dword [edi + 0xb4]
cmp edx, 2
jne 0x1005381e
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
cmovne eax, dword [ebp - 0x1e8]
cmp dword [eax + edi], edx
je 0x1005381e
mov al, byte [esi + 0x4b3]
jmp 0x10053824
mov al, byte [esi + 0x44b]
test al, al
je 0x10053830
or ecx, 0x1800
jmp 0x10053877
cmp edx, 2
jne 0x10053852
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
cmovne eax, dword [ebp - 0x1e8]
cmp dword [eax + edi], edx
je 0x10053852
mov al, byte [esi + 0x4b5]
jmp 0x10053858
mov al, byte [esi + 0x44d]
test al, al
je 0x10053864
or ecx, 0x1a00
jmp 0x10053877
or ecx, 0x200
jmp 0x10053877
mov edx, dword [edi + 0xb4]
mov ecx, 0x1808
cmp byte [edi + 0x20e], 0
mov dword [ebp - 0x21c], ecx
jne 0x1005388f
or ecx, 4
mov dword [ebp - 0x21c], ecx
cmp edx, 2
jne 0x100538b3
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
mov edx, 0x1c0
cmovne eax, edx
cmp dword [eax + edi], 2
je 0x100538b3
mov al, byte [esi + 0x4b7]
jmp 0x100538b9
mov al, byte [esi + 0x44f]
test al, al
jne 0x100538c9
and ecx, 0xffffffbf
or ecx, 0x10
mov dword [ebp - 0x21c], ecx
mov eax, dword [edi + 0x1d4]
cmp eax, 7
ja case.default.0x100538df
movzx eax, byte [eax + 0x1005406c]
jmp dword [eax*4 + 0x10054064]
push edi
mov edx, esi
lea ecx, [ebp - 0x24c]
call fcn.10055020
add esp, 4
test eax, eax
jne 0x10054053
mov ecx, dword [edi + 0xb4]
mov edx, 0x1c0
cmp ecx, 2
jne 0x10053928
cmp dword [edi + 0x14c], 0xffffffff
mov eax, ebx
cmovne eax, edx
cmp dword [eax + edi], ecx
je 0x10053928
mov eax, dword [edi + 0x22c]
jmp 0x1005392e
mov eax, dword [edi + 0x1ec]
test eax, eax
je 0x10053990
cmp ecx, 2
jne 0x1005394e
cmp dword [edi + 0x14c], 0xffffffff
cmovne ebx, edx
cmp dword [ebx + edi], ecx
je 0x1005394e
mov edx, dword [edi + 0x22c]
jmp 0x10053954
mov edx, dword [edi + 0x1ec]
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [ebp - 0x24c]
call fcn.10054200
mov edi, eax
add esp, 4
test edi, edi
je 0x10053990
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push esi
call fcn.10044190
mov eax, edi
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3fc]
test eax, eax
jne 0x100539a6
cmp dword [esi + 0x410], eax
je 0x10053f16
mov ecx, dword [esi + 0x410]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1e4], ebx
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x200], ebx
mov dword [ebp - 0x1ec], ebx
mov dword [ebp - 0x1f4], ebx
mov dword [ebp - 0x1f8], ecx
test ecx, ecx
je 0x100539f5
mov eax, dword [ecx]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1f4], eax
jmp 0x10053a5d
push eax
call fcn.1002899a
mov edi, eax
add esp, 4
test edi, edi
je case.0x10053fec.2146893056
lea eax, [ebp - 0x1fc]
mov ecx, edi
push eax
lea eax, [ebp - 0x1e4]
push eax
lea edx, [ebp - 0x1e8]
call fcn.10054090
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10053dce
mov ecx, dword [esi + 0x3fc]
cmp byte [ecx], 0
je 0x10053d9e
mov edx, 0x10086ab4
call fcn.1004fe70
mov dword [ebp - 0x200], eax
test eax, eax
je 0x10053d9e
mov ebx, dword [ebp - 0x1e4]
mov ecx, dword [esi + 0x434]
test ecx, ecx
je 0x10053a9c
mov edx, 0x10086a74
call fcn.1004fb80
test eax, eax
jne 0x10053a9c
cmp dword [ebp - 0x1f8], eax
mov eax, 0x10086a64
jne 0x10053a88
mov eax, dword [esi + 0x3fc]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push esi
call fcn.10044190
add esp, 0xc
jmp 0x10053e1d
cmp dword [ebp - 0x200], 0
mov eax, dword [ebp - 0x1f8]
jne 0x10053ab3
test eax, eax
je 0x10053dd4
xor ebx, ebx
test eax, eax
je 0x10053ac5
mov dword [ebp - 0x1e4], 0x10086a18
jmp 0x10053ad1
mov eax, dword [esi + 0x3fc]
mov dword [ebp - 0x1e4], eax
test edi, edi
je 0x10053ade
push edi
call fcn.10018a17
add esp, 4
mov edi, dword [ebp - 0x200]
test edi, edi
je 0x10053b6f
xor eax, eax
push 2
push eax
push edi
mov dword [ebp - 0x1e8], eax
call fcn.1001df21
add esp, 0xc
test eax, eax
sete cl
mov byte [ebp - 0x1dd], cl
test eax, eax
jne 0x10053c14
push edi
call fcn.1001e5b1
add esp, 4
mov dword [ebp - 0x1e8], eax
test eax, eax
jns 0x10053c18
mov byte [ebp - 0x1dd], bl
mov eax, dword [ebp - 0x1ec]
mov edx, dword [ebp - 0x1f4]
test eax, eax
je 0x10053c6f
push edi
push 1
push edx
push eax
call fcn.1001da2f
add esp, 0x10
cmp eax, 1
jne 0x10053c6f
push edi
call fcn.1001dbe1
add esp, 4
cmp byte [ebp - 0x1dd], bl
je 0x10053c78
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x214], eax
mov eax, dword [esi + 0x444]
test eax, eax
je 0x10053b9f
mov ebx, eax
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10053b96
sub ebx, ecx
lea eax, [ebx*2 + 2]
push eax
call dword [0x100849b0]
mov edi, eax
add esp, 4
mov dword [ebp - 0x1fc], edi
test edi, edi
je 0x10053cc6
test ebx, ebx
je 0x10053cb1
lea ecx, [ebx + 1]
push ecx
push edi
push ebx
push dword [esi + 0x444]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x10053cb3
xor eax, eax
mov word [edi], ax
push 0
push edi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push dword [ebp - 0x1fc]
mov edi, eax
call dword [0x100849b8]
add esp, 4
jmp 0x10053cc8
xor eax, eax
jmp 0x10053c1e
mov cl, byte [ebp - 0x1dd]
mov edx, eax
mov dword [ebp - 0x1f4], edx
test cl, cl
je 0x10053c64
push 0
push 0
push edi
call fcn.1001df21
add esp, 0xc
test eax, eax
sete byte [ebp - 0x1dd]
test eax, eax
jne 0x10053b30
mov eax, dword [ebp - 0x1e8]
inc eax
push eax
call dword [0x100849b0]
add esp, 4
mov dword [ebp - 0x1ec], eax
jmp 0x10053b36
mov eax, dword [ebp - 0x1ec]
jmp 0x10053b3c
push edi
call fcn.1001dbe1
add esp, 4
push dword [esi + 0x3fc]
push str.schannel:_Failed_to_read_cert_file__s
push esi
call fcn.10044190
add esp, 0xc
push dword [ebp - 0x1ec]
call dword [0x100849b8]
add esp, 4
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp eax, ebx
jg 0x10053be9
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x10053bee
xor edi, edi
cmp dword [ebp - 0x1f8], 0
jne 0x10053ce0
push dword [ebp - 0x1ec]
call dword [0x100849b8]
add esp, 4
test edi, edi
jne 0x10053d42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x10053d17
push dword [ebp - 0x1e4]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push esi
call fcn.10044190
add esp, 0xc
lea eax, [edi + 0x3a]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
push eax
push dword [ebp - 0x1e4]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push esi
call fcn.10044190
add esp, 0x10
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0x1f0], eax
test eax, eax
jne 0x10053ef7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1e4]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push esi
call fcn.10044190
add esp, 0x10
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
push dword [esi + 0x3fc]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push esi
call fcn.10044190
add esp, 0xc
push edi
call fcn.10018a17
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1e4]
mov eax, dword [ebp - 0x1e8]
push ebx
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x1e4], eax
test eax, eax
jne 0x10053e40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push dword [ebp - 0x1e8]
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push esi
call fcn.10044190
add esp, 0x14
push ebx
call dword [0x100849b8]
add esp, 4
test edi, edi
je 0x10053e2a
push edi
call fcn.10018a17
add esp, 4
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x100849b8]
add esp, 4
mov dword [ebp - 0x20c], 0x14
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x20c]
push 0
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
push 4
push 0x28
push dword [ebp - 0x1fc]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10053eb2
test edi, edi
je 0x10053e8d
push edi
call fcn.10018a17
add esp, 4
mov ebx, dword [ebp - 0x1e4]
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x20c]
push 0
push eax
push 0x10000
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0x1f0], eax
test edi, edi
je 0x10053eed
push edi
call fcn.10018a17
mov eax, dword [ebp - 0x1f0]
add esp, 4
test eax, eax
je 0x10053e93
mov edi, dword [ebp - 0x1e4]
push 0
lea eax, [ebp - 0x1f0]
mov dword [ebp - 0x248], 1
push edi
mov dword [ebp - 0x244], eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
push 0x18
push 1
call dword [0x100849c0]
mov ebx, dword [ebp - 0x204]
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x10053f64
push str.schannel:_unable_to_allocate_memory
push esi
call fcn.10044190
mov eax, dword [ebp - 0x1f0]
add esp, 8
test eax, eax
je case.0x10053fec.2146893056
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
mov dword [eax + 0x14], 1
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [ebp - 0x24c]
push eax
mov eax, dword [0x1008b7b4]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov ecx, dword [ebp - 0x1f0]
mov edi, eax
test ecx, ecx
je 0x10053fa5
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test edi, edi
je 0x10054009
push ecx
lea edx, [ebp - 0x11c]
mov ecx, edi
call fcn.10061250
add esp, 4
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push esi
call fcn.10044190
add esp, 0xc
push dword [ebx]
call dword [0x100849b8]
add edi, 0x7ff6fd00
mov dword [ebx], 0
add esp, 4
cmp edi, 0xe
ja case.0x10053fec.2146893055
movzx eax, byte [edi + 0x10054080]
jmp dword [eax*4 + 0x10054074]
mov eax, 0x23
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
push str.SSL_versions_not_supported
push esi
call fcn.10044190
mov eax, 4
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push esi
call fcn.10044190
mov eax, 0x23
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013577
mov esp, ebp
pop ebp
ret