Function at 0x41312f
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file
Query or enumerate registry value
Set file attributes

Disassembly:
mov eax, 0x428ac7
call fcn.004154c8
mov eax, 0x1b888
call fcn.004154f0
cmp dword [ebp + 0xc], 0
je 0x413d4f
push 0x1000
lea eax, [ebp - 0x15]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x588c]
push eax
lea eax, [ebp - 0xf894]
push eax
push dword [ebp + 0xc]
call fcn.00411d34
mov ecx, eax
mov dword [ebp + 0xc], ecx
test ecx, ecx
je 0x413d4f
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 6
lea eax, [ebp - 0x588c]
lea esi, [ebp - 0x1b894]
pop edi
push 0x1000
push esi
push eax
call fcn.00411ada
add esi, 0x2000
sub edi, 1
jne 0x4130e4
mov esi, edi
push dword [esi*4 + 0x434624]
lea eax, [ebp - 0xf894]
push eax
call fcn.00407ded
test eax, eax
je 0x41311f
inc esi
cmp esi, 0xe
jb 0x4130fd
jmp case.default.0x413128
cmp esi, 0xd
ja case.default.0x413128
jmp dword [esi*4 + 0x413d5d]
cmp ebx, 2
jne case.default.0x413128
mov edi, 0x800
lea eax, [ebp - 0x788c]
push edi
push eax
call fcn.0041114d
push edi
lea eax, [ebp - 0xd894]
push eax
lea eax, [ebp - 0x588c]
push eax
lea eax, [ebp - 0x788c]
push eax
call fcn.00403806
lea ecx, [ebp - 0x8894]
call fcn.00402abe
lea eax, [ebp - 0xd894]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x8894]
mov dword [ebp - 4], ebx
call fcn.00402bf8
lea ecx, [ebp - 0x388c]
call fcn.00401b85
jmp 0x4132d1
push ebx
lea eax, [ebp - 0x388c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp - 0x2880], bl
je 0x413251
push edi
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x788c]
push eax
call fcn.004034e3
push edi
lea eax, [ebp - 0x1044]
push eax
call fcn.004031e2
lea eax, [ebp - 0x788c]
push eax
call fcn.0041a063
mov esi, eax
pop ecx
cmp esi, 4
jb 0x4131f7
lea eax, [ebp - 0x1044]
push eax
call fcn.0041a063
pop ecx
cmp esi, eax
ja 0x41320b
lea eax, [ebp - 0x588c]
push eax
call fcn.004037c7
test al, al
jne 0x4132ec
lea eax, [ebp - 0x388c]
push eax
call fcn.0041a063
xor ecx, ecx
push 0x1e
push ebx
mov word [ebp + eax*2 - 0x388a], cx
lea eax, [ebp - 0x44]
push eax
call fcn.004164c0
add esp, 0x10
mov dword [ebp - 0x40], 3
push 0x14
pop eax
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x388c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea eax, [ebp - 0x388c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4132d1
lea eax, [ebp - 0x388c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4132d1
mov esi, ebx
push ebx
jmp 0x41327b
inc esi
push esi
lea eax, [ebp - 0x388c]
push eax
push str._s._d.tmp
lea eax, [ebp - 0x1044]
push edi
push eax
call fcn.00402aa2
add esp, 0x14
lea eax, [ebp - 0x1044]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413279
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x388c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4132d1
push 4
push ebx
lea eax, [ebp - 0x1044]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
lea eax, [ebp - 0x388c]
push eax
lea ecx, [ebp - 0x8894]
call fcn.00402b4b
test al, al
jne 0x413197
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8894]
call fcn.00402ad4
jmp case.default.0x413128
test ebx, ebx
jne case.default.0x413128
mov eax, dword [0x46721c]
test eax, eax
sete bl
test eax, eax
je 0x413328
push str._br_
push eax
call fcn.0041db27
mov eax, dword [0x46721c]
pop ecx
pop ecx
mov bh, byte [ebp - 0xd]
test bh, bh
je 0x413337
lea esi, [ebp - 0x588c]
jmp 0x413347
lea eax, [ebp + 0xc]
push eax
call fcn.00411eae
mov esi, eax
mov eax, dword [0x46721c]
test bl, bl
jne 0x413354
push eax
call fcn.0041a063
pop ecx
mov edi, eax
push esi
call fcn.0041a063
add eax, edi
lea eax, [eax*2 + 0xa]
push eax
push dword [0x46721c]
call fcn.0041c556
add esp, 0xc
test eax, eax
je 0x41338d
mov dword [0x46721c], eax
test bl, bl
je 0x413384
xor ecx, ecx
mov word [eax], cx
push esi
push eax
call fcn.0041db27
pop ecx
pop ecx
test bh, bh
jne case.default.0x413128
push esi
call fcn.0041a2d9
pop ecx
jmp case.default.0x413128
test ebx, ebx
jne case.default.0x413128
lea eax, [ebp - 0x588c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp case.default.0x413128
test ebx, ebx
jne case.default.0x413128
cmp word [0x458d8a], di
jne case.default.0x413128
xor eax, eax
lea edi, [ebp - 0x588c]
push 0x22
mov word [ebp - 0x1044], ax
pop eax
cmp word [ebp - 0x588c], ax
jne 0x4133f4
lea edi, [ebp - 0x588a]
push edi
call fcn.0041a063
mov esi, 0x800
pop ecx
cmp eax, esi
jae case.default.0x413128
movzx eax, word [edi]
push 0x5c
pop ecx
cmp eax, 0x2e
jne 0x41343a
cmp word [edi + 2], cx
jne 0x413443
add edi, 4
xor ebx, ebx
cmp word [edi], bx
je case.default.0x413128
push esi
push edi
lea eax, [ebp - 0x1044]
push eax
call fcn.004069cc
jmp 0x413532
cmp ax, cx
je 0x413522
test ax, ax
je 0x413453
cmp word [edi + 2], 0x3a
je 0x413522
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4134b8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1000
push eax
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, 0x7ff
shr eax, 1
cmp eax, ecx
jb 0x4134ae
mov eax, ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x1044], cx
cmp word [ebp - 0x1044], bx
je 0x4134ed
lea eax, [ebp - 0x1044]
push eax
call fcn.0041a063
pop ecx
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x1046], cx
je 0x4134ed
push esi
push 0x42b09c
lea eax, [ebp - 0x1044]
push eax
call fcn.004069a4
push edi
call fcn.0041a063
mov esi, eax
lea eax, [ebp - 0x1044]
push eax
call fcn.0041a063
add esi, eax
pop ecx
cmp esi, 0x7ff
mov esi, 0x800
pop ecx
jae 0x413532
push esi
push edi
lea eax, [ebp - 0x1044]
push eax
call fcn.004069a4
jmp 0x413532
push esi
push edi
lea eax, [ebp - 0x1044]
push eax
call fcn.004069cc
xor ebx, ebx
push 0x22
pop eax
push eax
lea eax, [ebp - 0x1044]
push eax
call fcn.0041719b
pop ecx
pop ecx
test eax, eax
je 0x413553
cmp word [eax + 2], bx
jne 0x413553
xor ecx, ecx
mov word [eax], cx
push esi
lea eax, [ebp - 0x1044]
mov edi, 0x458d8a
push eax
push edi
call fcn.004069cc
push esi
lea eax, [ebp - 0x1044]
push eax
call fcn.00411bd5
push 0x66
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x1044]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
push ebx
push 0x143
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x1044]
push eax
push edi
call fcn.0041c3bc
pop ecx
pop ecx
test eax, eax
je case.default.0x413128
lea eax, [ebp - 0x1044]
push eax
push ebx
push 0x143
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.default.0x413128
cmp dword [0x458d84], 1
je case.default.0x413128
movzx eax, word [ebp - 0x588c]
push eax
call fcn.00406802
test al, al
je 0x4135fe
movzx eax, word [ebp - 0x588c]
sub eax, 0x30
mov dword [0x458d84], eax
jmp case.default.0x413128
mov dword [0x458d84], 2
jmp case.default.0x413128
movzx eax, word [ebp - 0x588c]
xor ecx, ecx
sub eax, ecx
je 0x413647
sub eax, 0x30
je 0x413636
sub eax, 1
je 0x413647
sub eax, 1
jne case.default.0x413128
mov byte [0x44f957], 1
jmp 0x41363c
mov byte [0x44f957], cl
mov byte [0x44f960], cl
jmp case.default.0x413128
mov byte [0x44f957], cl
mov byte [0x44f960], 1
jmp case.default.0x413128
movzx eax, word [ebp - 0x588c]
push eax
call fcn.0041de8a
pop ecx
cmp eax, 0x46
je 0x41368e
cmp eax, 0x55
je 0x413682
xor eax, eax
mov byte [0x44f961], al
mov byte [0x44f962], al
jmp case.default.0x413128
mov byte [0x44f962], 1
jmp case.default.0x413128
mov byte [0x44f961], 1
jmp case.default.0x413128
xor edi, edi
mov byte [0x45ae07], 1
inc edi
lea eax, [ebp - 0x588c]
cmp word [ebp - 0x588c], 0x3c
mov ebx, esi
mov dword [ebp - 0x14], eax
jne 0x413767
lea eax, [ebp - 0x588a]
push 0x3e
push eax
call fcn.004169d0
pop ecx
pop ecx
test eax, eax
je 0x413764
lea ecx, [eax + 2]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x10c]
push 0x64
push eax
lea eax, [ebp - 0x588a]
push eax
call fcn.00411ada
mov dword [ebp - 0x20], eax
test eax, eax
je 0x413764
mov esi, eax
cmp word [ebp - 0x10c], 0
je 0x413764
push 0x42b0a0
lea eax, [ebp - 0x10c]
push eax
call fcn.00407ded
neg eax
push 0x42b0ac
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00407ded
test eax, eax
jne 0x413737
push 3
pop edi
push 0x42b0b4
lea eax, [ebp - 0x10c]
push eax
call fcn.00407ded
test eax, eax
jne 0x41374f
push 6
pop edi
push 0x64
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.00411ada
mov esi, eax
test esi, esi
jne 0x4136fe
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 0x10], 5
jne 0x41377a
cmp ebx, 9
jne case.default.0x413128
push 1
jmp 0x413790
cmp dword [ebp + 0x10], 4
jne case.default.0x413128
cmp ebx, 6
jne case.default.0x413128
xor ecx, ecx
push ecx
push edi
push eax
push dword [ebp + 8]
call fcn.004140df
jmp case.default.0x413128
mov byte [0x46722c], 1
cmp word [ebp - 0x588c], di
je case.default.0x413128
lea eax, [ebp - 0x588c]
push eax
call fcn.00407dd9
mov dword [0x434608], eax
jmp case.default.0x413128
cmp ebx, 1
jne 0x41394b
lea eax, [ebp - 0x788c]
mov edi, 0x800
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x788c]
push eax
call fcn.004031e2
xor ebx, ebx
mov esi, ebx
push ebx
jmp 0x4137fb
inc esi
push esi
push dword [0x434604]
lea eax, [ebp - 0x788c]
push eax
push str._s_s_u
push edi
push 0x457d82
call fcn.00402aa2
add esp, 0x18
push 0x457d82
call fcn.00402780
test al, al
jne 0x4137f9
push 0x457d82
push 0x66
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp word [ebp - 0x588c], bx
je case.default.0x413128
cmp byte [0x45ae05], bl
jne case.default.0x413128
xor eax, eax
mov word [ebp - 0x444], ax
lea eax, [ebp - 0x588c]
push 0x2c
push eax
call fcn.004169d0
pop ecx
pop ecx
test eax, eax
jne 0x4138bd
mov ax, word [ebp - 0x588c]
mov esi, ebx
test ax, ax
je 0x4138bd
movzx ecx, ax
cmp cx, 0x40
je 0x413898
movzx eax, word [ebp + esi*2 - 0x588a]
inc esi
mov ecx, eax
test ax, ax
jne 0x413880
jmp 0x4138bd
push 0x200
lea eax, [ebp - 0x588a]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.004069cc
xor eax, eax
mov word [ebp + esi*2 - 0x588c], ax
cmp word [ebp - 0x444], bx
jne 0x4138f6
push 0x1000
lea eax, [ebp - 0x1b894]
push eax
lea eax, [ebp - 0x588c]
push eax
call fcn.004069cc
push 0x200
lea eax, [ebp - 0x19894]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.004069cc
lea eax, [ebp - 0x588c]
push eax
call fcn.00411914
xor eax, eax
mov word [ebp - 0x488c], ax
lea eax, [ebp - 0x444]
push 0x24
push eax
lea eax, [ebp - 0x588c]
push eax
push dword [ebp + 8]
call fcn.004112e4
cmp eax, 6
je case.default.0x413128
push 1
push dword [ebp + 8]
xor eax, eax
mov byte [0x44f954], 1
mov word [0x457d82], ax
call dword [sym.imp.USER32.dll_EndDialog]
jmp case.default.0x413128
cmp ebx, 7
jne case.default.0x413128
cmp dword [0x458d84], edi
jne 0x413966
mov dword [0x458d84], 2
mov byte [0x457d80], 1
jmp case.default.0x413128
cmp ebx, 3
jne 0x4139a0
cmp word [ebp - 0x588c], di
je 0x413992
lea eax, [ebp - 0x588c]
push eax
call fcn.0041dac6
pop ecx
mov dword [0x467224], eax
lea eax, [ebp + 0xc]
push eax
call fcn.00411eae
mov dword [0x467220], eax
mov byte [0x45ae06], 1
jmp case.default.0x413128
cmp ebx, 6
jne case.default.0x413128
xor eax, eax
mov word [ebp - 0x2844], ax
movzx eax, word [ebp - 0x1b894]
push eax
call fcn.0041de8a
pop ecx
cmp eax, 0x50
je 0x4139f2
cmp eax, 0x54
je 0x4139e4
mov dword [ebp - 0x14], 0x10
mov eax, 0x45596a
jmp 0x4139fe
mov dword [ebp - 0x14], 7
mov eax, 0x45396a
jmp 0x4139fe
mov dword [ebp - 0x14], 2
mov eax, 0x45496a
mov esi, 0x800
push esi
push eax
lea eax, [ebp - 0x2844]
push eax
call fcn.004069cc
xor eax, eax
mov word [ebp - 0x9894], ax
mov word [ebp - 0x1844], ax
lea eax, [ebp - 0x19894]
push esi
push eax
lea eax, [ebp - 0x688c]
push eax
call fcn.004069cc
push 0x22
pop ebx
cmp word [ebp - 0x688c], bx
jne 0x413a8b
push esi
lea eax, [ebp - 0x19892]
push eax
lea eax, [ebp - 0x688c]
push eax
call fcn.004069cc
lea eax, [ebp - 0x688a]
push ebx
push eax
call fcn.004169d0
pop ecx
pop ecx
test eax, eax
je 0x413b68
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x400
push eax
lea eax, [ebp - 0x1844]
push eax
call fcn.004069cc
jmp 0x413b68
lea eax, [ebp - 0x688c]
push eax
call fcn.00402780
test al, al
jne 0x413b68
mov ax, word [ebp - 0x688c]
lea esi, [ebp - 0x688c]
mov ebx, edi
test ax, ax
je 0x413b63
movzx edi, ax
push 0x20
pop eax
cmp di, ax
je 0x413aca
push 0x2f
pop eax
cmp di, ax
jne 0x413b42
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x688c]
push eax
call fcn.00402780
test al, al
je 0x413b3f
lea eax, [ebp - 0x688c]
push eax
call fcn.00402792
push eax
call fcn.004027ed
test al, al
jne 0x413b3f
push 0x2f
pop ecx
lea eax, [esi + 2]
mov ebx, esi
cmp di, cx
jne 0x413b16
mov word [ebp - 0x1844], cx
mov edx, 0x3ff
lea ecx, [ebp - 0x1842]
jmp 0x413b32
push 0x20
mov esi, eax
pop eax
jmp 0x413b20
add esi, 2
cmp word [esi], ax
je 0x413b1d
lea ecx, [ebp - 0x1844]
mov eax, esi
mov edx, 0x400
push edx
push eax
push ecx
call fcn.004069cc
mov word [ebx], di
jmp 0x413b42
mov word [esi], di
add esi, 2
movzx eax, word [esi]
mov edi, eax
test ax, ax
jne 0x413aba
mov esi, 0x800
test ebx, ebx
je 0x413b68
xor eax, eax
mov word [ebx], ax
jmp 0x413b68
mov esi, 0x800
cmp word [ebp - 0x11894], 0
je 0x413b86
push esi
lea eax, [ebp - 0x9894]
push eax
lea eax, [ebp - 0x11894]
push eax
call fcn.00403216
push esi
lea eax, [ebp - 0xb894]
push eax
lea eax, [ebp - 0x688c]
push eax
call fcn.00403216
cmp word [ebp - 0x2844], 0
jne 0x413bb3
push dword [ebp - 0x14]
lea eax, [ebp - 0x2844]
push eax
call fcn.00411e45
push esi
lea eax, [ebp - 0x2844]
push eax
call fcn.004031e2
cmp word [ebp - 0x17894], 0
je 0x413beb
push esi
lea eax, [ebp - 0x17894]
push eax
lea eax, [ebp - 0x2844]
push eax
call fcn.004069a4
push esi
lea eax, [ebp - 0x2844]
push eax
call fcn.004031e2
push esi
lea eax, [ebp - 0x2844]
push eax
lea eax, [ebp - 0xc894]
push eax
call fcn.004069cc
cmp word [ebp - 0x13894], 0
lea eax, [ebp - 0x13894]
jne 0x413c15
lea eax, [ebp - 0x19894]
push esi
push eax
call fcn.004038fa
push eax
lea eax, [ebp - 0x2844]
push eax
call fcn.004069a4
lea eax, [ebp - 0x2844]
push eax
call fcn.0040347f
test eax, eax
je 0x413c48
push str..lnk
push eax
call fcn.00407ded
test eax, eax
je 0x413c5a
push esi
push str..lnk
lea eax, [ebp - 0x2844]
push eax
call fcn.004069a4
xor ebx, ebx
lea eax, [ebp - 0x2844]
push ebx
push 1
push eax
call fcn.00402651
push esi
lea eax, [ebp - 0xb894]
push eax
lea eax, [ebp - 0xa894]
push eax
call fcn.004069cc
lea eax, [ebp - 0xa894]
push eax
call fcn.00403944
movzx esi, word [ebp - 0x9894]
lea eax, [ebp - 0x9894]
movzx edx, word [ebp - 0x1844]
lea edi, [ebp - 0xa894]
movzx ecx, word [ebp - 0x15894]
neg esi
sbb esi, esi
and esi, eax
neg edx
lea eax, [ebp - 0x1844]
sbb edx, edx
and edx, eax
neg ecx
lea eax, [ebp - 0x15894]
sbb ecx, ecx
and ecx, eax
movzx eax, word [ebp - 0xa894]
push edx
neg eax
push esi
sbb eax, eax
push ecx
and eax, edi
push eax
lea eax, [ebp - 0x2844]
push eax
lea eax, [ebp - 0xb894]
push eax
push ebx
call fcn.00410f8a
cmp word [ebp - 0xc894], bx
je case.default.0x413128
push ebx
lea eax, [ebp - 0xc894]
push eax
push 5
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp case.default.0x413128
cmp ebx, 7
jne case.default.0x413128
mov byte [0x458d88], 1
push 0x1000
lea eax, [ebp - 0x15]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x588c]
push eax
lea eax, [ebp - 0xf894]
push eax
push dword [ebp + 0xc]
call fcn.00411d34
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4130d5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc