Function at 0x41c130
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1d0
mov eax, dword [esp + 0x1d8]
push ebx
push ebp
mov ebp, dword [esp + 0x1dc]
mov ebx, dword [ebp]
push esi
add eax, eax
push edi
lea edi, [ebp + eax*8 + 0x468]
xor eax, eax
or ecx, 0xffffffff
mov esi, 2
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
cmp dword [ebp + 0x358], esi
jne 0x41c19c
xor edx, edx
cmp dword [ebp + 0x424], ecx
setne dl
add edx, edx
cmp dword [ebp + edx*8 + 0x488], esi
je 0x41c19c
mov eax, dword [ebp + 0x34c]
mov dword [esp + 0x40], eax
jmp 0x41c1a6
mov ecx, dword [ebp + 0x304]
mov dword [esp + 0x40], ecx
push 1
push esi
push 1
push 5
call fcn.0041b1a0
add esp, 0x10
test eax, eax
je 0x41c1c7
push str.schannel:_Windows_version_is_old_and_may_not_be_able_to_connect_to_some_servers_due_to_lack_of_SNI__algorithms__etc._n
push ebx
call fcn.0040ffc0
add esp, 8
mov edx, dword [edi + 8]
xor ecx, ecx
mov dword [edx + 0x4c], ecx
cmp dword [ebp + 0x358], esi
jne 0x41c1f6
xor eax, eax
cmp dword [ebp + 0x424], 0xffffffff
setne al
add eax, eax
cmp dword [ebp + eax*8 + 0x488], esi
je 0x41c1f6
mov eax, dword [ebp + 0x4f8]
jmp 0x41c1fc
mov eax, dword [ebp + 0x4b8]
cmp eax, ecx
je 0x41c23d
push 3
push esi
push 1
push 6
call fcn.0041b1a0
add esp, 0x10
test eax, eax
je 0x41c21f
mov ecx, dword [edi + 8]
mov dword [ecx + 0x50], 1
jmp 0x41c243
push str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
push ebx
call fcn.00410090
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x4d
pop ebx
add esp, 0x1d0
ret
mov edx, dword [edi + 8]
mov dword [edx + 0x50], ecx
mov eax, dword [edi + 8]
mov dword [eax], 0
cmp dword [ebp + 0x358], esi
jne 0x41c273
xor ecx, ecx
cmp dword [ebp + 0x424], 0xffffffff
setne cl
add ecx, ecx
cmp dword [ebp + ecx*8 + 0x488], esi
je 0x41c273
mov eax, dword [ebx + 0x924]
jmp 0x41c279
mov eax, dword [ebx + 0x89c]
test eax, eax
je 0x41c2b9
push ebp
call fcn.00407090
mov edx, dword [esp + 0x1ec]
push edx
push 0
lea eax, [esp + 0x48]
push eax
push ebp
call fcn.004070f0
add esp, 0x14
test eax, eax
jne 0x41c2b0
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x3c]
mov dword [ecx], edx
mov eax, dword [edi + 8]
mov eax, dword [eax]
inc dword [eax + 0x10]
push ebp
call fcn.004070c0
add esp, 4
mov esi, dword [edi + 8]
cmp dword [esi], 0
jne 0x41c97c
push 0x38
lea ecx, [esp + 0x84]
push 0
push ecx
call fcn.00505440
add esp, 0xc
cmp dword [ebp + 0x4dc], 0
mov dword [esp + 0x80], 4
mov ecx, ebx
je 0x41c32a
mov eax, dword [esi + 0x50]
neg eax
sbb eax, eax
and eax, 0xffffffe8
add eax, 0x20
mov dword [esp + 0xb0], eax
cmp dword [ecx + 0x8d8], 0
je 0x41c313
or eax, 0x1800
jmp 0x41c32f
cmp dword [ecx + 0x8e0], 0
je 0x41c323
or eax, 0x1a00
jmp 0x41c32f
or eax, 0x200
jmp 0x41c32f
mov eax, 0x1808
cmp dword [ebp + 0x4e0], 0
mov dword [esp + 0xb0], eax
jne 0x41c349
or eax, 4
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 0x4ac]
cmp eax, 7
ja case.default.0x41c358
jmp dword [eax*4 + 0x41cbf0]
mov eax, ebp
lea esi, [esp + 0x80]
call fcn.0041b2e0
test eax, eax
je 0x41c394
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret
mov dword [esp + 0xa0], 0x20
jmp 0x41c394
mov dword [esp + 0xa0], 8
mov ecx, dword [ebp + 0x358]
cmp ecx, 2
jne 0x41c3be
xor edx, edx
cmp dword [ebp + 0x424], 0xffffffff
setne dl
add edx, edx
cmp dword [ebp + edx*8 + 0x488], ecx
je 0x41c3be
mov eax, dword [ebp + 0x508]
jmp 0x41c3c4
mov eax, dword [ebp + 0x4c8]
test eax, eax
je 0x41c423
cmp ecx, 2
jne 0x41c3ec
xor eax, eax
cmp dword [ebp + 0x424], 0xffffffff
setne al
add eax, eax
cmp dword [ebp + eax*8 + 0x488], ecx
je 0x41c3ec
mov eax, dword [ebp + 0x508]
jmp 0x41c3f2
mov eax, dword [ebp + 0x4c8]
lea ebx, [esp + 0x80]
call fcn.0041bf50
mov esi, eax
test esi, esi
je 0x41c423
mov ecx, dword [esp + 0x10]
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push ecx
call fcn.00410090
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x870]
xor esi, esi
cmp eax, esi
jne 0x41c43f
cmp dword [ebx + 0x888], esi
je 0x41c87a
xor ecx, ecx
xor edi, edi
cmp dword [ebx + 0x888], esi
mov dword [esp + 0x30], esi
setne cl
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
cmp ecx, esi
je 0x41c481
mov eax, dword [ebx + 0x888]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
jmp 0x41c4ef
cmp eax, esi
je 0x41c8b1
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x38]
push ecx
call fcn.0041bfc0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41c562
mov eax, dword [ebx + 0x870]
cmp byte [eax], 0
je 0x41c4c9
push 0x53f8cc
push eax
call fcn.0041fdb0
mov edi, eax
add esp, 8
test edi, edi
jne 0x41c4eb
mov edx, dword [ebx + 0x870]
push edx
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push ebx
call fcn.00410090
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 0x8b8]
test eax, eax
je 0x41c53b
push 0x548dcc
push eax
call fcn.00418b40
add esp, 8
test eax, eax
jne 0x41c53b
cmp dword [esp + 0x20], eax
mov eax, str._memory_blob_
jne 0x41c51c
mov eax, dword [ebx + 0x870]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebx
call fcn.00410090
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x3a
pop ebx
add esp, 0x1d0
ret
test edi, edi
jne 0x41c545
cmp dword [esp + 0x20], edi
je 0x41c566
xor ebp, ebp
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x20], ebp
je 0x41c629
mov dword [esp + 0x14], str._memory_blob_
jmp 0x41c635
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
push esi
or eax, 0x4000
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov edi, eax
test edi, edi
jne 0x41c5b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x30]
push eax
push esi
push ecx
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push ebx
call fcn.00410090
push esi
call dword [0x58b0c0]
add esp, 0x18
lea eax, [edi + 0x3a]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret
push esi
call dword [0x58b0c0]
add esp, 4
push 0
push 0
lea edx, [esp + 0xc4]
lea eax, [esp + 0x5c]
push eax
mov ecx, edx
push ecx
push 4
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x3c]
push 0x28
push edx
mov dword [esp + 0x70], 0x14
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
push 0
test eax, eax
je 0x41c831
lea eax, [esp + 0x58]
push eax
push 0x10000
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41c82f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x88], ecx
jmp 0x41c85e
mov edx, ebx
mov eax, dword [edx + 0x870]
mov dword [esp + 0x14], eax
cmp edi, ebp
je 0x41c6f5
push 2
xor ebx, ebx
push ebx
push edi
call fcn.00508cbd
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x41c667
push edi
call fcn.005090d0
mov ebx, eax
add esp, 4
test ebx, ebx
jns 0x41c667
xor esi, esi
jmp 0x41c694
mov dword [esp + 0x24], ebx
test esi, esi
je 0x41c694
push 0
push 0
push edi
call fcn.00508cbd
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x41c694
inc ebx
push ebx
call dword [0x58b0bc]
add esp, 4
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], ebp
je 0x41c6b4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push edi
push 1
push ecx
push edx
call fcn.00508b82
add esp, 0x10
cmp eax, 1
je 0x41c6b6
xor esi, esi
push edi
call fcn.005034d7
add esp, 4
test esi, esi
jne 0x41c6f5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x870]
push ecx
push str.schannel:_Failed_to_read_cert_file__s
push eax
call fcn.00410090
mov edx, dword [esp + 0x24]
push edx
call dword [0x58b0c0]
add esp, 0x10
pop edi
lea eax, [esi + 0x3a]
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x8c8]
mov dword [esp + 0x30], ecx
test eax, eax
je 0x41c721
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c716
sub eax, edx
mov ebp, eax
lea edx, [ebp + ebp + 2]
push edx
call dword [0x58b0bc]
mov esi, eax
add esp, 4
test esi, esi
je 0x41c78c
test ebp, ebp
je 0x41c77c
mov ecx, dword [ebx + 0x8c8]
lea eax, [ebp + 1]
push eax
push esi
push ebp
push ecx
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x41c780
xor eax, eax
mov word [esi], ax
push 0
push esi
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov edi, eax
push esi
mov dword [esp + 0x30], edi
call dword [0x58b0c0]
add esp, 4
jmp 0x41c790
mov eax, dword [esp + 0x28]
cmp eax, ebp
jg 0x41c757
xor edx, edx
mov word [esi + eax*2], dx
jmp 0x41c75c
mov edi, dword [esp + 0x2c]
cmp dword [esp + 0x20], 0
jne 0x41c7a5
mov edx, dword [esp + 0x18]
push edx
call dword [0x58b0c0]
add esp, 4
test edi, edi
jne 0x41c7f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x41c7d5
mov eax, dword [esp + 0x14]
push eax
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.00410090
add esp, 0xc
lea eax, [edi + 0x3a]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push ebx
call fcn.00410090
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0x3a
pop ebx
add esp, 0x1d0
ret
push 0
push 0
push 0
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x41c848
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
push eax
push edx
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
push ebx
call fcn.00410090
add esp, 0x10
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop edi
pop esi
pop ebp
mov eax, 0x3a
pop ebx
add esp, 0x1d0
ret
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1e4]
lea eax, [esp + 0x1c]
mov dword [esp + 0x88], eax
push 0
push edi
mov dword [esp + 0x8c], 1
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x10]
push 0x18
push 1
call dword [0x58b0cc]
mov ecx, dword [edi + 8]
mov dword [ecx], eax
mov eax, dword [edi + 8]
add esp, 8
cmp dword [eax], 0
jne 0x41c8c1
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.00410090
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x41c8b1
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1d0
ret
mov edx, dword [eax]
mov dword [edx + 0x10], 1
mov eax, dword [edi + 8]
mov eax, dword [eax]
lea ecx, [eax + 8]
push ecx
push eax
mov eax, dword [0x590d28]
mov ecx, dword [eax + 0xc]
push 0
push 0
lea edx, [esp + 0x90]
push edx
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push 0
call ecx
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41c906
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x41c97c
push 0x100
lea edx, [esp + 0xe4]
push edx
push esi
call fcn.004058e0
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.00410090
mov eax, dword [edi + 8]
mov ecx, dword [eax]
push ecx
call dword [0x58b0c0]
mov edx, dword [edi + 8]
add esp, 0x1c
xor eax, eax
cmp esi, 0x80090300
setne al
pop edi
pop esi
pop ebp
mov dword [edx], 0
pop ebx
lea eax, [eax*8 + 0x1b]
add esp, 0x1d0
ret
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ecx
call fcn.00410090
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x23
pop ebx
add esp, 0x1d0
ret
mov esi, dword [esp + 0x40]
lea eax, [esp + 0xb8]
push eax
push esi
push 2
call fcn.0043e9e0
add esp, 0xc
test eax, eax
jne 0x41c9ae
lea ecx, [esp + 0xd0]
push ecx
push esi
push 0x17
call fcn.0043e9e0
add esp, 0xc
test eax, eax
je 0x41c9c0
mov edx, dword [esp + 0x10]
push str.schannel:_using_IP_address__SNI_is_not_supported_by_OS._n
push edx
call fcn.0040ffc0
add esp, 8
mov edx, dword [edi + 8]
xor ebx, ebx
lea eax, [esp + 0x5c]
mov dword [esp + 0x70], eax
mov eax, 1
lea ecx, [esp + 0x44]
push 0x10
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], eax
push eax
mov dword [edx + 0x38], 0x811c
call dword [0x58b0cc]
mov ecx, dword [edi + 8]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
add esp, 8
cmp dword [eax + 4], ebx
jne 0x41ca46
mov edx, dword [esp + 0x10]
push str.schannel:_unable_to_allocate_memory
push edx
call fcn.00410090
add esp, 8
pop edi
pop esi
pop ebp
lea eax, [ebx + 0x1b]
pop ebx
add esp, 0x1d0
ret
cmp esi, ebx
je 0x41c8b1
mov ecx, dword [eax + 4]
lea edx, [ecx + 8]
push edx
lea edx, [eax + 0x3c]
push edx
lea edx, [esp + 0x7c]
push edx
push ecx
mov ecx, dword [eax + 0x4c]
neg ecx
push ebx
sbb ecx, ecx
lea edx, [esp + 0x7c]
and ecx, edx
mov edx, dword [eax]
push ecx
mov ecx, dword [eax + 0x38]
mov eax, dword [0x590d28]
push ebx
push ebx
push ecx
mov ecx, dword [eax + 0x18]
push esi
push ebx
push edx
call ecx
mov esi, eax
cmp esi, 0x90312
je 0x41cb57
mov edx, dword [edi + 8]
mov eax, dword [edx + 4]
push eax
call dword [0x58b0c0]
mov ecx, dword [edi + 8]
add esp, 4
mov dword [ecx + 4], ebx
push 0x100
cmp esi, 0x80090300
je 0x41cb22
cmp esi, 0x80090322
je 0x41caed
lea edx, [esp + 0xe4]
push edx
push esi
call fcn.004058e0
push eax
mov eax, dword [esp + 0x20]
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push eax
call fcn.00410090
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, 0x23
pop ebx
add esp, 0x1d0
ret
lea ecx, [esp + 0xe4]
push ecx
push 0x80090322
call fcn.004058e0
mov edx, dword [esp + 0x1c]
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push edx
call fcn.00410090
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, 0x3c
pop ebx
add esp, 0x1d0
ret
lea eax, [esp + 0xe4]
push eax
push 0x80090300
call fcn.004058e0
mov ecx, dword [esp + 0x1c]
push eax
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push ecx
call fcn.00410090
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1d0
ret
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x1ec]
push eax
mov eax, dword [ebp + edx*4 + 0x420]
push ecx
push eax
push ebp
call fcn.00410610
mov ecx, dword [esp + 0x60]
mov edx, dword [0x590d28]
add esp, 0x14
mov esi, eax
mov eax, dword [edx + 0x40]
push ecx
call eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
cmp esi, ebx
jne 0x41cbcc
cmp ecx, eax
jne 0x41cbcc
mov ecx, dword [edi + 8]
mov dword [ecx + 0x40], ebx
mov edx, dword [edi + 8]
mov dword [edx + 0x44], ebx
mov eax, dword [edi + 8]
mov dword [eax + 0x48], ebx
mov ecx, dword [edi + 8]
mov dword [ecx + 0x34], ebx
mov dword [edi + 4], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1d0
ret
mov edx, dword [esp + 0x10]
push ecx
push eax
push str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
push edx
call fcn.00410090
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0x23
pop ebx
add esp, 0x1d0
ret