Function at 0x41c482
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, 0x432218
call fcn.0041df68
mov eax, 0x1b884
call fcn.0041e040
cmp dword [ebp + 0xc], 0
je 0x41c85f
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.0041a744
mov ecx, eax
mov dword [ebp + 0xc], ecx
test ecx, ecx
je 0x41c85f
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.0041a3c4
add esi, 0x2000
sub edi, 1
jne 0x41bc00
mov esi, edi
push dword [esi*4 + 0x43e28c]
lea eax, [ebp - 0xf890]
push eax
call fcn.004118f2
test eax, eax
je 0x41bc3b
inc esi
cmp esi, 0xe
jb 0x41bc19
jmp case.default.0x41bc44
cmp esi, 0xd
ja case.default.0x41bc44
jmp dword [esi*4 + 0x41c86d]
cmp ebx, 2
jne case.default.0x41bc44
mov edi, 0x800
lea eax, [ebp - 0x7888]
push edi
push eax
call fcn.00419b3d
push edi
lea eax, [ebp - 0xd890]
push eax
lea eax, [ebp - 0x5888]
push eax
lea eax, [ebp - 0x7888]
push eax
call fcn.0040b837
lea ecx, [ebp - 0x8890]
call fcn.0040a358
lea eax, [ebp - 0xd890]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x8890]
mov dword [ebp - 4], ebx
call fcn.0040a492
lea ecx, [ebp - 0x3888]
call fcn.00406db2
jmp 0x41bded
push ebx
lea eax, [ebp - 0x3888]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp - 0x287c], bl
je 0x41bd6d
push edi
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x7888]
push eax
call fcn.0040b3d8
push edi
lea eax, [ebp - 0x1040]
push eax
call fcn.0040b0db
lea eax, [ebp - 0x7888]
push eax
call fcn.00422655
mov esi, eax
pop ecx
cmp esi, 4
jb 0x41bd13
lea eax, [ebp - 0x1040]
push eax
call fcn.00422655
pop ecx
cmp esi, eax
ja 0x41bd27
lea eax, [ebp - 0x5888]
push eax
call fcn.0040b7f8
test al, al
jne 0x41be08
lea eax, [ebp - 0x3888]
push eax
call fcn.00422655
xor ecx, ecx
push 0x1e
push ebx
mov word [ebp + eax*2 - 0x3886], cx
lea eax, [ebp - 0x40]
push eax
call fcn.0041f0e0
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 0x41bded
lea eax, [ebp - 0x3888]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41bded
mov esi, ebx
push ebx
jmp 0x41bd97
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.00403f27
add esp, 0x14
lea eax, [ebp - 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41bd95
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x3888]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41bded
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.0040a3e5
test al, al
jne 0x41bcb3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8890]
call fcn.0040a36e
jmp case.default.0x41bc44
test ebx, ebx
jne case.default.0x41bc44
mov eax, dword [0x45fbdc]
test eax, eax
sete bl
test eax, eax
je 0x41be44
push str._br_
push eax
call fcn.004260ea
mov eax, dword [0x45fbdc]
pop ecx
pop ecx
mov bh, byte [ebp - 0xd]
test bh, bh
je 0x41be53
lea esi, [ebp - 0x5888]
jmp 0x41be63
lea eax, [ebp + 0xc]
push eax
call fcn.0041a8be
mov esi, eax
mov eax, dword [0x45fbdc]
test bl, bl
jne 0x41be70
push eax
call fcn.00422655
pop ecx
mov edi, eax
push esi
call fcn.00422655
add eax, edi
lea eax, [eax*2 + 0xa]
push eax
push dword [0x45fbdc]
call fcn.00422953
add esp, 0xc
test eax, eax
je 0x41bea9
mov dword [0x45fbdc], eax
test bl, bl
je 0x41bea0
xor ecx, ecx
mov word [eax], cx
push esi
push eax
call fcn.004260ea
pop ecx
pop ecx
test bh, bh
jne case.default.0x41bc44
push esi
call fcn.0042292d
pop ecx
jmp case.default.0x41bc44
test ebx, ebx
jne case.default.0x41bc44
lea eax, [ebp - 0x5888]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp case.default.0x41bc44
test ebx, ebx
jne case.default.0x41bc44
cmp word [0x44a3ba], di
jne case.default.0x41bc44
xor eax, eax
lea edi, [ebp - 0x5888]
push 0x22
mov word [ebp - 0x1040], ax
pop eax
cmp word [ebp - 0x5888], ax
jne 0x41bf10
lea edi, [ebp - 0x5886]
push edi
call fcn.00422655
mov esi, 0x800
pop ecx
cmp eax, esi
jae case.default.0x41bc44
movzx eax, word [edi]
push 0x5c
cmp eax, 0x2e
jne 0x41bf56
pop eax
cmp word [edi + 2], ax
jne 0x41bf65
add edi, 4
xor ebx, ebx
cmp word [edi], bx
je case.default.0x41bc44
push esi
push edi
lea eax, [ebp - 0x1040]
push eax
call fcn.0040ff3c
jmp 0x41c04f
pop ecx
cmp ax, cx
je 0x41c03f
test ax, ax
je 0x41bf70
cmp word [edi + 2], 0x3a
je 0x41c03f
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 0x41bfd5
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 0x41bfcb
mov eax, ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x1040], cx
cmp word [ebp - 0x1040], bx
je 0x41c00a
lea eax, [ebp - 0x1040]
push eax
call fcn.00422655
pop ecx
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x1042], cx
je 0x41c00a
push esi
push 0x434a84
lea eax, [ebp - 0x1040]
push eax
call fcn.0040ff14
push edi
call fcn.00422655
mov esi, eax
lea eax, [ebp - 0x1040]
push eax
call fcn.00422655
add esi, eax
pop ecx
cmp esi, 0x7ff
mov esi, 0x800
pop ecx
jae 0x41c04f
push esi
push edi
lea eax, [ebp - 0x1040]
push eax
call fcn.0040ff14
jmp 0x41c04f
push esi
push edi
lea eax, [ebp - 0x1040]
push eax
call fcn.0040ff3c
xor ebx, ebx
push 0x22
pop eax
push eax
lea eax, [ebp - 0x1040]
push eax
call fcn.00420eab
pop ecx
pop ecx
test eax, eax
je 0x41c070
cmp word [eax + 2], bx
jne 0x41c070
xor ecx, ecx
mov word [eax], cx
push esi
lea eax, [ebp - 0x1040]
mov edi, 0x44a3ba
push eax
push edi
call fcn.0040ff3c
push esi
lea eax, [ebp - 0x1040]
push eax
call fcn.0041a5e2
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.0042295e
pop ecx
pop ecx
test eax, eax
je case.default.0x41bc44
lea eax, [ebp - 0x1040]
push eax
push ebx
push 0x143
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.default.0x41bc44
cmp dword [0x44a3b4], 1
je case.default.0x41bc44
movzx eax, word [ebp - 0x5888]
push eax
call fcn.0040fdca
test al, al
je 0x41c11b
movzx eax, word [ebp - 0x5888]
sub eax, 0x30
mov dword [0x44a3b4], eax
jmp case.default.0x41bc44
mov dword [0x44a3b4], 2
jmp case.default.0x41bc44
movzx eax, word [ebp - 0x5888]
xor ecx, ecx
sub eax, ecx
je 0x41c164
sub eax, 0x30
je 0x41c153
sub eax, 1
je 0x41c164
sub eax, 1
jne case.default.0x41bc44
mov byte [0x44838f], 1
jmp 0x41c159
mov byte [0x44838f], cl
mov byte [0x448398], cl
jmp case.default.0x41bc44
mov byte [0x44838f], cl
mov byte [0x448398], 1
jmp case.default.0x41bc44
movzx eax, word [ebp - 0x5888]
push eax
call fcn.00426220
pop ecx
cmp eax, 0x46
je 0x41c1ab
cmp eax, 0x55
je 0x41c19f
xor eax, eax
mov byte [0x448399], al
mov byte [0x44839a], al
jmp case.default.0x41bc44
mov byte [0x44839a], 1
jmp case.default.0x41bc44
mov byte [0x448399], 1
jmp case.default.0x41bc44
xor edi, edi
mov byte [0x44c4bf], 1
inc edi
lea eax, [ebp - 0x5888]
cmp word [ebp - 0x5888], 0x3c
mov dword [ebp - 0x14], eax
jne 0x41c279
lea eax, [ebp - 0x5886]
push 0x3e
push eax
call fcn.00420c46
pop ecx
pop ecx
test eax, eax
je 0x41c276
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.0041a3c4
mov ebx, eax
test ebx, ebx
je 0x41c273
cmp word [ebp - 0x108], 0
je 0x41c273
push 0x434a88
lea eax, [ebp - 0x108]
push eax
call fcn.004118f2
neg eax
push 0x434a94
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x108]
push eax
call fcn.004118f2
test eax, eax
jne 0x41c24f
push 3
pop edi
push 0x434a9c
lea eax, [ebp - 0x108]
push eax
call fcn.004118f2
test eax, eax
jne 0x41c267
push 6
pop edi
push 0x64
lea eax, [ebp - 0x108]
push eax
push ebx
jmp 0x41c20b
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
cmp ebx, 5
jne 0x41c28b
cmp esi, 9
jne case.default.0x41bc44
push 1
jmp 0x41c2a0
cmp ebx, 4
jne case.default.0x41bc44
cmp esi, 6
jne case.default.0x41bc44
xor ecx, ecx
push ecx
push edi
push eax
push dword [ebp + 8]
call fcn.0041cbef
jmp case.default.0x41bc44
mov byte [0x457ac2], 1
cmp word [ebp - 0x5888], di
je case.default.0x41bc44
lea eax, [ebp - 0x5888]
push eax
call fcn.004118de
mov dword [0x43e270], eax
jmp case.default.0x41bc44
cmp ebx, 1
jne 0x41c45b
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.0040b0db
xor ebx, ebx
mov esi, ebx
push ebx
jmp 0x41c30b
inc esi
push esi
push dword [0x43e26c]
lea eax, [ebp - 0x7888]
push eax
push str._s_s_u
push edi
push 0x4493b2
call fcn.00403f27
add esp, 0x18
push 0x4493b2
call fcn.0040a045
test al, al
jne 0x41c309
push 0x4493b2
push 0x66
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp word [ebp - 0x5888], bx
je case.default.0x41bc44
cmp byte [0x44c4bd], bl
jne case.default.0x41bc44
xor eax, eax
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x5888]
push 0x2c
push eax
call fcn.00420c46
pop ecx
pop ecx
test eax, eax
jne 0x41c3cd
mov ax, word [ebp - 0x5888]
mov esi, ebx
test ax, ax
je 0x41c3cd
movzx ecx, ax
cmp cx, 0x40
je 0x41c3a8
movzx eax, word [ebp + esi*2 - 0x5886]
inc esi
mov ecx, eax
test ax, ax
jne 0x41c390
jmp 0x41c3cd
push 0x200
lea eax, [ebp - 0x5886]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040ff3c
xor eax, eax
mov word [ebp + esi*2 - 0x5888], ax
cmp word [ebp - 0x440], bx
jne 0x41c406
push 0x1000
lea eax, [ebp - 0x1b890]
push eax
lea eax, [ebp - 0x5888]
push eax
call fcn.0040ff3c
push 0x200
lea eax, [ebp - 0x19890]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040ff3c
lea eax, [ebp - 0x5888]
push eax
call fcn.0041a200
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.00419cd4
cmp eax, 6
je case.default.0x41bc44
push 1
push dword [ebp + 8]
xor eax, eax
mov byte [0x44838c], 1
mov word [0x4493b2], ax
call dword [sym.imp.USER32.dll_EndDialog]
jmp case.default.0x41bc44
cmp ebx, 7
jne case.default.0x41bc44
cmp dword [0x44a3b4], edi
jne 0x41c476
mov dword [0x44a3b4], 2
mov byte [0x4493b0], 1
jmp case.default.0x41bc44
cmp ebx, 3
jne 0x41c4b0
cmp word [ebp - 0x5888], di
je 0x41c4a2
lea eax, [ebp - 0x5888]
push eax
call fcn.0042608b
pop ecx
mov dword [0x45fbe4], eax
lea eax, [ebp + 0xc]
push eax
call fcn.0041a8be
mov dword [0x45fbe0], eax
mov byte [0x44c4be], 1
jmp case.default.0x41bc44
cmp ebx, 6
jne case.default.0x41bc44
xor eax, eax
mov word [ebp - 0x2840], ax
movzx eax, word [ebp - 0x1b890]
push eax
call fcn.00426220
pop ecx
cmp eax, 0x50
je 0x41c502
cmp eax, 0x54
je 0x41c4f4
mov dword [ebp - 0x14], 0x10
mov eax, 0x45daca
jmp 0x41c50e
mov dword [ebp - 0x14], 7
mov eax, 0x45baca
jmp 0x41c50e
mov dword [ebp - 0x14], 2
mov eax, 0x45caca
mov esi, 0x800
push esi
push eax
lea eax, [ebp - 0x2840]
push eax
call fcn.0040ff3c
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.0040ff3c
push 0x22
pop ebx
cmp word [ebp - 0x6888], bx
jne 0x41c59b
push esi
lea eax, [ebp - 0x1988e]
push eax
lea eax, [ebp - 0x6888]
push eax
call fcn.0040ff3c
lea eax, [ebp - 0x6886]
push ebx
push eax
call fcn.00420c46
pop ecx
pop ecx
test eax, eax
je 0x41c678
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x400
push eax
lea eax, [ebp - 0x1840]
push eax
call fcn.0040ff3c
jmp 0x41c678
lea eax, [ebp - 0x6888]
push eax
call fcn.0040a045
test al, al
jne 0x41c678
mov ax, word [ebp - 0x6888]
lea esi, [ebp - 0x6888]
mov ebx, edi
test ax, ax
je 0x41c673
movzx edi, ax
push 0x20
pop eax
cmp di, ax
je 0x41c5da
push 0x2f
pop eax
cmp di, ax
jne 0x41c652
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x6888]
push eax
call fcn.0040a045
test al, al
je 0x41c64f
lea eax, [ebp - 0x6888]
push eax
call fcn.0040a057
push eax
call fcn.0040a0a3
test al, al
jne 0x41c64f
push 0x2f
pop ecx
lea eax, [esi + 2]
mov ebx, esi
cmp di, cx
jne 0x41c626
mov word [ebp - 0x1840], cx
mov edx, 0x3ff
lea ecx, [ebp - 0x183e]
jmp 0x41c642
push 0x20
mov esi, eax
pop eax
jmp 0x41c630
add esi, 2
cmp word [esi], ax
je 0x41c62d
lea ecx, [ebp - 0x1840]
mov eax, esi
mov edx, 0x400
push edx
push eax
push ecx
call fcn.0040ff3c
mov word [ebx], di
jmp 0x41c652
mov word [esi], di
add esi, 2
movzx eax, word [esi]
mov edi, eax
test ax, ax
jne 0x41c5ca
mov esi, 0x800
test ebx, ebx
je 0x41c678
xor eax, eax
mov word [ebx], ax
jmp 0x41c678
mov esi, 0x800
cmp word [ebp - 0x11890], 0
je 0x41c696
push esi
lea eax, [ebp - 0x9890]
push eax
lea eax, [ebp - 0x11890]
push eax
call fcn.0040b10d
push esi
lea eax, [ebp - 0xb890]
push eax
lea eax, [ebp - 0x6888]
push eax
call fcn.0040b10d
cmp word [ebp - 0x2840], 0
jne 0x41c6c3
push dword [ebp - 0x14]
lea eax, [ebp - 0x2840]
push eax
call fcn.0041a855
push esi
lea eax, [ebp - 0x2840]
push eax
call fcn.0040b0db
cmp word [ebp - 0x17890], 0
je 0x41c6fb
push esi
lea eax, [ebp - 0x17890]
push eax
lea eax, [ebp - 0x2840]
push eax
call fcn.0040ff14
push esi
lea eax, [ebp - 0x2840]
push eax
call fcn.0040b0db
push esi
lea eax, [ebp - 0x2840]
push eax
lea eax, [ebp - 0xc890]
push eax
call fcn.0040ff3c
cmp word [ebp - 0x13890], 0
lea eax, [ebp - 0x13890]
jne 0x41c725
lea eax, [ebp - 0x19890]
push esi
push eax
call fcn.0040bcb0
push eax
lea eax, [ebp - 0x2840]
push eax
call fcn.0040ff14
lea eax, [ebp - 0x2840]
push eax
call fcn.0040b374
test eax, eax
je 0x41c758
push str..lnk
push eax
call fcn.004118f2
test eax, eax
je 0x41c76a
push esi
push str..lnk
lea eax, [ebp - 0x2840]
push eax
call fcn.0040ff14
xor ebx, ebx
lea eax, [ebp - 0x2840]
push ebx
push 1
push eax
call fcn.00409ec5
push esi
lea eax, [ebp - 0xb890]
push eax
lea eax, [ebp - 0xa890]
push eax
call fcn.0040ff3c
lea eax, [ebp - 0xa890]
push eax
call fcn.0040bcfa
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.0041997a
cmp word [ebp - 0xc890], bx
je case.default.0x41bc44
push ebx
lea eax, [ebp - 0xc890]
push eax
push 5
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp case.default.0x41bc44
cmp ebx, 7
jne case.default.0x41bc44
mov byte [0x44a3b8], 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.0041a744
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x41bbf1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc