Function at 0x4515a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8431
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x879008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x45167b
cmp eax, 3
je 0x45167b
push str.Usage:
call fcn.005bfa89
push str.____navicat_patcher.exe__Navicat_Installation_Path___RSA_2048_PEM_File_Path_
call fcn.005bfa89
push 0x874910
call fcn.005bfa89
push str._____Navicat_Installation_Path___The_folder_path_where_Navicat_is_installed.
call fcn.005bfa89
push str._________________________________This_parameter_must_be_specified.
call fcn.005bfa89
push 0x874910
call fcn.005bfa89
push str._____RSA_2048_PEM_File_Path______The_path_to_an_RSA_2048_private_key_file.
call fcn.005bfa89
push str._________________________________This_parameter_is_optional.
call fcn.005bfa89
push str._________________________________If_not_specified__an_RSA_2048_private_key_file
call fcn.005bfa89
push str._________________________________named__RegPrivateKey.pem__will_be_generated.
call fcn.005bfa89
push 0x874910
call fcn.005bfa89
push str.Example:
call fcn.005bfa89
push str.____navicat_patcher.exe__C:Program_FilesPremiumSoftNavicat_Premium_12_
call fcn.005bfa89
add esp, 0x34
xor eax, eax
jmp 0x452784
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x30], esi
xor edi, edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x34], edi
mov edi, dword [ebp - 0xa0]
mov byte [ebp - 4], 0xc
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4527a0
test al, 0x10
je 0x4527fd
mov edx, dword [edi + 4]
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451710
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.0044bfb0
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x58]
mov edi, dword [ebp - 0x58]
cmp ecx, 8
mov edx, dword [ebp - 0x48]
cmovae eax, edi
cmp word [eax + edx*2 - 2], 0x5c
je 0x451782
cmp ecx, 8
lea eax, [ebp - 0x58]
cmovae eax, edi
cmp word [eax + edx*2 - 2], 0x2f
je 0x451782
cmp edx, ecx
jae 0x451770
lea eax, [edx + 1]
cmp ecx, 8
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
cmovae eax, edi
mov dword [eax + edx*2], 0x2f
jmp 0x451782
push 0x2f
mov byte [ebp - 0x40], 0
push dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x58]
call fcn.004537c0
push 4
mov dword [ebp - 4], 0xb
call fcn.00455532
mov edi, eax
add esp, 4
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x9c], edi
mov dword [edi], 0
call fcn.0050d340
mov dword [edi], eax
mov byte [ebp - 4], 0x13
test eax, eax
je 0x452854
push str.___Try_to_open_libcc.dll___......
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 0x17
call fcn.0044c9e0
push str.libcc.dll
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0xb8]
call fcn.00453320
add esp, 8
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x18
call fcn.00453500
add esp, 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x28]
push eax
call fcn.00452dc0
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0xa4]
cmp edx, 8
jb 0x451846
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45183c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4528b3
push edx
push ecx
call fcn.004557fc
add esp, 8
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call fcn.004535d0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
call fcn.00452c40
mov ecx, dword [ebp - 0x20]
sub esp, 0x10
call fcn.00450ca0
push 9
push str.libcc.dll
lea ecx, [ebp - 0x88]
call fcn.0044bfb0
push str.Succeeded_n
call fcn.0044c9e0
mov byte [ebp - 4], 0xb
jmp 0x451c07
mov edi, dword [ebp - 0x18]
add esp, 4
test edi, edi
je 0x451cf9
push 0x2c
mov byte [ebp - 4], 0x24
call fcn.00455532
mov esi, eax
add esp, 4
mov dword [ebp - 0x9c], esi
push 0x2c
push 0
push esi
call fcn.005b9220
add esp, 0xc
mov byte [ebp - 4], 0x26
lea ecx, [esi + 4]
mov dword [esi], vtable.PatchSolution0.0
call fcn.0044cbf0
mov byte [ebp - 4], 0x24
mov ecx, esi
mov dword [esi + 0x28], 0xffffffff
mov eax, dword [esi]
push dword [edi + 4]
mov dword [ebp - 0x30], esi
call dword [eax]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x451c89
push str.___PatchSolution0_......_Omitted
call fcn.005bfa89
mov eax, dword [esi]
add esp, 4
mov ecx, esi
push 1
call dword [eax + 0x10]
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0xb
jmp 0x451d06
lea ecx, [ebp - 0x88]
call fcn.0044bbf0
lea ecx, [ebp - 0x70]
call fcn.0044bbf0
lea ecx, [ebp - 0x58]
call fcn.0044bbf0
jmp 0x452781
push str.___PatchSolution0_......_Omitted
call fcn.005bfa89
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x451f94
push 0x64
mov byte [ebp - 4], 0x28
call fcn.00455532
mov edi, eax
add esp, 4
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x9c], edi
push 0x64
push 0
push edi
call fcn.005b9220
add esp, 0xc
mov byte [ebp - 4], 0x2a
lea ecx, [edi + 4]
mov dword [edi], vtable.PatchSolution1.0
call fcn.0044cbf0
push 0x3c
lea eax, [edi + 0x28]
push 0
push eax
call fcn.005b9220
mov byte [ebp - 4], 0x28
push 0x648
mov dword [ebp - 0x3c], edi
call fcn.00455532
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x9c], edi
push 0x648
push 0
push edi
call fcn.005b9220
add esp, 0xc
mov byte [ebp - 4], 0x2c
lea ecx, [edi + 4]
mov dword [edi], vtable.PatchSolution2.0
call fcn.0044cbf0
or eax, 0xffffffff
mov byte [ebp - 4], 0x28
add edi, 0x28
mov ecx, 0x188
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x8c]
push 0xe10
mov dword [ebp - 0x38], eax
call fcn.00455532
mov edi, eax
add esp, 4
mov dword [ebp - 0x90], edi
mov dword [ebp - 0xd4], edi
push 0xe10
push 0
push edi
call fcn.005b9220
lea eax, [edi + 4]
mov dword [edi], vtable.PatchSolution3.0
mov dword [ebp - 0x9c], eax
mov dword [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x2f
push eax
push 4
push 3
call fcn.00456650
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4528c7
mov eax, dword [edi + 4]
test eax, eax
je 0x451e31
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00456320
add esp, 4
mov dword [edi + 4], 0
jmp 0x451e37
mov eax, dword [ebp - 0x40]
mov dword [edi + 4], eax
lea ecx, [edi + 8]
mov byte [ebp - 4], 0x32
call fcn.0044cbf0
push 0xde0
lea eax, [edi + 0x30]
mov byte [ebp - 4], 0x33
push 0
push eax
call fcn.005b9220
push 3
push 2
push dword [edi + 4]
call fcn.00456750
add esp, 0x18
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x45291e
mov byte [ebp - 4], 0x28
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x98]
mov ecx, edi
push dword [edx + 4]
mov eax, dword [edi]
call dword [eax]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
push dword [ecx + 4]
mov ecx, eax
call edx
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x20]
mov eax, dword [ecx]
push dword [edx + 4]
call dword [eax]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x451edf
push str.___PatchSolution1_......_Omitted
call fcn.005bfa89
mov eax, dword [edi]
add esp, 4
mov ecx, edi
push 1
call dword [eax + 0x10]
xor edi, edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x8c]
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x451f13
push str.___PatchSolution2_......_Omitted
call fcn.005bfa89
mov eax, dword [edi]
add esp, 4
mov ecx, edi
push 1
call dword [eax + 0x10]
xor eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x38], eax
mov edi, dword [ebp - 0x90]
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x451f47
push str.___PatchSolution3_......_Omitted
call fcn.005bfa89
mov eax, dword [edi]
add esp, 4
mov ecx, edi
push 1
call dword [eax + 0x10]
xor eax, eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xb
jmp 0x451fb5
push str.___PatchSolution1_......_Omitted
call fcn.005bfa89
push str.___PatchSolution2_......_Omitted
call fcn.005bfa89
push str.___PatchSolution3_......_Omitted
call fcn.005bfa89
add esp, 0xc
test esi, esi
jne 0x451fc9
lea ecx, [ebp - 0x18]
call fcn.00452bb0
lea ecx, [ebp - 0x1c]
call fcn.00452d50
mov edi, dword [ebp - 0x98]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x90]
test edi, edi
jne 0x452003
test eax, eax
jne 0x452003
test ecx, ecx
jne 0x452003
lea ecx, [ebp - 0x20]
call fcn.00452bb0
lea ecx, [ebp - 0x28]
call fcn.00452d50
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x90]
test esi, esi
jne 0x4521aa
test edi, edi
jne 0x4521aa
test eax, eax
jne 0x4521aa
test ecx, ecx
jne 0x4521aa
push str.Cannot_find_Navicat_official_RSA_public_key.
lea ecx, [ebp - 0xec]
call fcn.0044bc50
push str._tmain.cpp
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x37
call fcn.0044bc50
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 0x38
push eax
lea ecx, [ebp - 0x150]
mov dword [ebp - method.Exception.virtual_0], vtable.Exception.0
call fcn.0044bca0
lea eax, [ebp - 0xec]
mov dword [ebp - 0x138], 0x147
push eax
lea ecx, [ebp - 0x134]
call fcn.0044bca0
push 0x3f
xor eax, eax
mov dword [ebp - 0xc0], edi
push str.Are_you_sure_your_Navicat_has_not_been_patched_modified_before_
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
call fcn.0044bfb0
push dword [ebp - 0xd4]
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x11c], edi
push eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x118], edi
push eax
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x114], edi
call fcn.00453a10
push fcn.0044bbf0
push 1
push 0x18
lea eax, [ebp - 0xd0]
push eax
call fcn.0045582d
lea ecx, [ebp - 0x154]
call fcn.004514c0
lea ecx, [ebp - 0x154]
call fcn.0044b7f0
lea ecx, [ebp - 0xb8]
call fcn.0044bbf0
lea ecx, [ebp - 0xec]
call fcn.0044bbf0
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x452135
mov ecx, dword [eax]
push 1
mov edx, dword [ecx + 0x10]
mov ecx, eax
call edx
test edi, edi
je 0x452142
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x10]
test esi, esi
je 0x45214f
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x10]
lea ecx, [ebp - 0x20]
call fcn.00452b20
lea ecx, [ebp - 0x28]
call fcn.00452ce0
lea ecx, [ebp - 0x18]
call fcn.00452b20
lea ecx, [ebp - 0x1c]
call fcn.00452ce0
mov esi, dword [ebp - 0x94]
mov byte [ebp - 4], 2
test esi, esi
je 0x451cd9
mov byte [ebp - 4], 0x39
mov eax, dword [esi]
test eax, eax
je 0x45219a
push eax
call fcn.0050d240
add esp, 4
mov dword [esi], 0
push 4
push esi
call fcn.004557fc
add esp, 8
jmp 0x451cd9
cmp dword [ebp + 8], 3
mov byte [ebp - 4], 0x3a
jne 0x4521bf
mov edx, dword [ebp - 0xa0]
mov edx, dword [edx + 8]
jmp 0x4521c1
xor edx, edx
push ecx
mov ecx, dword [ebp - 0x94]
push eax
push edi
push esi
call fcn.00450ed0
add esp, 0x10
mov dword [ebp - 4], 0xb
mov byte [ebp - 4], 0x3c
test esi, esi
je 0x4521fc
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x94]
call dword [eax + 0xc]
push 0x874910
call fcn.005bfa89
add esp, 4
test edi, edi
je 0x45221a
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x94]
call dword [eax + 0xc]
push 0x874910
call fcn.005bfa89
add esp, 4
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x452240
mov ecx, dword [eax]
push dword [ebp - 0x94]
mov edx, dword [ecx + 0xc]
mov ecx, eax
call edx
push 0x874910
call fcn.005bfa89
add esp, 4
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x452266
mov ecx, dword [eax]
push dword [ebp - 0x94]
mov edx, dword [ecx + 0xc]
mov ecx, eax
call edx
push 0x874910
call fcn.005bfa89
add esp, 4
push str.___Patch_has_been_done_successfully.
mov dword [ebp - 4], 0xb
call fcn.005bfa89
push str.___Have_fun_and_enjoy
call fcn.005bfa89
mov eax, dword [ebp - 0x90]
add esp, 8
test eax, eax
je 0x452299
mov ecx, dword [eax]
push 1
mov edx, dword [ecx + 0x10]
mov ecx, eax
call edx
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x4522ae
mov ecx, dword [eax]
push 1
mov edx, dword [ecx + 0x10]
mov ecx, eax
call edx
test edi, edi
je 0x4522bb
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x10]
test esi, esi
je 0x4522c8
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x10]
lea ecx, [ebp - 0x20]
call fcn.00452b20
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4522fa
mov byte [ebp - 4], 0x3e
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4522ef
push eax
call dword [0x875ac8]
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.004557fc
add esp, 8
lea ecx, [ebp - 0x18]
call fcn.00452b20
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x45232c
mov byte [ebp - 4], 0x3f
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x452321
push eax
call dword [0x875ac8]
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.004557fc
add esp, 8
mov esi, dword [ebp - 0x94]
mov byte [ebp - 4], 2
test esi, esi
je 0x45235e
mov byte [ebp - 4], 0x40
mov eax, dword [esi]
test eax, eax
je 0x452353
push eax
call fcn.0050d240
add esp, 4
mov dword [esi], 0
push 4
push esi
call fcn.004557fc
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.0044bbf0
lea ecx, [ebp - 0x70]
call fcn.0044bbf0
lea ecx, [ebp - 0x58]
call fcn.0044bbf0
xor eax, eax
jmp 0x452784
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00455521
mov esp, ebp
pop ebp
ret
push 0x874ac4
lea ecx, [ebp - 0xec]
call fcn.0044bc50
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push str._tmain.cpp
lea ecx, [ebp - 0xb8]
mov esi, eax
call fcn.0044bc50
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0xe
push eax
push esi
push 0x7e
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x210]
call fcn.0044c180
push 0x877ef4
lea eax, [ebp - 0x210]
push eax
call fcn.005b916a
push str.Path_does_not_point_to_a_directory.
lea ecx, [ebp - 0xec]
call fcn.0044bc50
push str._tmain.cpp
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xf
call fcn.0044bc50
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0x10
push eax
push 0x82
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.0044c5f0
push 0x877f88
lea eax, [ebp - 0x1b0]
push eax
call fcn.005b916a
push str.RSA_new_failed.
lea ecx, [ebp - 0xec]
call fcn.0044bc50
mov byte [ebp - 4], 0x14
call fcn.0050c840
push str.RSACipher.hpp
lea ecx, [ebp - 0xb8]
mov esi, eax
call fcn.0044bc50
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0x15
push eax
push esi
push 0x99
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x270]
call fcn.00450d80
push 0x877fc0
lea eax, [ebp - 0x270]
push eax
call fcn.005b916a
call fcn.005bbda9
call fcn.005bbda9
call fcn.005bbda9
call fcn.005bbda9
push str.cs_open_failed.
lea ecx, [ebp - 0xec]
call fcn.0044bc50
push str.CapstoneDisassembler.cpp
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x30
call fcn.0044bc50
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0x31
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0xb8]
push 0x62
push eax
lea ecx, [ebp - 0x2d0]
call fcn.0044c8c0
push 0x877f54
lea eax, [ebp - 0x2d0]
push eax
call fcn.005b916a
push str.cs_open_failed.
lea ecx, [ebp - 0xd0]
call fcn.0044bc50
push str.CapstoneDisassembler.cpp
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 0x34
call fcn.0044bc50
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0x35
push eax
push dword [ebp - 0x9c]
lea eax, [ebp - 0x16c]
push 0x70
push eax
lea ecx, [ebp - 0x330]
call fcn.0044c8c0
push 0x877f54
lea eax, [ebp - 0x330]
push eax
call fcn.005b916a
call fcn.005bbda9
call fcn.005bbda9
call fcn.005bbda9
call fcn.005bbda9
call fcn.005bbda9
call fcn.005bbda9
int3