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

Disassembly:
mov eax, 0x431868
call fcn.0041e698
mov eax, 0x1b884
call fcn.0041e770
cmp dword [ebp + 0xc], 0
je 0x41cf0f
push 0x1000
lea eax, [ebp - 0x15]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x5888]
push eax
lea eax, [ebp - 0xf890]
push eax
push dword [ebp + 0xc]
call fcn.0041ae24
mov ecx, eax
mov dword [ebp + 0xc], ecx
test ecx, ecx
je 0x41cf0f
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 6
lea eax, [ebp - 0x5888]
lea esi, [ebp - 0x1b890]
pop edi
push 0x1000
push esi
push eax
call fcn.0041aaa6
add esi, 0x2000
sub edi, 1
jne 0x41c2b0
mov esi, edi
push dword [esi*4 + 0x43d744]
lea eax, [ebp - 0xf890]
push eax
call fcn.00411b77
test eax, eax
je 0x41c2eb
inc esi
cmp esi, 0xe
jb 0x41c2c9
jmp case.default.0x41c2f4
cmp esi, 0xd
ja case.default.0x41c2f4
jmp dword [esi*4 + 0x41cf1d]
cmp ebx, 2
jne case.default.0x41c2f4
mov edi, 0x800
lea eax, [ebp - 0x7888]
push edi
push eax
call fcn.0041a15d
push edi
lea eax, [ebp - 0xd890]
push eax
lea eax, [ebp - 0x5888]
push eax
lea eax, [ebp - 0x7888]
push eax
call fcn.0040ba77
lea ecx, [ebp - 0x8890]
call fcn.0040a598
lea eax, [ebp - 0xd890]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x8890]
mov dword [ebp - 4], ebx
call fcn.0040a6d2
lea ecx, [ebp - 0x3888]
call fcn.00406f82
jmp 0x41c49d
push ebx
lea eax, [ebp - 0x3888]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp - 0x287c], bl
je 0x41c41d
push edi
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x7888]
push eax
call fcn.0040b618
push edi
lea eax, [ebp - 0x1040]
push eax
call fcn.0040b31b
lea eax, [ebp - 0x7888]
push eax
call fcn.00422c83
mov esi, eax
pop ecx
cmp esi, 4
jb 0x41c3c3
lea eax, [ebp - 0x1040]
push eax
call fcn.00422c83
pop ecx
cmp esi, eax
ja 0x41c3d7
lea eax, [ebp - 0x5888]
push eax
call fcn.0040ba38
test al, al
jne 0x41c4b8
lea eax, [ebp - 0x3888]
push eax
call fcn.00422c83
xor ecx, ecx
push 0x1e
push ebx
mov word [ebp + eax*2 - 0x3886], cx
lea eax, [ebp - 0x40]
push eax
call fcn.0041f830
add esp, 0x10
mov dword [ebp - 0x3c], 3
push 0x14
pop eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x3888]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea eax, [ebp - 0x3888]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41c49d
lea eax, [ebp - 0x3888]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41c49d
mov esi, ebx
push ebx
jmp 0x41c447
inc esi
push esi
lea eax, [ebp - 0x3888]
push eax
push str._s._d.tmp
lea eax, [ebp - 0x1040]
push edi
push eax
call fcn.00404100
add esp, 0x14
lea eax, [ebp - 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41c445
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x3888]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41c49d
push 4
push ebx
lea eax, [ebp - 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
lea eax, [ebp - 0x3888]
push eax
lea ecx, [ebp - 0x8890]
call fcn.0040a625
test al, al
jne 0x41c363
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8890]
call fcn.0040a5ae
jmp case.default.0x41c2f4
test ebx, ebx
jne case.default.0x41c2f4
mov eax, dword [0x45ec4c]
test eax, eax
sete bl
test eax, eax
je 0x41c4f4
push str._br_
push eax
call fcn.004264f6
mov eax, dword [0x45ec4c]
pop ecx
pop ecx
mov bh, byte [ebp - 0xd]
test bh, bh
je 0x41c503
lea esi, [ebp - 0x5888]
jmp 0x41c513
lea eax, [ebp + 0xc]
push eax
call fcn.0041af9e
mov esi, eax
mov eax, dword [0x45ec4c]
test bl, bl
jne 0x41c520
push eax
call fcn.00422c83
pop ecx
mov edi, eax
push esi
call fcn.00422c83
add eax, edi
lea eax, [eax*2 + 0xa]
push eax
push dword [0x45ec4c]
call fcn.00422cae
add esp, 0xc
test eax, eax
je 0x41c559
mov dword [0x45ec4c], eax
test bl, bl
je 0x41c550
xor ecx, ecx
mov word [eax], cx
push esi
push eax
call fcn.004264f6
pop ecx
pop ecx
test bh, bh
jne case.default.0x41c2f4
push esi
call fcn.00422c9e
pop ecx
jmp case.default.0x41c2f4
test ebx, ebx
jne case.default.0x41c2f4
lea eax, [ebp - 0x5888]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp case.default.0x41c2f4
test ebx, ebx
jne case.default.0x41c2f4
cmp word [0x44942a], di
jne case.default.0x41c2f4
xor eax, eax
lea edi, [ebp - 0x5888]
push 0x22
mov word [ebp - 0x1040], ax
pop eax
cmp word [ebp - 0x5888], ax
jne 0x41c5c0
lea edi, [ebp - 0x5886]
push edi
call fcn.00422c83
mov esi, 0x800
pop ecx
cmp eax, esi
jae case.default.0x41c2f4
movzx eax, word [edi]
push 0x5c
cmp eax, 0x2e
jne 0x41c606
pop eax
cmp word [edi + 2], ax
jne 0x41c615
add edi, 4
xor ebx, ebx
cmp word [edi], bx
je case.default.0x41c2f4
push esi
push edi
lea eax, [ebp - 0x1040]
push eax
call fcn.004101bc
jmp 0x41c6ff
pop ecx
cmp ax, cx
je 0x41c6ef
test ax, ax
je 0x41c620
cmp word [edi + 2], 0x3a
je 0x41c6ef
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 0x41c685
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1000
push eax
lea eax, [ebp - 0x1040]
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 0x41c67b
mov eax, ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x1040], cx
cmp word [ebp - 0x1040], bx
je 0x41c6ba
lea eax, [ebp - 0x1040]
push eax
call fcn.00422c83
pop ecx
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x1042], cx
je 0x41c6ba
push esi
push 0x4342e4
lea eax, [ebp - 0x1040]
push eax
call fcn.00410194
push edi
call fcn.00422c83
mov esi, eax
lea eax, [ebp - 0x1040]
push eax
call fcn.00422c83
add esi, eax
pop ecx
cmp esi, 0x7ff
mov esi, 0x800
pop ecx
jae 0x41c6ff
push esi
push edi
lea eax, [ebp - 0x1040]
push eax
call fcn.00410194
jmp 0x41c6ff
push esi
push edi
lea eax, [ebp - 0x1040]
push eax
call fcn.004101bc
xor ebx, ebx
push 0x22
pop eax
push eax
lea eax, [ebp - 0x1040]
push eax
call fcn.004215fb
pop ecx
pop ecx
test eax, eax
je 0x41c720
cmp word [eax + 2], bx
jne 0x41c720
xor ecx, ecx
mov word [eax], cx
push esi
lea eax, [ebp - 0x1040]
mov edi, 0x44942a
push eax
push edi
call fcn.004101bc
push esi
lea eax, [ebp - 0x1040]
push eax
call fcn.0041acc4
push 0x66
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x1040]
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 - 0x1040]
push eax
push edi
call fcn.00422cb9
pop ecx
pop ecx
test eax, eax
je case.default.0x41c2f4
lea eax, [ebp - 0x1040]
push eax
push ebx
push 0x143
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.default.0x41c2f4
cmp dword [0x449424], 1
je case.default.0x41c2f4
movzx eax, word [ebp - 0x5888]
push eax
call fcn.0041004a
test al, al
je 0x41c7cb
movzx eax, word [ebp - 0x5888]
sub eax, 0x30
mov dword [0x449424], eax
jmp case.default.0x41c2f4
mov dword [0x449424], 2
jmp case.default.0x41c2f4
movzx eax, word [ebp - 0x5888]
xor ecx, ecx
sub eax, ecx
je 0x41c814
sub eax, 0x30
je 0x41c803
sub eax, 1
je 0x41c814
sub eax, 1
jne case.default.0x41c2f4
mov byte [0x44740f], 1
jmp 0x41c809
mov byte [0x44740f], cl
mov byte [0x447418], cl
jmp case.default.0x41c2f4
mov byte [0x44740f], cl
mov byte [0x447418], 1
jmp case.default.0x41c2f4
movzx eax, word [ebp - 0x5888]
push eax
call fcn.00426859
pop ecx
cmp eax, 0x46
je 0x41c85b
cmp eax, 0x55
je 0x41c84f
xor eax, eax
mov byte [0x447419], al
mov byte [0x44741a], al
jmp case.default.0x41c2f4
mov byte [0x44741a], 1
jmp case.default.0x41c2f4
mov byte [0x447419], 1
jmp case.default.0x41c2f4
xor edi, edi
mov byte [0x44b52f], 1
inc edi
lea eax, [ebp - 0x5888]
cmp word [ebp - 0x5888], 0x3c
mov dword [ebp - 0x14], eax
jne 0x41c929
lea eax, [ebp - 0x5886]
push 0x3e
push eax
call fcn.00421396
pop ecx
pop ecx
test eax, eax
je 0x41c926
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 - 0x5886]
push eax
call fcn.0041aaa6
mov ebx, eax
test ebx, ebx
je 0x41c923
cmp word [ebp - 0x108], 0
je 0x41c923
push 0x4342e8
lea eax, [ebp - 0x108]
push eax
call fcn.00411b77
neg eax
push 0x4342f4
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x108]
push eax
call fcn.00411b77
test eax, eax
jne 0x41c8ff
push 3
pop edi
push 0x4342fc
lea eax, [ebp - 0x108]
push eax
call fcn.00411b77
test eax, eax
jne 0x41c917
push 6
pop edi
push 0x64
lea eax, [ebp - 0x108]
push eax
push ebx
jmp 0x41c8bb
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
cmp ebx, 5
jne 0x41c93b
cmp esi, 9
jne case.default.0x41c2f4
push 1
jmp 0x41c950
cmp ebx, 4
jne case.default.0x41c2f4
cmp esi, 6
jne case.default.0x41c2f4
xor ecx, ecx
push ecx
push edi
push eax
push dword [ebp + 8]
call fcn.0041d29f
jmp case.default.0x41c2f4
mov byte [0x456b32], 1
cmp word [ebp - 0x5888], di
je case.default.0x41c2f4
lea eax, [ebp - 0x5888]
push eax
call fcn.00411b63
mov dword [0x43d728], eax
jmp case.default.0x41c2f4
cmp ebx, 1
jne 0x41cb0b
lea eax, [ebp - 0x7888]
mov edi, 0x800
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x7888]
push eax
call fcn.0040b31b
xor ebx, ebx
mov esi, ebx
push ebx
jmp 0x41c9bb
inc esi
push esi
push dword [0x43d724]
lea eax, [ebp - 0x7888]
push eax
push str._s_s_u
push edi
push 0x448422
call fcn.00404100
add esp, 0x18
push 0x448422
call fcn.0040a285
test al, al
jne 0x41c9b9
push 0x448422
push 0x66
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp word [ebp - 0x5888], bx
je case.default.0x41c2f4
cmp byte [0x44b52d], bl
jne case.default.0x41c2f4
xor eax, eax
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x5888]
push 0x2c
push eax
call fcn.00421396
pop ecx
pop ecx
test eax, eax
jne 0x41ca7d
mov ax, word [ebp - 0x5888]
mov esi, ebx
test ax, ax
je 0x41ca7d
movzx ecx, ax
cmp cx, 0x40
je 0x41ca58
movzx eax, word [ebp + esi*2 - 0x5886]
inc esi
mov ecx, eax
test ax, ax
jne 0x41ca40
jmp 0x41ca7d
push 0x200
lea eax, [ebp - 0x5886]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004101bc
xor eax, eax
mov word [ebp + esi*2 - 0x5888], ax
cmp word [ebp - 0x440], bx
jne 0x41cab6
push 0x1000
lea eax, [ebp - 0x1b890]
push eax
lea eax, [ebp - 0x5888]
push eax
call fcn.004101bc
push 0x200
lea eax, [ebp - 0x19890]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004101bc
lea eax, [ebp - 0x5888]
push eax
call fcn.0041a8e2
xor eax, eax
mov word [ebp - 0x4888], ax
lea eax, [ebp - 0x440]
push 0x24
push eax
lea eax, [ebp - 0x5888]
push eax
push dword [ebp + 8]
call fcn.0041a2f4
cmp eax, 6
je case.default.0x41c2f4
push 1
push dword [ebp + 8]
xor eax, eax
mov byte [0x44740c], 1
mov word [0x448422], ax
call dword [sym.imp.USER32.dll_EndDialog]
jmp case.default.0x41c2f4
cmp ebx, 7
jne case.default.0x41c2f4
cmp dword [0x449424], edi
jne 0x41cb26
mov dword [0x449424], 2
mov byte [0x448420], 1
jmp case.default.0x41c2f4
cmp ebx, 3
jne 0x41cb60
cmp word [ebp - 0x5888], di
je 0x41cb52
lea eax, [ebp - 0x5888]
push eax
call fcn.00426495
pop ecx
mov dword [0x45ec54], eax
lea eax, [ebp + 0xc]
push eax
call fcn.0041af9e
mov dword [0x45ec50], eax
mov byte [0x44b52e], 1
jmp case.default.0x41c2f4
cmp ebx, 6
jne case.default.0x41c2f4
xor eax, eax
mov word [ebp - 0x2840], ax
movzx eax, word [ebp - 0x1b890]
push eax
call fcn.00426859
pop ecx
cmp eax, 0x50
je 0x41cbb2
cmp eax, 0x54
je 0x41cba4
mov dword [ebp - 0x14], 0x10
mov eax, 0x45cb3a
jmp 0x41cbbe
mov dword [ebp - 0x14], 7
mov eax, 0x45ab3a
jmp 0x41cbbe
mov dword [ebp - 0x14], 2
mov eax, 0x45bb3a
mov esi, 0x800
push esi
push eax
lea eax, [ebp - 0x2840]
push eax
call fcn.004101bc
xor eax, eax
mov word [ebp - 0x9890], ax
mov word [ebp - 0x1840], ax
lea eax, [ebp - 0x19890]
push esi
push eax
lea eax, [ebp - 0x6888]
push eax
call fcn.004101bc
push 0x22
pop ebx
cmp word [ebp - 0x6888], bx
jne 0x41cc4b
push esi
lea eax, [ebp - 0x1988e]
push eax
lea eax, [ebp - 0x6888]
push eax
call fcn.004101bc
lea eax, [ebp - 0x6886]
push ebx
push eax
call fcn.00421396
pop ecx
pop ecx
test eax, eax
je 0x41cd28
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x400
push eax
lea eax, [ebp - 0x1840]
push eax
call fcn.004101bc
jmp 0x41cd28
lea eax, [ebp - 0x6888]
push eax
call fcn.0040a285
test al, al
jne 0x41cd28
mov ax, word [ebp - 0x6888]
lea esi, [ebp - 0x6888]
mov ebx, edi
test ax, ax
je 0x41cd23
movzx edi, ax
push 0x20
pop eax
cmp di, ax
je 0x41cc8a
push 0x2f
pop eax
cmp di, ax
jne 0x41cd02
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x6888]
push eax
call fcn.0040a285
test al, al
je 0x41ccff
lea eax, [ebp - 0x6888]
push eax
call fcn.0040a297
push eax
call fcn.0040a2e3
test al, al
jne 0x41ccff
push 0x2f
pop ecx
lea eax, [esi + 2]
mov ebx, esi
cmp di, cx
jne 0x41ccd6
mov word [ebp - 0x1840], cx
mov edx, 0x3ff
lea ecx, [ebp - 0x183e]
jmp 0x41ccf2
push 0x20
mov esi, eax
pop eax
jmp 0x41cce0
add esi, 2
cmp word [esi], ax
je 0x41ccdd
lea ecx, [ebp - 0x1840]
mov eax, esi
mov edx, 0x400
push edx
push eax
push ecx
call fcn.004101bc
mov word [ebx], di
jmp 0x41cd02
mov word [esi], di
add esi, 2
movzx eax, word [esi]
mov edi, eax
test ax, ax
jne 0x41cc7a
mov esi, 0x800
test ebx, ebx
je 0x41cd28
xor eax, eax
mov word [ebx], ax
jmp 0x41cd28
mov esi, 0x800
cmp word [ebp - 0x11890], 0
je 0x41cd46
push esi
lea eax, [ebp - 0x9890]
push eax
lea eax, [ebp - 0x11890]
push eax
call fcn.0040b34d
push esi
lea eax, [ebp - 0xb890]
push eax
lea eax, [ebp - 0x6888]
push eax
call fcn.0040b34d
cmp word [ebp - 0x2840], 0
jne 0x41cd73
push dword [ebp - 0x14]
lea eax, [ebp - 0x2840]
push eax
call fcn.0041af35
push esi
lea eax, [ebp - 0x2840]
push eax
call fcn.0040b31b
cmp word [ebp - 0x17890], 0
je 0x41cdab
push esi
lea eax, [ebp - 0x17890]
push eax
lea eax, [ebp - 0x2840]
push eax
call fcn.00410194
push esi
lea eax, [ebp - 0x2840]
push eax
call fcn.0040b31b
push esi
lea eax, [ebp - 0x2840]
push eax
lea eax, [ebp - 0xc890]
push eax
call fcn.004101bc
cmp word [ebp - 0x13890], 0
lea eax, [ebp - 0x13890]
jne 0x41cdd5
lea eax, [ebp - 0x19890]
push esi
push eax
call fcn.0040bef0
push eax
lea eax, [ebp - 0x2840]
push eax
call fcn.00410194
lea eax, [ebp - 0x2840]
push eax
call fcn.0040b5b4
test eax, eax
je 0x41ce08
push str..lnk
push eax
call fcn.00411b77
test eax, eax
je 0x41ce1a
push esi
push str..lnk
lea eax, [ebp - 0x2840]
push eax
call fcn.00410194
xor ebx, ebx
lea eax, [ebp - 0x2840]
push ebx
push 1
push eax
call fcn.0040a105
push esi
lea eax, [ebp - 0xb890]
push eax
lea eax, [ebp - 0xa890]
push eax
call fcn.004101bc
lea eax, [ebp - 0xa890]
push eax
call fcn.0040bf3a
movzx esi, word [ebp - 0x1840]
lea eax, [ebp - 0x1840]
movzx edx, word [ebp - 0x9890]
lea edi, [ebp - 0xa890]
movzx ecx, word [ebp - 0x15890]
neg esi
sbb esi, esi
and esi, eax
neg edx
lea eax, [ebp - 0x9890]
sbb edx, edx
and edx, eax
neg ecx
lea eax, [ebp - 0x15890]
sbb ecx, ecx
and ecx, eax
movzx eax, word [ebp - 0xa890]
push esi
neg eax
push edx
sbb eax, eax
push ecx
and eax, edi
push eax
lea eax, [ebp - 0x2840]
push eax
lea eax, [ebp - 0xb890]
push eax
push ebx
call fcn.00419f9a
cmp word [ebp - 0xc890], bx
je case.default.0x41c2f4
push ebx
lea eax, [ebp - 0xc890]
push eax
push 5
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp case.default.0x41c2f4
cmp ebx, 7
jne case.default.0x41c2f4
mov byte [0x449428], 1
push 0x1000
lea eax, [ebp - 0x15]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x5888]
push eax
lea eax, [ebp - 0xf890]
push eax
push dword [ebp + 0xc]
call fcn.0041ae24
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x41c2a1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc