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

Disassembly:
sub esp, 0x180
mov eax, dword [0x5363c0]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
mov ebx, dword [esp + 0x188]
lea eax, [esp + 0x34]
push ebp
mov ebp, dword [esp + 0x194]
push esi
mov esi, dword [esp + 0x194]
push edi
push 0x38
shl ebp, 4
push 0
add ebp, esi
mov dword [esp + 0x24], 0
push eax
mov dword [esp + 0x40], ebp
call fcn.004bda50
add esp, 0xc
mov dword [esp + 0x40], 4
cmp byte [esi + 0x210], 0
mov edi, 0x1b0
mov dword [esp + 0x2c], 0x1c0
je 0x49272a
mov eax, dword [ebp + 0x198]
mov edx, 8
mov ecx, 0x20
lea ebp, [esi + 0x14c]
cmp byte [eax + 0x47], 0
cmovne ecx, edx
mov edx, dword [esi + 0xb8]
cmp edx, 2
jne 0x4926e1
cmp dword [ebp], 0xffffffff
mov eax, edi
cmovne eax, dword [esp + 0x2c]
cmp dword [eax + esi], edx
je 0x4926e1
mov al, byte [ebx + 0x4db]
jmp 0x4926e7
mov al, byte [ebx + 0x46f]
test al, al
je 0x4926f3
or ecx, 0x1800
jmp 0x49273b
cmp edx, 2
jne 0x492710
cmp dword [ebp], 0xffffffff
mov eax, edi
cmovne eax, dword [esp + 0x2c]
cmp dword [eax + esi], edx
je 0x492710
mov al, byte [ebx + 0x4dd]
jmp 0x492716
mov al, byte [ebx + 0x471]
test al, al
je 0x492722
or ecx, 0x1a00
jmp 0x49273b
or ecx, 0x200
jmp 0x49273b
mov edx, dword [esi + 0xb8]
lea ebp, [esi + 0x14c]
mov ecx, 0x1808
cmp byte [esi + 0x211], 0
mov dword [esp + 0x70], ecx
jne 0x49274f
or ecx, 4
mov dword [esp + 0x70], ecx
cmp edx, 2
jne 0x492770
cmp dword [ebp], 0xffffffff
mov eax, edi
mov edx, 0x1c0
cmovne eax, edx
cmp dword [eax + esi], 2
je 0x492770
mov al, byte [ebx + 0x4df]
jmp 0x492776
mov al, byte [ebx + 0x473]
test al, al
jne 0x49278b
and ecx, 0xffffffbf
mov eax, str.schannel:_disabled_automatic_use_of_client_certificate
or ecx, 0x10
mov dword [esp + 0x70], ecx
jmp 0x492790
mov eax, str.schannel:_enabled_automatic_use_of_client_certificate
push eax
push ebx
call fcn.0047c290
mov edx, dword [esi + 0x1d4]
add esp, 8
cmp edx, 7
ja case.default.0x4927b0
movzx eax, byte [edx + 0x493058]
jmp dword [eax*4 + 0x493050]
cmp dword [esi + 0xb8], 2
jne 0x4927e2
cmp dword [ebp], 0xffffffff
mov eax, edi
mov ecx, 0x1c0
cmovne eax, ecx
cmp dword [eax + esi], 2
je 0x4927e2
mov edx, dword [esi + 0x214]
mov edi, dword [esi + 0x218]
jmp 0x4927e8
mov edi, dword [esi + 0x1d8]
test edi, edi
je 0x4927f4
cmp edi, 0x10000
jne 0x4927f9
mov edi, 0x60000
sar edi, 0x10
cmp edx, edi
jg 0x492835
mov ecx, dword [esp + 0x60]
add edx, 0xfffffffc
cmp edx, 3
ja case.default.0x49280c
jmp dword [edx*4 + 0x493060]
or ecx, 0x80
jmp 0x492829
or ecx, 0x200
jmp 0x492829
or ecx, 0x800
mov dword [esp + 0x60], ecx
inc edx
lea eax, [edx + 4]
cmp eax, edi
jle 0x492807
mov edx, dword [esi + 0xb8]
cmp edx, 2
jne 0x492874
cmp dword [ebp], 0xffffffff
mov eax, 0x1b0
mov ecx, 0x1c0
cmovne eax, ecx
cmp dword [eax + esi], edx
je 0x492874
mov edi, dword [esi + 0x234]
lea eax, [esi + 0x234]
lea ecx, [esi + 0x1f4]
jmp 0x492886
push str.schannel:_TLS_1.3_is_not_yet_supported
jmp 0x493027
mov edi, dword [esi + 0x1f4]
lea ecx, [esi + 0x1f4]
lea eax, [esi + 0x234]
test edi, edi
je 0x49293e
cmp edx, 2
jne 0x4928aa
cmp dword [ebp], 0xffffffff
mov edx, 0x1b0
mov ebp, 0x1c0
cmovne edx, ebp
cmp dword [edx + esi], 2
jne 0x4928ac
mov eax, ecx
mov ebp, dword [esp + 0x34]
xor edi, edi
mov esi, dword [eax]
mov ebp, dword [ebp + 0x198]
add ebp, 0x48
test esi, esi
je 0x492936
cmp byte [esi], 0
je 0x492936
cmp edi, 0x2d
jge 0x492936
push 0
push 0
push esi
call fcn.004ceb8b
add esp, 0xc
test eax, eax
jne 0x49291b
push esi
call fcn.00491830
add esp, 4
test eax, eax
jne 0x49291b
push 0x11
push str.USE_STRONG_CRYPTO
push esi
call fcn.004d2260
add esp, 0xc
test eax, eax
je 0x492911
push 0x15
push str.SCH_USE_STRONG_CRYPTO
push esi
call fcn.004d2260
add esp, 0xc
test eax, eax
jne 0x49297e
or dword [esp + 0x70], 0x400000
jmp 0x492920
mov dword [ebp + edi*4], eax
inc edi
push 0x3a
push esi
call fcn.004bdd90
mov esi, eax
add esp, 8
test esi, esi
je 0x492936
add esi, 1
jne 0x4928c1
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], edi
mov edx, dword [ebx + 0x41c]
test edx, edx
jne 0x492993
cmp dword [ebx + 0x434], edx
je 0x492efd
mov ecx, dword [ebx + 0x434]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
xor esi, esi
mov dword [esp + 0x28], ecx
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
jmp 0x492b59
push str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
push ebx
call fcn.0047c1c0
mov eax, 0x3b
jmp 0x493032
mov ecx, dword [ebx + 0x434]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x24], edi
xor esi, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x4929c9
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
jmp 0x492b59
push edx
call fcn.004d7de8
mov esi, eax
add esp, 4
test esi, esi
je case.0x492fde.2146893056
push 0x5c
push esi
call fcn.004bdd90
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x492b2a
mov edi, ebp
sub edi, esi
push edi
push str.CurrentUser
push esi
call fcn.004d2260
add esp, 0xc
test eax, eax
jne 0x492a12
mov edi, 0x10000
jmp 0x492acc
push edi
push str.LocalMachine
push esi
call fcn.004d2260
add esp, 0xc
test eax, eax
jne 0x492a2f
mov edi, 0x20000
jmp 0x492acc
push edi
push str.CurrentService
push esi
call fcn.004d2260
add esp, 0xc
test eax, eax
jne 0x492a4c
mov edi, 0x40000
jmp 0x492acc
push edi
push str.Services
push esi
call fcn.004d2260
add esp, 0xc
test eax, eax
jne 0x492a66
mov edi, 0x50000
jmp 0x492acc
push edi
push str.Users
push esi
call fcn.004d2260
add esp, 0xc
test eax, eax
jne 0x492a80
mov edi, 0x60000
jmp 0x492acc
push edi
push str.CurrentUserGroupPolicy
push esi
call fcn.004d2260
add esp, 0xc
test eax, eax
jne 0x492a9a
mov edi, 0x70000
jmp 0x492acc
push edi
push str.LocalMachineGroupPolicy
push esi
call fcn.004d2260
add esp, 0xc
test eax, eax
jne 0x492ab4
mov edi, 0x80000
jmp 0x492acc
push edi
push str.LocalMachineEnterprise
push esi
call fcn.004d2260
add esp, 0xc
test eax, eax
jne 0x492b28
mov edi, 0x90000
lea eax, [ebp + 1]
push 0x5c
push eax
mov dword [esp + 0x1c], eax
call fcn.004bdd90
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x492b2a
lea eax, [ebp + 1]
mov ecx, eax
mov dword [esp + 0x2c], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x492af0
sub ecx, edx
cmp ecx, 0x28
jne 0x492b2a
push dword [esp + 0x14]
mov byte [ebp], al
call dword [0x53636c]
add esp, 4
mov dword [esp + 0x24], eax
mov byte [ebp], 0x5c
test eax, eax
jne 0x492baf
mov dword [esp + 0x14], 0x1b
jmp 0x492b32
xor edi, edi
mov dword [esp + 0x14], 0x3a
mov eax, dword [ebx + 0x41c]
cmp byte [eax], 0
je 0x492ff0
push 0x4ecacc
push eax
call fcn.00481080
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x492ff0
mov eax, dword [ebx + 0x458]
test eax, eax
je 0x492b97
push 0x500c3c
push eax
call fcn.004808c0
add esp, 8
test eax, eax
jne 0x492b97
cmp dword [esp + 0x28], eax
mov eax, str._memory_blob_
jne 0x492b86
mov eax, dword [ebx + 0x41c]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebx
call fcn.0047c1c0
add esp, 0xc
jmp 0x492bec
mov eax, dword [esp + 0x28]
test ebp, ebp
jne 0x492cb0
test eax, eax
jne 0x492cb0
mov eax, dword [esp + 0x24]
push eax
mov eax, 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 0x492c07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [esp + 0x24]
push eax
push ebp
push edi
push str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
push ebx
call fcn.0047c1c0
push ebp
call dword [0x536364]
add esp, 0x18
test esi, esi
je 0x492e92
push esi
call fcn.004c5b14
add esp, 4
mov eax, 0x3a
jmp 0x493035
push dword [esp + 0x24]
call dword [0x536364]
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 0x492c67
test esi, esi
je 0x492c54
push esi
call fcn.004c5b14
add esp, 4
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x493035
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 esi, esi
je 0x492c96
push esi
call fcn.004c5b14
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x492ee4
push eax
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x493035
xor edi, edi
test eax, eax
je 0x492cc0
mov dword [esp + 0x14], str._memory_blob_
jmp 0x492cca
mov eax, dword [ebx + 0x41c]
mov dword [esp + 0x14], eax
test esi, esi
je 0x492cd7
push esi
call fcn.004c5b14
add esp, 4
test ebp, ebp
je 0x492dad
push 2
xor esi, esi
push esi
push ebp
call fcn.004c6ecc
add esp, 0xc
test eax, eax
sete cl
mov byte [esp + 0x13], cl
test eax, eax
jne 0x492d42
push ebp
call fcn.004d2de7
mov esi, eax
add esp, 4
test esi, esi
jns 0x492d3e
mov byte [esp + 0x13], 0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
test esi, esi
je 0x492d7f
push ebp
push 1
push eax
push esi
call fcn.004c6ab6
add esp, 0x10
cmp eax, 1
jne 0x492d7f
push ebp
call fcn.004c5da0
add esp, 4
cmp byte [esp + 0x13], 0
jne 0x492db1
jmp 0x492d88
mov cl, byte [esp + 0x13]
mov eax, esi
mov dword [esp + 0x20], eax
test cl, cl
je 0x492d79
push 0
push 0
push ebp
call fcn.004c6ecc
add esp, 0xc
test eax, eax
sete byte [esp + 0x13]
test eax, eax
jne 0x492d0e
lea eax, [esi + 1]
push eax
call dword [0x536360]
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
jmp 0x492d12
mov esi, dword [esp + 0x18]
jmp 0x492d16
push ebp
call fcn.004c5da0
add esp, 4
push dword [ebx + 0x41c]
push str.schannel:_Failed_to_read_cert_file__s
push ebx
call fcn.0047c1c0
push esi
call dword [0x536364]
add esp, 0x10
mov eax, 0x3a
jmp 0x493035
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x468]
mov dword [esp + 0x30], esi
test eax, eax
je 0x492dd9
mov edi, eax
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x492dd0
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [0x536360]
mov esi, eax
add esp, 4
test esi, esi
je 0x492e40
test edi, edi
je 0x492e32
lea ecx, [edi + 1]
push ecx
push esi
push edi
push dword [ebx + 0x468]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x492e34
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 ebp, eax
call dword [0x536364]
add esp, 4
jmp 0x492e42
xor eax, eax
cmp eax, edi
jg 0x492e11
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x492e16
xor ebp, ebp
cmp dword [esp + 0x28], 0
jne 0x492e56
push dword [esp + 0x18]
call dword [0x536364]
add esp, 4
test ebp, ebp
jne 0x492e9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x492e7f
push dword [esp + 0x14]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.0047c1c0
add esp, 0xc
lea eax, [ebp + 0x3a]
jmp 0x493035
push eax
push dword [esp + 0x18]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
push ebx
call fcn.0047c1c0
add esp, 0x10
mov eax, 0x3a
jmp 0x493035
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 0x492ee4
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 ebx
call fcn.0047c1c0
add esp, 0x10
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x493035
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]
push 0x18
push 1
call dword [0x536370]
mov ebp, dword [esp + 0x3c]
add esp, 8
mov ecx, dword [ebp + 0x198]
mov dword [ecx], eax
mov eax, dword [ebp + 0x198]
mov eax, dword [eax]
test eax, eax
jne 0x492f49
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.0047c1c0
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je case.0x492fde.2146893056
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
jmp 0x493035
mov dword [eax + 0x10], 1
mov eax, dword [ebp + 0x198]
mov ecx, dword [eax]
lea eax, [ecx + 8]
push eax
push ecx
push 0
push 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [0x538c08]
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 esi, eax
test ecx, ecx
je 0x492f8c
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x492fec
push 0x100
lea eax, [esp + 0x90]
push eax
push esi
call fcn.0048f0e0
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.0047c1c0
mov eax, dword [ebp + 0x198]
push dword [eax]
call dword [0x536364]
mov eax, dword [ebp + 0x198]
add esi, 0x7ff6fd00
add esp, 0x1c
mov dword [eax], 0
cmp esi, 0xe
ja case.0x492fde.2146893055
movzx eax, byte [esi + 0x49307c]
jmp dword [eax*4 + 0x493070]
mov eax, 0x23
jmp 0x493035
xor eax, eax
jmp 0x493035
push dword [ebx + 0x41c]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push ebx
call fcn.0047c1c0
push esi
call fcn.004c5b14
mov eax, dword [esp + 0x24]
add esp, 0x10
jmp 0x493035
push str.SSL_versions_not_supported
push ebx
call fcn.0047c1c0
mov eax, 4
jmp 0x493032
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ebx
call fcn.0047c1c0
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004bb96c
add esp, 0x180
ret