Function at 0x4274a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f915
mov eax, dword fs:[0]
push eax
sub esp, 0xc24
mov eax, dword [0x580280]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc30], ecx
push str.SwapDrag
mov ecx, dword [ebp - 0xc30]
call fcn.00427f20
mov dword [ebp - 0x278], eax
push str.SwapRefer
mov ecx, dword [ebp - 0xc30]
call fcn.00427f20
mov dword [ebp - 0x18], eax
push str.OrgExe
mov ecx, dword [ebp - 0xc30]
call fcn.00427f20
mov dword [ebp - 0x2bc], eax
push str.DestopShortCutName
mov ecx, dword [ebp - 0xc30]
call fcn.00427f20
mov dword [ebp - 0x10], eax
push str.AppDataName
mov ecx, dword [ebp - 0xc30]
call fcn.00427f20
mov dword [ebp - 0x274], eax
push str.RegOCXName
mov ecx, dword [ebp - 0xc30]
call fcn.00427f20
mov dword [ebp - 0x14], eax
push str.RandFileName
mov ecx, dword [ebp - 0xc30]
call fcn.00427f20
mov dword [ebp - 0x3c], eax
push str.ReferOffset
mov ecx, dword [ebp - 0xc30]
call fcn.00427f20
mov dword [ebp - 0x268], eax
push str.TaskBarName
mov ecx, dword [ebp - 0xc30]
call fcn.00427f20
mov dword [ebp - 0x298], eax
push str.QuickLauchName
mov ecx, dword [ebp - 0xc30]
call fcn.00427f20
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x270], 0
cmp dword [ebp - 0x278], 0
je 0x4275d6
push 0x54d5e0
mov eax, dword [ebp - 0x278]
push eax
call fcn.0048add6
add esp, 8
test eax, eax
jne 0x4275d6
mov dword [ebp - 0x270], 1
mov dword [ebp - 0x26c], 0
cmp dword [ebp - 0x268], 0
je 0x42761a
mov ecx, dword [ebp - 0x268]
push ecx
call fcn.00487d3d
add esp, 4
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jl 0x427610
cmp dword [ebp - 0x26c], 0xa
jle 0x42761a
mov dword [ebp - 0x26c], 0
push 0x54d5ec
lea ecx, [ebp - 0x2b8]
call fcn.00401280
mov dword [ebp - 4], 0
cmp dword [ebp - 0x2bc], 0
je 0x42764c
mov edx, dword [ebp - 0x2bc]
push edx
lea ecx, [ebp - 0x2b8]
call fcn.0040ce50
xor eax, eax
mov word [ebp - 0x264], ax
push 0x206
push 0
lea ecx, [ebp - 0x262]
push ecx
call fcn.00486c20
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x264]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.004058c0
mov ecx, eax
call fcn.00447800
push eax
lea ecx, [ebp - 0x294]
call fcn.00401280
mov byte [ebp - 4], 1
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401280
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.0041f510
test eax, eax
jne 0x4276fb
mov dword [ebp - 0xc28], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00406040
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x294]
call fcn.00406040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b8]
call fcn.00406040
mov eax, dword [ebp - 0xc28]
jmp 0x427e7b
push 0x54d5f0
lea ecx, [ebp - 0x38]
call fcn.004078c0
cmp dword [ebp - 0x274], 0
je 0x42772d
mov ecx, dword [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x38]
call fcn.004078c0
push 0x54d5f4
lea ecx, [ebp - 0x38]
call fcn.004078c0
lea ecx, [ebp - 0x38]
call fcn.004012c0
push eax
call fcn.0044a5b0
add esp, 4
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x58]
call fcn.00407860
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x58]
call fcn.00413c20
lea ecx, [ebp - 0x58]
call fcn.004012c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427e32
cmp dword [ebp - 0x14], 0
je 0x427831
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x348]
call fcn.00407860
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x348]
call fcn.004078c0
push 0x54d5f8
lea ecx, [ebp - 0x32c]
call fcn.00401280
mov byte [ebp - 4], 5
push 0x54d61c
lea ecx, [ebp - 0x32c]
call fcn.004078c0
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x32c]
call fcn.00413c20
push 0x54d620
lea ecx, [ebp - 0x32c]
call fcn.004078c0
lea ecx, [ebp - 0x32c]
call fcn.004012c0
push eax
call fcn.0044d180
add esp, 4
lea ecx, [ebp - 0x32c]
call fcn.004012c0
push eax
push 0x54d624
call fcn.0044eab0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x32c]
call fcn.00406040
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x348]
call fcn.00406040
lea ecx, [ebp - 0x2f4]
call fcn.0042aa90
mov byte [ebp - 4], 6
cmp dword [ebp - 0x298], 0
je 0x427864
mov ecx, dword [ebp - 0x298]
push ecx
lea ecx, [ebp - 0x58]
call fcn.004012c0
push eax
lea ecx, [ebp - 0x2f4]
call fcn.0042bd80
cmp dword [ebp - 0x29c], 0
je 0x427888
mov edx, dword [ebp - 0x29c]
push edx
lea ecx, [ebp - 0x58]
call fcn.004012c0
push eax
lea ecx, [ebp - 0x2f4]
call fcn.0042be50
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x310]
call fcn.00401280
mov byte [ebp - 4], 7
cmp dword [ebp - 0x10], 0
je 0x427e14
mov dword [ebp - 0x34c], 0
lea ecx, [ebp - 0x351]
call fcn.00423160
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x351]
call fcn.004241c0
mov dword [ebp - 0x350], eax
cmp dword [ebp - 0x350], 0
jne 0x4278eb
mov dword [ebp - 0x34c], 1
jmp 0x4279fc
cmp dword [ebp - 0x350], 1
jne 0x4279fc
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x3a8]
push eax
lea ecx, [ebp - 0x351]
call fcn.00424910
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3a8]
push ecx
lea edx, [ebp - 0x370]
push edx
call fcn.0044ee80
add esp, 8
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x38c]
push ecx
call fcn.0044ee80
add esp, 8
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x370]
push edx
call fcn.0044f480
add esp, 4
lea eax, [ebp - 0x38c]
push eax
call fcn.0044f480
add esp, 4
lea ecx, [ebp - 0x38c]
push ecx
lea edx, [ebp - 0x370]
push edx
call fcn.00427fb0
add esp, 8
movzx eax, al
test eax, eax
je 0x4279ad
lea ecx, [ebp - 0x38c]
call fcn.00405ff0
push eax
lea ecx, [ebp - 0x3a8]
call fcn.004012c0
push eax
push str.ExePath_Diff__s__s
call fcn.0044eab0
add esp, 0xc
mov dword [ebp - 0x34c], 1
push 0x54d654
mov ecx, dword [ebp - 0x274]
push ecx
call fcn.0048add6
add esp, 8
test eax, eax
jne 0x4279cf
mov dword [ebp - 0x34c], 1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x38c]
call fcn.00405fb0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x370]
call fcn.00405fb0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3a8]
call fcn.00406040
cmp dword [ebp - 0x34c], 0
je 0x427c74
xor edx, edx
mov word [ebp - 0x5b4], dx
push 0x206
push 0
lea eax, [ebp - 0x5b2]
push eax
call fcn.00486c20
add esp, 0xc
push 0
push 0x19
lea ecx, [ebp - 0x5b4]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x427c74
lea edx, [ebp - 0x5b4]
push edx
lea ecx, [ebp - 0x5d0]
call fcn.00401280
mov byte [ebp - 4], 0xc
push 0x54d664
lea ecx, [ebp - 0x5d0]
call fcn.004078c0
cmp dword [ebp - 0x3c], 0
je 0x427abf
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x5ec]
push edx
call fcn.00451d50
add esp, 0xc
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x5ec]
push eax
lea ecx, [ebp - 0x5d0]
call fcn.00413c20
lea ecx, [ebp - 0x5ec]
push ecx
lea ecx, [ebp - 0x310]
call fcn.004078a0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x5ec]
call fcn.00406040
jmp 0x427ace
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x5d0]
call fcn.004078c0
push 0x54d668
lea ecx, [ebp - 0x5d0]
call fcn.004078c0
push str.alimama
mov eax, dword [ebp - 0x274]
push eax
call fcn.0048add6
add esp, 8
test eax, eax
jne 0x427c3b
cmp dword [ebp - 0x3c], 0
je 0x427c39
lea ecx, [ebp - 0x5b4]
push ecx
lea ecx, [ebp - 0x608]
call fcn.00401280
mov byte [ebp - 4], 0xe
push 0x54d684
lea ecx, [ebp - 0x608]
call fcn.004078c0
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x608]
call fcn.004078c0
push 0x54d688
lea ecx, [ebp - 0x608]
call fcn.004078c0
lea ecx, [ebp - 0x608]
call fcn.004012c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x427c0a
push 0
push 0x10
lea eax, [ebp - 0x5b4]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x5b4]
push ecx
lea ecx, [ebp - 0x608]
call fcn.0040ce50
lea edx, [ebp - 0x5b4]
push edx
lea ecx, [ebp - 0x5d0]
call fcn.0040ce50
push 0x54d694
lea ecx, [ebp - 0x608]
call fcn.004078c0
push 0x54d698
lea ecx, [ebp - 0x5d0]
call fcn.004078c0
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x608]
call fcn.004078c0
lea ecx, [ebp - 0x310]
push ecx
lea ecx, [ebp - 0x5d0]
call fcn.00413c20
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x310]
call fcn.0040ce50
push 0x54d69c
lea ecx, [ebp - 0x608]
call fcn.004078c0
push 0x54d6a8
lea ecx, [ebp - 0x5d0]
call fcn.004078c0
lea ecx, [ebp - 0x5d0]
call fcn.004012c0
push eax
lea ecx, [ebp - 0x608]
call fcn.004012c0
push eax
call fcn.0048ad17
add esp, 8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x608]
call fcn.00406040
jmp 0x427c65
push 0x54d6b4
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x58]
call fcn.004012c0
push eax
lea ecx, [ebp - 0x5d0]
call fcn.004012c0
push eax
call fcn.0044e610
add esp, 0x1c
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5d0]
call fcn.00406040
cmp dword [ebp - 0x270], 0
je 0x427e05
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00476c00
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x18], 0
je 0x427d93
mov eax, dword [ebp - 0x18]
push eax
call fcn.00476980
add esp, 4
test eax, eax
je 0x427d43
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00476a00
add esp, 4
test eax, eax
je 0x427cf3
mov edx, dword [ebp - 0x26c]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x310]
call fcn.004012c0
push eax
call fcn.00478030
add esp, 0xc
jmp 0x427d41
xor ecx, ecx
mov word [ebp - 0x814], cx
push 0x206
push 0
lea edx, [ebp - 0x812]
push edx
call fcn.00486c20
add esp, 0xc
push 0x104
lea eax, [ebp - 0x814]
push eax
call fcn.00476510
add esp, 8
lea ecx, [ebp - 0x814]
push ecx
lea ecx, [ebp - 0x310]
call fcn.004012c0
push eax
call fcn.00478e90
add esp, 8
jmp 0x427d91
xor edx, edx
mov word [ebp - 0xa1c], dx
push 0x206
push 0
lea eax, [ebp - 0xa1a]
push eax
call fcn.00486c20
add esp, 0xc
push 0x104
lea ecx, [ebp - 0xa1c]
push ecx
call fcn.00476510
add esp, 8
lea edx, [ebp - 0xa1c]
push edx
lea ecx, [ebp - 0x310]
call fcn.004012c0
push eax
call fcn.00478e90
add esp, 8
jmp 0x427de1
xor eax, eax
mov word [ebp - 0xc24], ax
push 0x206
push 0
lea ecx, [ebp - 0xc22]
push ecx
call fcn.00486c20
add esp, 0xc
push 0x104
lea edx, [ebp - 0xc24]
push edx
call fcn.00476510
add esp, 8
lea eax, [ebp - 0xc24]
push eax
lea ecx, [ebp - 0x310]
call fcn.004012c0
push eax
call fcn.00478e90
add esp, 8
lea ecx, [ebp - 0x310]
call fcn.004012c0
push eax
push str.strDeskName:_s
call fcn.0044eab0
add esp, 8
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x351]
call fcn.00423170
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x310]
call fcn.00406040
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2f4]
call fcn.0042aaf0
mov dword [ebp - 0xc2c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00406040
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00406040
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x294]
call fcn.00406040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b8]
call fcn.00406040
mov eax, dword [ebp - 0xc2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00486c08
mov esp, ebp
pop ebp
ret