Function at 0x41ba73
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, 0x431bf3
call fcn.0041de14
mov eax, 0x1bd4c
call fcn.0041def0
cmp dword [ebp + 0xc], 0
je 0x41c694
push 0x1000
lea eax, [ebp - 0x15]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x3508]
push eax
lea eax, [ebp - 0xfd58]
push eax
push dword [ebp + 0xc]
call fcn.0041a5f6
mov ecx, eax
mov dword [ebp + 0xc], ecx
test ecx, ecx
je 0x41c694
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 6
lea eax, [ebp - 0x3508]
lea esi, [ebp - 0x1bd58]
pop edi
push 0x1000
push esi
push eax
call fcn.0041a284
add esi, 0x2000
sub edi, 1
jne 0x41ba28
mov esi, edi
push dword [esi*4 + 0x43d16c]
lea eax, [ebp - 0xfd58]
push eax
call fcn.0041170f
test eax, eax
je 0x41ba63
inc esi
cmp esi, 0xe
jb 0x41ba41
jmp case.default.0x41ba6c
cmp esi, 0xd
ja case.default.0x41ba6c
jmp dword [esi*4 + 0x41c6a5]
cmp ebx, 2
jne case.default.0x41ba6c
mov edi, 0x800
lea eax, [ebp - 0x7d50]
push edi
push eax
call fcn.004199f4
push edi
lea eax, [ebp - 0xdd58]
push eax
lea eax, [ebp - 0x3508]
push eax
lea eax, [ebp - 0x7d50]
push eax
call fcn.0040b8b5
lea ecx, [ebp - 0x8d58]
call fcn.0040a3f0
lea eax, [ebp - 0xdd58]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x8d58]
mov dword [ebp - 4], ebx
call fcn.0040a52a
lea ecx, [ebp - 0x5d50]
call fcn.00406f7b
jmp 0x41bc15
push ebx
lea eax, [ebp - 0x5d50]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp - 0x4d44], bl
je 0x41bb95
push edi
lea eax, [ebp - 0x1108]
push eax
lea eax, [ebp - 0x7d50]
push eax
call fcn.0040b447
push edi
lea eax, [ebp - 0x1108]
push eax
call fcn.0040b157
lea eax, [ebp - 0x7d50]
push eax
call fcn.00423193
mov esi, eax
pop ecx
cmp esi, 4
jb 0x41bb3b
lea eax, [ebp - 0x1108]
push eax
call fcn.00423193
pop ecx
cmp esi, eax
ja 0x41bb4f
lea eax, [ebp - 0x3508]
push eax
call fcn.0040b875
test al, al
jne 0x41bc30
lea eax, [ebp - 0x5d50]
push eax
call fcn.00423193
xor ecx, ecx
push 0x1e
push ebx
mov word [ebp + eax*2 - 0x5d4e], cx
lea eax, [ebp - 0x40]
push eax
call fcn.0041eee0
add esp, 0x10
mov dword [ebp - 0x3c], 3
push 0x14
pop eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x5d50]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea eax, [ebp - 0x5d50]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41bc15
lea eax, [ebp - 0x5d50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41bc15
mov esi, ebx
push ebx
jmp 0x41bbbf
inc esi
push esi
lea eax, [ebp - 0x5d50]
push eax
push str._s._d.tmp
lea eax, [ebp - 0x1108]
push edi
push eax
call fcn.00403dd3
add esp, 0x14
lea eax, [ebp - 0x1108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41bbbd
lea eax, [ebp - 0x1108]
push eax
lea eax, [ebp - 0x5d50]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41bc15
push 4
push ebx
lea eax, [ebp - 0x1108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
lea eax, [ebp - 0x5d50]
push eax
lea ecx, [ebp - 0x8d58]
call fcn.0040a47d
test al, al
jne 0x41badb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8d58]
call fcn.0040a406
jmp case.default.0x41ba6c
test ebx, ebx
jne case.default.0x41ba6c
mov eax, dword [0x45cb34]
test eax, eax
sete bl
test bl, bl
jne 0x41bc6c
push str._br_
push eax
call fcn.00426d63
mov eax, dword [0x45cb34]
pop ecx
pop ecx
mov bh, byte [ebp - 0xd]
test bh, bh
je 0x41bc7b
lea esi, [ebp - 0x3508]
jmp 0x41bc8b
lea eax, [ebp + 0xc]
push eax
call fcn.0041a75a
mov esi, eax
mov eax, dword [0x45cb34]
test bl, bl
jne 0x41bc98
push eax
call fcn.00423193
pop ecx
mov edi, eax
push esi
call fcn.00423193
add eax, edi
lea eax, [eax*2 + 0xa]
push eax
push dword [0x45cb34]
call fcn.004231be
add esp, 0xc
test eax, eax
je 0x41bcd1
mov dword [0x45cb34], eax
test bl, bl
je 0x41bcc8
xor ecx, ecx
mov word [eax], cx
push esi
push eax
call fcn.00426d63
pop ecx
pop ecx
test bh, bh
jne case.default.0x41ba6c
push esi
call fcn.004231ae
pop ecx
jmp case.default.0x41ba6c
test ebx, ebx
jne case.default.0x41ba6c
lea eax, [ebp - 0x3508]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp case.default.0x41ba6c
test ebx, ebx
jne case.default.0x41ba6c
cmp word [0x449322], di
jne case.default.0x41ba6c
xor eax, eax
lea edi, [ebp - 0x3508]
push 0x22
mov word [ebp - 0x1108], ax
pop eax
cmp word [ebp - 0x3508], ax
jne 0x41bd38
lea edi, [ebp - 0x3506]
push edi
call fcn.00423193
mov esi, 0x800
pop ecx
cmp eax, esi
jae case.default.0x41ba6c
movzx eax, word [edi]
push 0x5c
pop ecx
cmp eax, 0x2e
jne 0x41bd7e
cmp word [edi + 2], cx
jne 0x41bd7e
add edi, 4
xor ebx, ebx
cmp word [edi], bx
je case.default.0x41ba6c
push esi
push edi
lea eax, [ebp - 0x1108]
push eax
call fcn.0040fd80
jmp 0x41be76
cmp ax, cx
je 0x41be66
test ax, ax
je 0x41bd97
cmp word [edi + 2], 0x3a
je 0x41be66
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 0x41bdfc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1000
push eax
lea eax, [ebp - 0x1108]
push eax
lea eax, [ebp - 0x20]
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 0x41bdf2
mov eax, ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x1108], cx
cmp word [ebp - 0x1108], bx
je 0x41be31
lea eax, [ebp - 0x1108]
push eax
call fcn.00423193
pop ecx
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x110a], cx
je 0x41be31
push esi
push 0x433a2c
lea eax, [ebp - 0x1108]
push eax
call fcn.0040fd58
push edi
call fcn.00423193
mov esi, eax
lea eax, [ebp - 0x1108]
push eax
call fcn.00423193
add esi, eax
pop ecx
cmp esi, 0x7ff
mov esi, 0x800
pop ecx
jae 0x41be76
push esi
push edi
lea eax, [ebp - 0x1108]
push eax
call fcn.0040fd58
jmp 0x41be76
push esi
push edi
lea eax, [ebp - 0x1108]
push eax
call fcn.0040fd80
xor ebx, ebx
push 0x22
pop eax
push eax
lea eax, [ebp - 0x1108]
push eax
call fcn.0042135b
pop ecx
pop ecx
test eax, eax
je 0x41be97
cmp word [eax + 2], bx
jne 0x41be97
xor ecx, ecx
mov word [eax], cx
push esi
lea eax, [ebp - 0x1108]
mov edi, 0x449322
push eax
push edi
call fcn.0040fd80
push esi
lea eax, [ebp - 0x1108]
push eax
call fcn.0041a48d
push 0x66
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x1108]
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 - 0x1108]
push eax
push edi
call fcn.004231c9
pop ecx
pop ecx
test eax, eax
je case.default.0x41ba6c
lea eax, [ebp - 0x1108]
push eax
push ebx
push 0x143
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.default.0x41ba6c
cmp dword [0x44931c], 1
je case.default.0x41ba6c
movzx eax, word [ebp - 0x3508]
push eax
call fcn.0040fc09
test al, al
je 0x41bf42
movzx eax, word [ebp - 0x3508]
sub eax, 0x30
mov dword [0x44931c], eax
jmp case.default.0x41ba6c
mov dword [0x44931c], 2
jmp case.default.0x41ba6c
movzx eax, word [ebp - 0x3508]
xor ecx, ecx
sub eax, ecx
je 0x41bf8b
sub eax, 0x30
je 0x41bf7a
sub eax, 1
je 0x41bf8b
sub eax, 1
jne case.default.0x41ba6c
mov byte [0x447303], 1
jmp 0x41bf80
mov byte [0x447303], cl
mov byte [0x447310], cl
jmp case.default.0x41ba6c
mov byte [0x447303], cl
mov byte [0x447310], 1
jmp case.default.0x41ba6c
movzx eax, word [ebp - 0x3508]
push eax
call fcn.00426000
pop ecx
cmp eax, 0x46
je 0x41bfd2
cmp eax, 0x55
je 0x41bfc6
xor eax, eax
mov byte [0x447311], al
mov byte [0x447312], al
jmp case.default.0x41ba6c
mov byte [0x447312], 1
jmp case.default.0x41ba6c
mov byte [0x447311], 1
jmp case.default.0x41ba6c
xor edi, edi
mov byte [0x45db48], 1
inc edi
lea ebx, [ebp - 0x3508]
cmp word [ebp - 0x3508], 0x3c
jne 0x41c09a
lea eax, [ebp - 0x3506]
push 0x3e
push eax
call fcn.0042110a
pop ecx
pop ecx
test eax, eax
je 0x41c09a
lea ecx, [eax + 2]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x108]
push 0x64
push eax
lea eax, [ebp - 0x3506]
push eax
call fcn.0041a284
mov ebx, eax
test ebx, ebx
je 0x41c097
cmp word [ebp - 0x108], 0
je 0x41c097
push 0x433a30
lea eax, [ebp - 0x108]
push eax
call fcn.0041170f
neg eax
push 0x433a3c
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x108]
push eax
call fcn.0041170f
test eax, eax
jne 0x41c073
push 3
pop edi
push 0x433a44
lea eax, [ebp - 0x108]
push eax
call fcn.0041170f
test eax, eax
jne 0x41c08b
push 6
pop edi
push 0x64
lea eax, [ebp - 0x108]
push eax
push ebx
jmp 0x41c02f
mov ebx, dword [ebp - 0x14]
cmp dword [ebp + 0x10], 5
jne 0x41c0b5
cmp esi, 9
jne case.default.0x41ba6c
push 1
push edi
push ebx
push dword [ebp + 8]
call fcn.0041ca1f
cmp dword [ebp + 0x10], 4
jne case.default.0x41ba6c
cmp esi, 6
jne case.default.0x41ba6c
push 0
push edi
push ebx
push dword [ebp + 8]
call fcn.0041ca1f
jmp case.default.0x41ba6c
mov byte [0x45db49], 1
cmp word [ebp - 0x3508], di
je case.default.0x41ba6c
lea eax, [ebp - 0x3508]
push eax
call fcn.004116fb
mov dword [0x43d150], eax
jmp case.default.0x41ba6c
cmp ebx, 1
jne 0x41c287
lea eax, [ebp - 0x7d50]
mov edi, 0x800
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x7d50]
push eax
call fcn.0040b157
xor eax, eax
mov esi, eax
push eax
jmp 0x41c135
inc esi
push esi
push dword [0x43d14c]
lea eax, [ebp - 0x7d50]
push eax
push str._s_s_u
push edi
push 0x44831a
call fcn.00403dd3
add esp, 0x18
push 0x44831a
call fcn.0040a0d3
test al, al
jne 0x41c133
push 0x44831a
push 0x66
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp word [ebp - 0x3508], 0
je case.default.0x41ba6c
cmp byte [0x455a2a], 0
jne case.default.0x41ba6c
xor eax, eax
mov word [ebp - 0x1508], ax
lea eax, [ebp - 0x3508]
push 0x2c
push eax
call fcn.0042110a
pop ecx
pop ecx
test eax, eax
jne 0x41c1fd
xor edx, edx
mov esi, edx
cmp word [ebp - 0x3508], dx
je 0x41c1fd
mov ecx, edx
lea eax, [ebp - 0x3508]
cmp word [eax], 0x40
je 0x41c1d9
inc esi
lea eax, [ebp - 0x3508]
lea ecx, [esi + esi]
add eax, ecx
cmp word [eax], dx
jne 0x41c1c0
jmp 0x41c1fd
push 0x200
lea eax, [ebp - 0x3506]
add eax, ecx
push eax
lea eax, [ebp - 0x1508]
push eax
call fcn.0040fd80
xor eax, eax
mov word [ebp + esi*2 - 0x3508], ax
cmp word [ebp - 0x1508], 0
jne 0x41c237
push 0x1000
lea eax, [ebp - 0x1bd58]
push eax
lea eax, [ebp - 0x3508]
push eax
call fcn.0040fd80
push 0x200
lea eax, [ebp - 0x19d58]
push eax
lea eax, [ebp - 0x1508]
push eax
call fcn.0040fd80
lea eax, [ebp - 0x3508]
push eax
call fcn.0041a0af
xor eax, eax
mov word [ebp - 0x2508], ax
lea eax, [ebp - 0x1508]
push 0x24
push eax
lea eax, [ebp - 0x3508]
push eax
push dword [ebp + 8]
call fcn.00419b85
cmp eax, 6
je case.default.0x41ba6c
push 1
push dword [ebp + 8]
xor eax, eax
mov byte [0x447300], 1
mov word [0x44831a], ax
call dword [sym.imp.USER32.dll_EndDialog]
cmp ebx, 7
jne case.default.0x41ba6c
cmp dword [0x44931c], 0
jne 0x41c2a3
mov dword [0x44931c], 2
mov byte [0x448318], 1
jmp case.default.0x41ba6c
cmp ebx, 3
jne 0x41c2dd
cmp word [ebp - 0x3508], di
je 0x41c2cf
lea eax, [ebp - 0x3508]
push eax
call fcn.00426d02
pop ecx
mov dword [0x45db44], eax
lea eax, [ebp + 0xc]
push eax
call fcn.0041a75a
mov dword [0x45db40], eax
mov byte [0x455a2b], 1
jmp case.default.0x41ba6c
cmp ebx, 6
jne case.default.0x41ba6c
xor eax, eax
mov word [ebp - 0x4d08], ax
movzx eax, word [ebp - 0x1bd58]
push eax
call fcn.00426000
mov esi, 0x800
pop ecx
push esi
cmp eax, 0x50
je 0x41c347
cmp eax, 0x54
lea eax, [ebp - 0x4d08]
je 0x41c333
push 0x45ba32
push eax
call fcn.0040fd80
mov dword [ebp - 0x14], 0x10
jmp 0x41c35f
push 0x459a32
push eax
call fcn.0040fd80
mov dword [ebp - 0x14], 7
jmp 0x41c35f
push 0x45aa32
lea eax, [ebp - 0x4d08]
push eax
call fcn.0040fd80
mov dword [ebp - 0x14], 2
xor eax, eax
mov word [ebp - 0x9d58], ax
mov word [ebp - 0x3d08], ax
lea eax, [ebp - 0x19d58]
push esi
push eax
lea eax, [ebp - 0x6d50]
push eax
call fcn.0040fd80
push 0x22
pop ebx
cmp word [ebp - 0x6d50], bx
jne 0x41c3de
mov edi, 0x800
lea eax, [ebp - 0x19d56]
push edi
push eax
lea eax, [ebp - 0x6d50]
push eax
call fcn.0040fd80
lea eax, [ebp - 0x6d4e]
push ebx
push eax
call fcn.0042110a
pop ecx
pop ecx
test eax, eax
je 0x41c4b4
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x400
push eax
lea eax, [ebp - 0x3d08]
push eax
call fcn.0040fd80
jmp 0x41c4b4
lea eax, [ebp - 0x6d50]
push eax
call fcn.0040a0d3
test al, al
jne 0x41c4af
mov ebx, edi
lea esi, [ebp - 0x6d50]
cmp word [ebp - 0x6d50], bx
je 0x41c4af
push 0x20
pop ecx
movzx eax, word [esi]
cmp ax, cx
je 0x41c41a
push 0x2f
pop edx
cmp ax, dx
jne 0x41c493
mov edi, eax
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x6d50]
push eax
call fcn.0040a0d3
test al, al
je 0x41c48b
lea eax, [ebp - 0x6d50]
push eax
call fcn.0040a0e7
push eax
call fcn.0040a135
test al, al
jne 0x41c48b
push 0x2f
pop eax
mov ebx, esi
cmp di, ax
jne 0x41c469
mov word [ebp - 0x3d08], ax
lea eax, [esi + 2]
push 0x3ff
push eax
lea eax, [ebp - 0x3d06]
jmp 0x41c480
push 0x20
pop eax
add esi, 2
cmp word [esi], ax
je 0x41c46c
push 0x400
push esi
lea eax, [ebp - 0x3d08]
push eax
call fcn.0040fd80
mov word [ebx], di
jmp 0x41c48e
mov word [esi], di
push 0x20
pop ecx
xor edi, edi
add esi, 2
cmp word [esi], di
jne 0x41c40a
mov edi, 0x800
test ebx, ebx
je 0x41c4b4
xor eax, eax
mov word [ebx], ax
jmp 0x41c4b4
mov edi, 0x800
cmp word [ebp - 0x11d58], 0
je 0x41c4d2
push edi
lea eax, [ebp - 0x9d58]
push eax
lea eax, [ebp - 0x11d58]
push eax
call fcn.0040b189
push edi
lea eax, [ebp - 0xbd58]
push eax
lea eax, [ebp - 0x6d50]
push eax
call fcn.0040b189
cmp word [ebp - 0x4d08], 0
jne 0x41c4ff
push dword [ebp - 0x14]
lea eax, [ebp - 0x4d08]
push eax
call fcn.0041a6ee
push edi
lea eax, [ebp - 0x4d08]
push eax
call fcn.0040b157
cmp word [ebp - 0x17d58], 0
je 0x41c537
push edi
lea eax, [ebp - 0x17d58]
push eax
lea eax, [ebp - 0x4d08]
push eax
call fcn.0040fd58
push edi
lea eax, [ebp - 0x4d08]
push eax
call fcn.0040b157
push edi
lea eax, [ebp - 0x4d08]
push eax
lea eax, [ebp - 0xcd58]
push eax
call fcn.0040fd80
cmp word [ebp - 0x13d58], 0
lea eax, [ebp - 0x13d58]
jne 0x41c561
lea eax, [ebp - 0x19d58]
push edi
push eax
call fcn.0040bbe9
push eax
lea eax, [ebp - 0x4d08]
push eax
call fcn.0040fd58
lea eax, [ebp - 0x4d08]
push eax
call fcn.0040b3e3
test eax, eax
je 0x41c594
push str..lnk
push eax
call fcn.0041170f
test eax, eax
je 0x41c5a6
push edi
push str..lnk
lea eax, [ebp - 0x4d08]
push eax
call fcn.0040fd58
xor ebx, ebx
lea eax, [ebp - 0x4d08]
push ebx
push 1
push eax
call fcn.00409f4f
push edi
lea eax, [ebp - 0xbd58]
push eax
lea eax, [ebp - 0xad58]
push eax
call fcn.0040fd80
lea eax, [ebp - 0xad58]
push eax
call fcn.0040bc33
movzx ecx, word [ebp - 0x3d08]
lea eax, [ebp - 0x3d08]
neg ecx
lea edx, [ebp - 0x9d58]
lea esi, [ebp - 0xad58]
sbb ecx, ecx
and ecx, eax
movzx eax, word [ebp - 0x9d58]
neg eax
push ecx
sbb eax, eax
and eax, edx
movzx edx, word [ebp - 0xad58]
neg edx
push eax
lea eax, [ebp - 0x15d58]
sbb edx, edx
push eax
and edx, esi
call fcn.0041a1a1
push eax
push edx
lea eax, [ebp - 0x4d08]
push eax
lea eax, [ebp - 0xbd58]
push eax
push ebx
call fcn.0041982c
cmp word [ebp - 0xcd58], bx
je case.default.0x41ba6c
push ebx
lea eax, [ebp - 0xcd58]
push eax
push 5
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp case.default.0x41ba6c
cmp ebx, 7
jne case.default.0x41ba6c
mov byte [0x449320], 1
push 0x1000
lea eax, [ebp - 0x15]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x3508]
push eax
lea eax, [ebp - 0xfd58]
push eax
push dword [ebp + 0xc]
call fcn.0041a5f6
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x41ba19
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc