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

Disassembly:
sub esp, 0x180
mov eax, dword [0x100760c0]
xor eax, esp
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x18c]
push ebx
push esi
mov esi, dword [esp + 0x18c]
add eax, eax
push edi
mov edi, dword [esp + 0x194]
push 0x38
push 0
mov dword [esp + 0x24], 0
mov ebx, dword [edi + eax*8 + 0x198]
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x3c], ebx
call fcn.1003a450
add esp, 0xc
mov dword [esp + 0x3c], 4
cmp byte [edi + 0x210], 0
je 0x1002b774
cmp byte [ebx + 0x47], 0
mov ecx, 0x20
mov edx, dword [edi + 0xb8]
mov eax, 8
cmovne ecx, eax
cmp edx, 2
jne 0x1002b722
xor eax, eax
cmp dword [edi + 0x14c], 0xffffffff
setne al
add eax, 0x1b
add eax, eax
cmp dword [edi + eax*8], edx
je 0x1002b722
movzx eax, byte [esi + 0x4db]
jmp 0x1002b729
movzx eax, byte [esi + 0x46f]
test eax, eax
je 0x1002b735
or ecx, 0x1800
jmp 0x1002b779
cmp edx, 2
jne 0x1002b759
xor eax, eax
cmp dword [edi + 0x14c], 0xffffffff
setne al
add eax, 0x1b
add eax, eax
cmp dword [edi + eax*8], edx
je 0x1002b759
movzx eax, byte [esi + 0x4dd]
jmp 0x1002b760
movzx eax, byte [esi + 0x471]
test eax, eax
je 0x1002b76c
or ecx, 0x1a00
jmp 0x1002b779
or ecx, 0x200
jmp 0x1002b779
mov ecx, 0x1808
cmp byte [edi + 0x211], 0
mov dword [esp + 0x6c], ecx
jne 0x1002b78d
or ecx, 4
mov dword [esp + 0x6c], ecx
cmp dword [edi + 0xb8], 2
jne 0x1002b7b6
xor eax, eax
cmp dword [edi + 0x14c], 0xffffffff
setne al
add eax, 0x1b
add eax, eax
cmp dword [edi + eax*8], 2
je 0x1002b7b6
movzx eax, byte [esi + 0x4df]
jmp 0x1002b7bd
movzx eax, byte [esi + 0x473]
test eax, eax
jne 0x1002b7d2
and ecx, 0xffffffbf
or ecx, 0x10
mov dword [esp + 0x6c], ecx
push str.schannel:_disabled_automatic_use_of_client_certificate
jmp 0x1002b7d7
push str.schannel:_enabled_automatic_use_of_client_certificate
push esi
call fcn.1001a630
mov eax, dword [edi + 0x1d4]
add esp, 8
cmp eax, 7
ja case.default.0x1002b7f6
movzx eax, byte [eax + 0x1002be44]
jmp dword [eax*4 + 0x1002be3c]
push edi
lea eax, [esp + 0x40]
push esi
push eax
call fcn.1002d860
add esp, 0xc
test eax, eax
jne 0x1002bbe6
mov ecx, dword [edi + 0xb8]
cmp ecx, 2
jne 0x1002b83b
cmp dword [edi + 0x14c], 0xffffffff
setne al
add eax, 0x1b
add eax, eax
cmp dword [edi + eax*8], ecx
je 0x1002b83b
mov eax, dword [edi + 0x234]
jmp 0x1002b841
mov eax, dword [edi + 0x1f4]
test eax, eax
je 0x1002b8ae
cmp ecx, 2
jne 0x1002b868
xor eax, eax
cmp dword [edi + 0x14c], 0xffffffff
setne al
add eax, 0x1b
add eax, eax
cmp dword [edi + eax*8], ecx
je 0x1002b868
mov ecx, dword [edi + 0x234]
jmp 0x1002b86e
mov ecx, dword [edi + 0x1f4]
lea eax, [ebx + 0x48]
push eax
push ecx
lea eax, [esp + 0x44]
push eax
call fcn.1002d7c0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1002b8ae
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push esi
call fcn.1001a560
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.10038aec
add esp, 0x180
ret
mov eax, dword [esi + 0x41c]
push ebp
test eax, eax
jne 0x1002b8c5
cmp dword [esi + 0x434], eax
je 0x1002bd1b
mov ecx, dword [esi + 0x434]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x28], 0
test ecx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ebx
setne dl
mov dword [esp + 0x1c], ebx
xor edi, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x13], dl
test dl, dl
je 0x1002b909
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
jmp 0x1002b96b
push eax
call fcn.1004cf53
mov edi, eax
add esp, 4
test edi, edi
je 0x1002bd4b
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push edi
call fcn.1002b390
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x1002bc1c
mov ecx, dword [esi + 0x41c]
cmp byte [ecx], 0
je 0x1002bbfe
push 0x100619e0
push ecx
call fcn.10029ec0
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1002bbfe
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x458]
test eax, eax
je 0x1002b9ae
push 0x10064f54
push eax
call fcn.10029c50
add esp, 8
test eax, eax
jne 0x1002b9ae
mov al, byte [esp + 0x13]
test al, al
mov eax, str._memory_blob_
jne 0x1002b99a
mov eax, dword [esi + 0x41c]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push esi
call fcn.1001a560
add esp, 0xc
jmp 0x1002bc5e
mov al, byte [esp + 0x13]
cmp dword [esp + 0x1c], ebp
jne 0x1002b9c0
test al, al
je 0x1002bc20
xor ebx, ebx
test al, al
je 0x1002b9d0
mov dword [esp + 0x18], str._memory_blob_
jmp 0x1002b9da
mov eax, dword [esi + 0x41c]
mov dword [esp + 0x18], eax
test edi, edi
je 0x1002b9e7
push edi
call fcn.10041aa8
add esp, 4
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x1002bac5
push 2
push 0
push edi
mov dword [esp + 0x28], ebx
call fcn.1003eb71
add esp, 0xc
test eax, eax
sete al
mov byte [esp + 0x12], al
test al, al
je 0x1002ba7e
push edi
call fcn.100424d5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jns 0x1002ba7a
mov byte [esp + 0x12], bl
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
test eax, eax
je 0x1002ba44
push edi
push 1
push ecx
push eax
call fcn.1003f0de
add esp, 0x10
cmp eax, 1
je 0x1002ba48
mov byte [esp + 0x12], bl
push edi
call fcn.10041a78
add esp, 4
cmp byte [esp + 0x12], bl
jne 0x1002bac5
push dword [esi + 0x41c]
push str.schannel:_Failed_to_read_cert_file__s
push esi
call fcn.1001a560
push dword [esp + 0x20]
call dword [0x10076004]
add esp, 0x10
jmp 0x1002bbe0
mov al, byte [esp + 0x12]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
test al, al
je 0x1002babc
push 0
push 0
push edi
call fcn.1003eb71
add esp, 0xc
test eax, eax
sete al
mov byte [esp + 0x12], al
test al, al
je 0x1002ba26
mov eax, dword [esp + 0x1c]
inc eax
push eax
call dword [section..data]
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x1002ba2a
mov eax, dword [esp + 0x14]
jmp 0x1002ba2e
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x468]
test eax, eax
je 0x1002baed
mov ebx, eax
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1002bae4
sub ebx, ecx
lea eax, [ebx*2 + 2]
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x1002bb44
test ebx, ebx
je 0x1002bb7b
lea ecx, [ebx + 1]
push ecx
push edi
push ebx
push dword [esi + 0x468]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x1002bb7d
xor eax, eax
mov word [edi], ax
push 0
push edi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push edi
mov ebp, eax
call dword [0x10076004]
add esp, 4
cmp byte [esp + 0x13], 0
jne 0x1002bb58
push dword [esp + 0x14]
call dword [0x10076004]
add esp, 4
test ebp, ebp
jne 0x1002bb9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x1002bb89
push dword [esp + 0x18]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push esi
call fcn.1001a560
add esp, 0xc
jmp 0x1002bbe0
xor eax, eax
cmp eax, ebx
jg 0x1002bb25
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x1002bb2a
push eax
push dword [esp + 0x1c]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push esi
call fcn.1001a560
add esp, 0x10
jmp 0x1002bbe0
push 0
push 0
push 0
push 0
push 0x10001
push ebp
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1002bcfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x1c]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push esi
call fcn.1001a560
add esp, 0x10
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.10038aec
add esp, 0x180
ret
push dword [esi + 0x41c]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push esi
call fcn.1001a560
push edi
call fcn.10041aa8
add esp, 0x10
mov eax, ebx
jmp 0x1002bbe5
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push ebx
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 0x1002bc74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push dword [esp + 0x30]
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push esi
call fcn.1001a560
push ebx
call dword [0x10076004]
add esp, 0x18
test edi, edi
je 0x1002bbe0
push edi
call fcn.10041aa8
add esp, 4
jmp 0x1002bbe0
push ebx
call dword [0x10076004]
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 0x1002bcc7
test edi, edi
je 0x1002bbd7
push edi
call fcn.10041aa8
add esp, 4
jmp 0x1002bbd7
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 + 0x20], eax
test edi, edi
je 0x1002bcf6
push edi
call fcn.10041aa8
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x1002bbd7
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x48], 1
push ebp
mov dword [esp + 0x50], eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov ebx, dword [esp + 0x34]
push 0x18
push 1
call dword [0x10076010]
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x1002bd55
push str.schannel:_unable_to_allocate_memory
push esi
call fcn.1001a560
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x1002bd4b
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
jmp 0x1002bbe5
mov dword [eax + 0x10], 1
mov ecx, dword [ebx]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [0x10077428]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov ecx, dword [esp + 0x20]
mov edi, eax
test ecx, ecx
je 0x1002bd92
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test edi, edi
je 0x1002bddd
push 0x100
lea eax, [esp + 0x90]
push eax
push edi
call fcn.1002ff80
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push esi
call fcn.1001a560
push dword [ebx]
call dword [0x10076004]
xor eax, eax
mov dword [ebx], 0
add esp, 0x1c
cmp edi, 0x80090300
setne al
lea eax, [eax*8 + 0x1b]
jmp 0x1002bbe5
xor eax, eax
jmp 0x1002bbe5
push str.SSL_versions_not_supported
push esi
call fcn.1001a560
add esp, 8
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.10038aec
add esp, 0x180
ret
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push esi
call fcn.1001a560
mov ecx, dword [esp + 0x190]
add esp, 8
mov eax, 0x23
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10038aec
add esp, 0x180
ret