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

Disassembly:
mov eax, 0x432b20
call fcn.0041eb78
mov eax, 0x1b888
call fcn.0041ec50
cmp dword [ebp + 0xc], 0
je 0x41d40d
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.0041b314
mov ecx, eax
mov dword [ebp + 0xc], ecx
test ecx, ecx
je 0x41d40d
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.0041af98
add esi, 0x2000
sub edi, 1
jne 0x41c7a2
mov esi, edi
push dword [esi*4 + 0x43e744]
lea eax, [ebp - 0xf894]
push eax
call fcn.00411fbb
test eax, eax
je 0x41c7dd
inc esi
cmp esi, 0xe
jb 0x41c7bb
jmp case.default.0x41c7e6
cmp esi, 0xd
ja case.default.0x41c7e6
jmp dword [esi*4 + 0x41d41b]
cmp ebx, 2
jne case.default.0x41c7e6
mov edi, 0x800
lea eax, [ebp - 0x788c]
push edi
push eax
call fcn.0041a64d
push edi
lea eax, [ebp - 0xd894]
push eax
lea eax, [ebp - 0x588c]
push eax
lea eax, [ebp - 0x788c]
push eax
call fcn.0040bdf3
lea ecx, [ebp - 0x8894]
call fcn.0040a544
lea eax, [ebp - 0xd894]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x8894]
mov dword [ebp - 4], ebx
call fcn.0040a67e
lea ecx, [ebp - 0x388c]
call fcn.00406edb
jmp 0x41c98f
push ebx
lea eax, [ebp - 0x388c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp - 0x2880], bl
je 0x41c90f
push edi
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x788c]
push eax
call fcn.0040b991
push edi
lea eax, [ebp - 0x1044]
push eax
call fcn.0040b690
lea eax, [ebp - 0x788c]
push eax
call fcn.00423e13
mov esi, eax
pop ecx
cmp esi, 4
jb 0x41c8b5
lea eax, [ebp - 0x1044]
push eax
call fcn.00423e13
pop ecx
cmp esi, eax
ja 0x41c8c9
lea eax, [ebp - 0x588c]
push eax
call fcn.0040bdb4
test al, al
jne 0x41c9aa
lea eax, [ebp - 0x388c]
push eax
call fcn.00423e13
xor ecx, ecx
push 0x1e
push ebx
mov word [ebp + eax*2 - 0x388a], cx
lea eax, [ebp - 0x44]
push eax
call fcn.0041fff0
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 0x41c98f
lea eax, [ebp - 0x388c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41c98f
mov esi, ebx
push ebx
jmp 0x41c939
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.00404092
add esp, 0x14
lea eax, [ebp - 0x1044]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41c937
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x388c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41c98f
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.0040a5d1
test al, al
jne 0x41c855
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8894]
call fcn.0040a55a
jmp case.default.0x41c7e6
test ebx, ebx
jne case.default.0x41c7e6
mov eax, dword [0x45fc94]
test eax, eax
sete bl
test eax, eax
je 0x41c9e6
push str._br_
push eax
call fcn.00427686
mov eax, dword [0x45fc94]
pop ecx
pop ecx
mov bh, byte [ebp - 0xd]
test bh, bh
je 0x41c9f5
lea esi, [ebp - 0x588c]
jmp 0x41ca05
lea eax, [ebp + 0xc]
push eax
call fcn.0041b48e
mov esi, eax
mov eax, dword [0x45fc94]
test bl, bl
jne 0x41ca12
push eax
call fcn.00423e13
pop ecx
mov edi, eax
push esi
call fcn.00423e13
add eax, edi
lea eax, [eax*2 + 0xa]
push eax
push dword [0x45fc94]
call fcn.00423e3e
add esp, 0xc
test eax, eax
je 0x41ca4b
mov dword [0x45fc94], eax
test bl, bl
je 0x41ca42
xor ecx, ecx
mov word [eax], cx
push esi
push eax
call fcn.00427686
pop ecx
pop ecx
test bh, bh
jne case.default.0x41c7e6
push esi
call fcn.00423e2e
pop ecx
jmp case.default.0x41c7e6
test ebx, ebx
jne case.default.0x41c7e6
lea eax, [ebp - 0x588c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp case.default.0x41c7e6
test ebx, ebx
jne case.default.0x41c7e6
cmp word [0x44a472], di
jne case.default.0x41c7e6
xor eax, eax
lea edi, [ebp - 0x588c]
push 0x22
mov word [ebp - 0x1044], ax
pop eax
cmp word [ebp - 0x588c], ax
jne 0x41cab2
lea edi, [ebp - 0x588a]
push edi
call fcn.00423e13
mov esi, 0x800
pop ecx
cmp eax, esi
jae case.default.0x41c7e6
movzx eax, word [edi]
push 0x5c
pop ecx
cmp eax, 0x2e
jne 0x41caf8
cmp word [edi + 2], cx
jne 0x41cb01
add edi, 4
xor ebx, ebx
cmp word [edi], bx
je case.default.0x41c7e6
push esi
push edi
lea eax, [ebp - 0x1044]
push eax
call fcn.00410602
jmp 0x41cbf0
cmp ax, cx
je 0x41cbe0
test ax, ax
je 0x41cb11
cmp word [edi + 2], 0x3a
je 0x41cbe0
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41cb76
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 0x41cb6c
mov eax, ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x1044], cx
cmp word [ebp - 0x1044], bx
je 0x41cbab
lea eax, [ebp - 0x1044]
push eax
call fcn.00423e13
pop ecx
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x1046], cx
je 0x41cbab
push esi
push 0x435384
lea eax, [ebp - 0x1044]
push eax
call fcn.004105da
push edi
call fcn.00423e13
mov esi, eax
lea eax, [ebp - 0x1044]
push eax
call fcn.00423e13
add esi, eax
pop ecx
cmp esi, 0x7ff
mov esi, 0x800
pop ecx
jae 0x41cbf0
push esi
push edi
lea eax, [ebp - 0x1044]
push eax
call fcn.004105da
jmp 0x41cbf0
push esi
push edi
lea eax, [ebp - 0x1044]
push eax
call fcn.00410602
xor ebx, ebx
push 0x22
pop eax
push eax
lea eax, [ebp - 0x1044]
push eax
call fcn.0042279b
pop ecx
pop ecx
test eax, eax
je 0x41cc11
cmp word [eax + 2], bx
jne 0x41cc11
xor ecx, ecx
mov word [eax], cx
push esi
lea eax, [ebp - 0x1044]
mov edi, 0x44a472
push eax
push edi
call fcn.00410602
push esi
lea eax, [ebp - 0x1044]
push eax
call fcn.0041b1be
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.00423e49
pop ecx
pop ecx
test eax, eax
je case.default.0x41c7e6
lea eax, [ebp - 0x1044]
push eax
push ebx
push 0x143
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.default.0x41c7e6
cmp dword [0x44a46c], 1
je case.default.0x41c7e6
movzx eax, word [ebp - 0x588c]
push eax
call fcn.0041047a
test al, al
je 0x41ccbc
movzx eax, word [ebp - 0x588c]
sub eax, 0x30
mov dword [0x44a46c], eax
jmp case.default.0x41c7e6
mov dword [0x44a46c], 2
jmp case.default.0x41c7e6
movzx eax, word [ebp - 0x588c]
xor ecx, ecx
sub eax, ecx
je 0x41cd05
sub eax, 0x30
je 0x41ccf4
sub eax, 1
je 0x41cd05
sub eax, 1
jne case.default.0x41c7e6
mov byte [0x448457], 1
jmp 0x41ccfa
mov byte [0x448457], cl
mov byte [0x448460], cl
jmp case.default.0x41c7e6
mov byte [0x448457], cl
mov byte [0x448460], 1
jmp case.default.0x41c7e6
movzx eax, word [ebp - 0x588c]
push eax
call fcn.004279e9
pop ecx
cmp eax, 0x46
je 0x41cd4c
cmp eax, 0x55
je 0x41cd40
xor eax, eax
mov byte [0x448461], al
mov byte [0x448462], al
jmp case.default.0x41c7e6
mov byte [0x448462], 1
jmp case.default.0x41c7e6
mov byte [0x448461], 1
jmp case.default.0x41c7e6
xor edi, edi
mov byte [0x44c577], 1
inc edi
lea eax, [ebp - 0x588c]
cmp word [ebp - 0x588c], 0x3c
mov ebx, esi
mov dword [ebp - 0x14], eax
jne 0x41ce25
lea eax, [ebp - 0x588a]
push 0x3e
push eax
call fcn.004222c6
pop ecx
pop ecx
test eax, eax
je 0x41ce22
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.0041af98
mov dword [ebp - 0x20], eax
test eax, eax
je 0x41ce22
mov esi, eax
cmp word [ebp - 0x10c], 0
je 0x41ce22
push 0x435388
lea eax, [ebp - 0x10c]
push eax
call fcn.00411fbb
neg eax
push 0x435394
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00411fbb
test eax, eax
jne 0x41cdf5
push 3
pop edi
push 0x43539c
lea eax, [ebp - 0x10c]
push eax
call fcn.00411fbb
test eax, eax
jne 0x41ce0d
push 6
pop edi
push 0x64
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.0041af98
mov esi, eax
test esi, esi
jne 0x41cdbc
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 0x10], 5
jne 0x41ce38
cmp ebx, 9
jne case.default.0x41c7e6
push 1
jmp 0x41ce4e
cmp dword [ebp + 0x10], 4
jne case.default.0x41c7e6
cmp ebx, 6
jne case.default.0x41c7e6
xor ecx, ecx
push ecx
push edi
push eax
push dword [ebp + 8]
call fcn.0041d78f
jmp case.default.0x41c7e6
mov byte [0x457b7a], 1
cmp word [ebp - 0x588c], di
je case.default.0x41c7e6
lea eax, [ebp - 0x588c]
push eax
call fcn.00411fa7
mov dword [0x43e728], eax
jmp case.default.0x41c7e6
cmp ebx, 1
jne 0x41d009
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.0040b690
xor ebx, ebx
mov esi, ebx
push ebx
jmp 0x41ceb9
inc esi
push esi
push dword [0x43e724]
lea eax, [ebp - 0x788c]
push eax
push str._s_s_u
push edi
push 0x44946a
call fcn.00404092
add esp, 0x18
push 0x44946a
call fcn.0040a231
test al, al
jne 0x41ceb7
push 0x44946a
push 0x66
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp word [ebp - 0x588c], bx
je case.default.0x41c7e6
cmp byte [0x44c575], bl
jne case.default.0x41c7e6
xor eax, eax
mov word [ebp - 0x444], ax
lea eax, [ebp - 0x588c]
push 0x2c
push eax
call fcn.004222c6
pop ecx
pop ecx
test eax, eax
jne 0x41cf7b
mov ax, word [ebp - 0x588c]
mov esi, ebx
test ax, ax
je 0x41cf7b
movzx ecx, ax
cmp cx, 0x40
je 0x41cf56
movzx eax, word [ebp + esi*2 - 0x588a]
inc esi
mov ecx, eax
test ax, ax
jne 0x41cf3e
jmp 0x41cf7b
push 0x200
lea eax, [ebp - 0x588a]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00410602
xor eax, eax
mov word [ebp + esi*2 - 0x588c], ax
cmp word [ebp - 0x444], bx
jne 0x41cfb4
push 0x1000
lea eax, [ebp - 0x1b894]
push eax
lea eax, [ebp - 0x588c]
push eax
call fcn.00410602
push 0x200
lea eax, [ebp - 0x19894]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00410602
lea eax, [ebp - 0x588c]
push eax
call fcn.0041add2
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.0041a7e4
cmp eax, 6
je case.default.0x41c7e6
push 1
push dword [ebp + 8]
xor eax, eax
mov byte [0x448454], 1
mov word [0x44946a], ax
call dword [sym.imp.USER32.dll_EndDialog]
jmp case.default.0x41c7e6
cmp ebx, 7
jne case.default.0x41c7e6
cmp dword [0x44a46c], edi
jne 0x41d024
mov dword [0x44a46c], 2
mov byte [0x449468], 1
jmp case.default.0x41c7e6
cmp ebx, 3
jne 0x41d05e
cmp word [ebp - 0x588c], di
je 0x41d050
lea eax, [ebp - 0x588c]
push eax
call fcn.00427625
pop ecx
mov dword [0x45fc9c], eax
lea eax, [ebp + 0xc]
push eax
call fcn.0041b48e
mov dword [0x45fc98], eax
mov byte [0x44c576], 1
jmp case.default.0x41c7e6
cmp ebx, 6
jne case.default.0x41c7e6
xor eax, eax
mov word [ebp - 0x2844], ax
movzx eax, word [ebp - 0x1b894]
push eax
call fcn.004279e9
pop ecx
cmp eax, 0x50
je 0x41d0b0
cmp eax, 0x54
je 0x41d0a2
mov dword [ebp - 0x14], 0x10
mov eax, 0x45db82
jmp 0x41d0bc
mov dword [ebp - 0x14], 7
mov eax, 0x45bb82
jmp 0x41d0bc
mov dword [ebp - 0x14], 2
mov eax, 0x45cb82
mov esi, 0x800
push esi
push eax
lea eax, [ebp - 0x2844]
push eax
call fcn.00410602
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.00410602
push 0x22
pop ebx
cmp word [ebp - 0x688c], bx
jne 0x41d149
push esi
lea eax, [ebp - 0x19892]
push eax
lea eax, [ebp - 0x688c]
push eax
call fcn.00410602
lea eax, [ebp - 0x688a]
push ebx
push eax
call fcn.004222c6
pop ecx
pop ecx
test eax, eax
je 0x41d226
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x400
push eax
lea eax, [ebp - 0x1844]
push eax
call fcn.00410602
jmp 0x41d226
lea eax, [ebp - 0x688c]
push eax
call fcn.0040a231
test al, al
jne 0x41d226
mov ax, word [ebp - 0x688c]
lea esi, [ebp - 0x688c]
mov ebx, edi
test ax, ax
je 0x41d221
movzx edi, ax
push 0x20
pop eax
cmp di, ax
je 0x41d188
push 0x2f
pop eax
cmp di, ax
jne 0x41d200
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x688c]
push eax
call fcn.0040a231
test al, al
je 0x41d1fd
lea eax, [ebp - 0x688c]
push eax
call fcn.0040a243
push eax
call fcn.0040a28f
test al, al
jne 0x41d1fd
push 0x2f
pop ecx
lea eax, [esi + 2]
mov ebx, esi
cmp di, cx
jne 0x41d1d4
mov word [ebp - 0x1844], cx
mov edx, 0x3ff
lea ecx, [ebp - 0x1842]
jmp 0x41d1f0
push 0x20
mov esi, eax
pop eax
jmp 0x41d1de
add esi, 2
cmp word [esi], ax
je 0x41d1db
lea ecx, [ebp - 0x1844]
mov eax, esi
mov edx, 0x400
push edx
push eax
push ecx
call fcn.00410602
mov word [ebx], di
jmp 0x41d200
mov word [esi], di
add esi, 2
movzx eax, word [esi]
mov edi, eax
test ax, ax
jne 0x41d178
mov esi, 0x800
test ebx, ebx
je 0x41d226
xor eax, eax
mov word [ebx], ax
jmp 0x41d226
mov esi, 0x800
cmp word [ebp - 0x11894], 0
je 0x41d244
push esi
lea eax, [ebp - 0x9894]
push eax
lea eax, [ebp - 0x11894]
push eax
call fcn.0040b6c4
push esi
lea eax, [ebp - 0xb894]
push eax
lea eax, [ebp - 0x688c]
push eax
call fcn.0040b6c4
cmp word [ebp - 0x2844], 0
jne 0x41d271
push dword [ebp - 0x14]
lea eax, [ebp - 0x2844]
push eax
call fcn.0041b425
push esi
lea eax, [ebp - 0x2844]
push eax
call fcn.0040b690
cmp word [ebp - 0x17894], 0
je 0x41d2a9
push esi
lea eax, [ebp - 0x17894]
push eax
lea eax, [ebp - 0x2844]
push eax
call fcn.004105da
push esi
lea eax, [ebp - 0x2844]
push eax
call fcn.0040b690
push esi
lea eax, [ebp - 0x2844]
push eax
lea eax, [ebp - 0xc894]
push eax
call fcn.00410602
cmp word [ebp - 0x13894], 0
lea eax, [ebp - 0x13894]
jne 0x41d2d3
lea eax, [ebp - 0x19894]
push esi
push eax
call fcn.0040c29a
push eax
lea eax, [ebp - 0x2844]
push eax
call fcn.004105da
lea eax, [ebp - 0x2844]
push eax
call fcn.0040b92d
test eax, eax
je 0x41d306
push str..lnk
push eax
call fcn.00411fbb
test eax, eax
je 0x41d318
push esi
push str..lnk
lea eax, [ebp - 0x2844]
push eax
call fcn.004105da
xor ebx, ebx
lea eax, [ebp - 0x2844]
push ebx
push 1
push eax
call fcn.0040a0b1
push esi
lea eax, [ebp - 0xb894]
push eax
lea eax, [ebp - 0xa894]
push eax
call fcn.00410602
lea eax, [ebp - 0xa894]
push eax
call fcn.0040c2e4
movzx esi, word [ebp - 0x1844]
lea eax, [ebp - 0x1844]
movzx edx, word [ebp - 0x9894]
lea edi, [ebp - 0xa894]
movzx ecx, word [ebp - 0x15894]
neg esi
sbb esi, esi
and esi, eax
neg edx
lea eax, [ebp - 0x9894]
sbb edx, edx
and edx, eax
neg ecx
lea eax, [ebp - 0x15894]
sbb ecx, ecx
and ecx, eax
movzx eax, word [ebp - 0xa894]
push esi
neg eax
push edx
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.0041a48a
cmp word [ebp - 0xc894], bx
je case.default.0x41c7e6
push ebx
lea eax, [ebp - 0xc894]
push eax
push 5
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp case.default.0x41c7e6
cmp ebx, 7
jne case.default.0x41c7e6
mov byte [0x44a470], 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.0041b314
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x41c793
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc