Function at 0x41177d
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, 0x42688d
call fcn.00413ab0
mov eax, 0x1b884
call fcn.00413ad0
cmp dword [ebp + 0xc], 0
je 0x41243f
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.00410354
mov ecx, eax
mov dword [ebp + 0xc], ecx
test ecx, ecx
je 0x41243f
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.00410104
add esi, 0x2000
sub edi, 1
jne 0x4117e0
mov esi, edi
push dword [esi*4 + 0x432624]
lea eax, [ebp - 0xf890]
push eax
call fcn.00407ceb
test eax, eax
je 0x41181b
inc esi
cmp esi, 0xe
jb 0x4117f9
jmp case.default.0x411824
cmp esi, 0xd
ja case.default.0x411824
jmp dword [esi*4 + 0x41244d]
cmp ebx, 2
jne case.default.0x411824
mov edi, 0x800
lea eax, [ebp - 0x7888]
push edi
push eax
call fcn.0040f87d
push edi
lea eax, [ebp - 0xd890]
push eax
lea eax, [ebp - 0x5888]
push eax
lea eax, [ebp - 0x7888]
push eax
call fcn.0040375b
lea ecx, [ebp - 0x8890]
call fcn.00402966
lea eax, [ebp - 0xd890]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x8890]
mov dword [ebp - 4], ebx
call fcn.00402aa0
lea ecx, [ebp - 0x3888]
call fcn.00401ab3
jmp 0x4119cd
push ebx
lea eax, [ebp - 0x3888]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp - 0x287c], bl
je 0x41194d
push edi
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x7888]
push eax
call fcn.00403438
push edi
lea eax, [ebp - 0x1040]
push eax
call fcn.0040313b
lea eax, [ebp - 0x7888]
push eax
call fcn.00417fe3
mov esi, eax
pop ecx
cmp esi, 4
jb 0x4118f3
lea eax, [ebp - 0x1040]
push eax
call fcn.00417fe3
pop ecx
cmp esi, eax
ja 0x411907
lea eax, [ebp - 0x5888]
push eax
call fcn.0040371c
test al, al
jne 0x4119e8
lea eax, [ebp - 0x3888]
push eax
call fcn.00417fe3
xor ecx, ecx
push 0x1e
push ebx
mov word [ebp + eax*2 - 0x3886], cx
lea eax, [ebp - 0x40]
push eax
call fcn.00414b90
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 0x4119cd
lea eax, [ebp - 0x3888]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4119cd
mov esi, ebx
push ebx
jmp 0x411977
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.00403971
add esp, 0x14
lea eax, [ebp - 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x411975
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x3888]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4119cd
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.004029f3
test al, al
jne 0x411893
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8890]
call fcn.0040297c
jmp case.default.0x411824
test ebx, ebx
jne case.default.0x411824
mov eax, dword [0x4652b4]
test eax, eax
sete bl
test eax, eax
je 0x411a24
push str._br_
push eax
call fcn.0041b857
mov eax, dword [0x4652b4]
pop ecx
pop ecx
mov bh, byte [ebp - 0xd]
test bh, bh
je 0x411a33
lea esi, [ebp - 0x5888]
jmp 0x411a43
lea eax, [ebp + 0xc]
push eax
call fcn.004104ce
mov esi, eax
mov eax, dword [0x4652b4]
test bl, bl
jne 0x411a50
push eax
call fcn.00417fe3
pop ecx
mov edi, eax
push esi
call fcn.00417fe3
add eax, edi
lea eax, [eax*2 + 0xa]
push eax
push dword [0x4652b4]
call fcn.0041a286
add esp, 0xc
test eax, eax
je 0x411a89
mov dword [0x4652b4], eax
test bl, bl
je 0x411a80
xor ecx, ecx
mov word [eax], cx
push esi
push eax
call fcn.0041b857
pop ecx
pop ecx
test bh, bh
jne case.default.0x411824
push esi
call fcn.00417ffe
pop ecx
jmp case.default.0x411824
test ebx, ebx
jne case.default.0x411824
lea eax, [ebp - 0x5888]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp case.default.0x411824
test ebx, ebx
jne case.default.0x411824
cmp word [0x44fa1a], di
jne case.default.0x411824
xor eax, eax
lea edi, [ebp - 0x5888]
push 0x22
mov word [ebp - 0x1040], ax
pop eax
cmp word [ebp - 0x5888], ax
jne 0x411af0
lea edi, [ebp - 0x5886]
push edi
call fcn.00417fe3
mov esi, 0x800
pop ecx
cmp eax, esi
jae case.default.0x411824
movzx eax, word [edi]
push 0x5c
cmp eax, 0x2e
jne 0x411b36
pop eax
cmp word [edi + 2], ax
jne 0x411b45
add edi, 4
xor ebx, ebx
cmp word [edi], bx
je case.default.0x411824
push esi
push edi
lea eax, [ebp - 0x1040]
push eax
call fcn.00406889
jmp 0x411c2f
pop ecx
cmp ax, cx
je 0x411c1f
test ax, ax
je 0x411b50
cmp word [edi + 2], 0x3a
je 0x411c1f
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 0x411bb5
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 0x411bab
mov eax, ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x1040], cx
cmp word [ebp - 0x1040], bx
je 0x411bea
lea eax, [ebp - 0x1040]
push eax
call fcn.00417fe3
pop ecx
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x1042], cx
je 0x411bea
push esi
push 0x42900c
lea eax, [ebp - 0x1040]
push eax
call fcn.00406861
push edi
call fcn.00417fe3
mov esi, eax
lea eax, [ebp - 0x1040]
push eax
call fcn.00417fe3
add esi, eax
pop ecx
cmp esi, 0x7ff
mov esi, 0x800
pop ecx
jae 0x411c2f
push esi
push edi
lea eax, [ebp - 0x1040]
push eax
call fcn.00406861
jmp 0x411c2f
push esi
push edi
lea eax, [ebp - 0x1040]
push eax
call fcn.00406889
xor ebx, ebx
push 0x22
pop eax
push eax
lea eax, [ebp - 0x1040]
push eax
call fcn.0041588b
pop ecx
pop ecx
test eax, eax
je 0x411c50
cmp word [eax + 2], bx
jne 0x411c50
xor ecx, ecx
mov word [eax], cx
push esi
lea eax, [ebp - 0x1040]
mov edi, 0x44fa1a
push eax
push edi
call fcn.00406889
push esi
lea eax, [ebp - 0x1040]
push eax
call fcn.004101f7
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.0041a0e0
pop ecx
pop ecx
test eax, eax
je case.default.0x411824
lea eax, [ebp - 0x1040]
push eax
push ebx
push 0x143
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.default.0x411824
cmp dword [0x44fa14], 1
je case.default.0x411824
movzx eax, word [ebp - 0x5888]
push eax
call fcn.004066d9
test al, al
je 0x411cfb
movzx eax, word [ebp - 0x5888]
sub eax, 0x30
mov dword [0x44fa14], eax
jmp case.default.0x411824
mov dword [0x44fa14], 2
jmp case.default.0x411824
movzx eax, word [ebp - 0x5888]
xor ecx, ecx
sub eax, ecx
je 0x411d44
sub eax, 0x30
je 0x411d33
sub eax, 1
je 0x411d44
sub eax, 1
jne case.default.0x411824
mov byte [0x44d9f7], 1
jmp 0x411d39
mov byte [0x44d9f7], cl
mov byte [0x44da08], cl
jmp case.default.0x411824
mov byte [0x44d9f7], cl
mov byte [0x44da08], 1
jmp case.default.0x411824
movzx eax, word [ebp - 0x5888]
push eax
call fcn.0041bbba
pop ecx
cmp eax, 0x46
je 0x411d8b
cmp eax, 0x55
je 0x411d7f
xor eax, eax
mov byte [0x44da09], al
mov byte [0x44da0a], al
jmp case.default.0x411824
mov byte [0x44da0a], 1
jmp case.default.0x411824
mov byte [0x44da09], 1
jmp case.default.0x411824
xor edi, edi
mov byte [0x451b2f], 1
inc edi
lea eax, [ebp - 0x5888]
cmp word [ebp - 0x5888], 0x3c
mov dword [ebp - 0x14], eax
jne 0x411e59
lea eax, [ebp - 0x5886]
push 0x3e
push eax
call fcn.004150a0
pop ecx
pop ecx
test eax, eax
je 0x411e56
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.00410104
mov ebx, eax
test ebx, ebx
je 0x411e53
cmp word [ebp - 0x108], 0
je 0x411e53
push 0x429010
lea eax, [ebp - 0x108]
push eax
call fcn.00407ceb
neg eax
push 0x42901c
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x108]
push eax
call fcn.00407ceb
test eax, eax
jne 0x411e2f
push 3
pop edi
push 0x429024
lea eax, [ebp - 0x108]
push eax
call fcn.00407ceb
test eax, eax
jne 0x411e47
push 6
pop edi
push 0x64
lea eax, [ebp - 0x108]
push eax
push ebx
jmp 0x411deb
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
cmp ebx, 5
jne 0x411e6b
cmp esi, 9
jne case.default.0x411824
push 1
jmp 0x411e80
cmp ebx, 4
jne case.default.0x411824
cmp esi, 6
jne case.default.0x411824
xor ecx, ecx
push ecx
push edi
push eax
push dword [ebp + 8]
call fcn.004127cf
jmp case.default.0x411824
mov byte [0x45d19a], 1
cmp word [ebp - 0x5888], di
je case.default.0x411824
lea eax, [ebp - 0x5888]
push eax
call fcn.00407cd7
mov dword [0x432608], eax
jmp case.default.0x411824
cmp ebx, 1
jne 0x41203b
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.0040313b
xor ebx, ebx
mov esi, ebx
push ebx
jmp 0x411eeb
inc esi
push esi
push dword [0x432604]
lea eax, [ebp - 0x7888]
push eax
push str._s_s_u
push edi
push 0x44ea12
call fcn.00403971
add esp, 0x18
push 0x44ea12
call fcn.00402644
test al, al
jne 0x411ee9
push 0x44ea12
push 0x66
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp word [ebp - 0x5888], bx
je case.default.0x411824
cmp byte [0x451b2d], bl
jne case.default.0x411824
xor eax, eax
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x5888]
push 0x2c
push eax
call fcn.004150a0
pop ecx
pop ecx
test eax, eax
jne 0x411fad
mov ax, word [ebp - 0x5888]
mov esi, ebx
test ax, ax
je 0x411fad
movzx ecx, ax
cmp cx, 0x40
je 0x411f88
movzx eax, word [ebp + esi*2 - 0x5886]
inc esi
mov ecx, eax
test ax, ax
jne 0x411f70
jmp 0x411fad
push 0x200
lea eax, [ebp - 0x5886]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00406889
xor eax, eax
mov word [ebp + esi*2 - 0x5888], ax
cmp word [ebp - 0x440], bx
jne 0x411fe6
push 0x1000
lea eax, [ebp - 0x1b890]
push eax
lea eax, [ebp - 0x5888]
push eax
call fcn.00406889
push 0x200
lea eax, [ebp - 0x19890]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00406889
lea eax, [ebp - 0x5888]
push eax
call fcn.0040ff40
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.0040fa14
cmp eax, 6
je case.default.0x411824
push 1
push dword [ebp + 8]
xor eax, eax
mov byte [0x44d9f4], 1
mov word [0x44ea12], ax
call dword [sym.imp.USER32.dll_EndDialog]
jmp case.default.0x411824
cmp ebx, 7
jne case.default.0x411824
cmp dword [0x44fa14], edi
jne 0x412056
mov dword [0x44fa14], 2
mov byte [0x44ea10], 1
jmp case.default.0x411824
cmp ebx, 3
jne 0x412090
cmp word [ebp - 0x5888], di
je 0x412082
lea eax, [ebp - 0x5888]
push eax
call fcn.0041b7f6
pop ecx
mov dword [0x4652bc], eax
lea eax, [ebp + 0xc]
push eax
call fcn.004104ce
mov dword [0x4652b8], eax
mov byte [0x451b2e], 1
jmp case.default.0x411824
cmp ebx, 6
jne case.default.0x411824
xor eax, eax
mov word [ebp - 0x2840], ax
movzx eax, word [ebp - 0x1b890]
push eax
call fcn.0041bbba
pop ecx
cmp eax, 0x50
je 0x4120e2
cmp eax, 0x54
je 0x4120d4
mov dword [ebp - 0x14], 0x10
mov eax, 0x4631a2
jmp 0x4120ee
mov dword [ebp - 0x14], 7
mov eax, 0x4611a2
jmp 0x4120ee
mov dword [ebp - 0x14], 2
mov eax, 0x4621a2
mov esi, 0x800
push esi
push eax
lea eax, [ebp - 0x2840]
push eax
call fcn.00406889
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.00406889
push 0x22
pop ebx
cmp word [ebp - 0x6888], bx
jne 0x41217b
push esi
lea eax, [ebp - 0x1988e]
push eax
lea eax, [ebp - 0x6888]
push eax
call fcn.00406889
lea eax, [ebp - 0x6886]
push ebx
push eax
call fcn.004150a0
pop ecx
pop ecx
test eax, eax
je 0x412258
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x400
push eax
lea eax, [ebp - 0x1840]
push eax
call fcn.00406889
jmp 0x412258
lea eax, [ebp - 0x6888]
push eax
call fcn.00402644
test al, al
jne 0x412258
mov ax, word [ebp - 0x6888]
lea esi, [ebp - 0x6888]
mov ebx, edi
test ax, ax
je 0x412253
movzx edi, ax
push 0x20
pop eax
cmp di, ax
je 0x4121ba
push 0x2f
pop eax
cmp di, ax
jne 0x412232
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x6888]
push eax
call fcn.00402644
test al, al
je 0x41222f
lea eax, [ebp - 0x6888]
push eax
call fcn.00402656
push eax
call fcn.004026b1
test al, al
jne 0x41222f
push 0x2f
pop ecx
lea eax, [esi + 2]
mov ebx, esi
cmp di, cx
jne 0x412206
mov word [ebp - 0x1840], cx
mov edx, 0x3ff
lea ecx, [ebp - 0x183e]
jmp 0x412222
push 0x20
mov esi, eax
pop eax
jmp 0x412210
add esi, 2
cmp word [esi], ax
je 0x41220d
lea ecx, [ebp - 0x1840]
mov eax, esi
mov edx, 0x400
push edx
push eax
push ecx
call fcn.00406889
mov word [ebx], di
jmp 0x412232
mov word [esi], di
add esi, 2
movzx eax, word [esi]
mov edi, eax
test ax, ax
jne 0x4121aa
mov esi, 0x800
test ebx, ebx
je 0x412258
xor eax, eax
mov word [ebx], ax
jmp 0x412258
mov esi, 0x800
cmp word [ebp - 0x11890], 0
je 0x412276
push esi
lea eax, [ebp - 0x9890]
push eax
lea eax, [ebp - 0x11890]
push eax
call fcn.0040316d
push esi
lea eax, [ebp - 0xb890]
push eax
lea eax, [ebp - 0x6888]
push eax
call fcn.0040316d
cmp word [ebp - 0x2840], 0
jne 0x4122a3
push dword [ebp - 0x14]
lea eax, [ebp - 0x2840]
push eax
call fcn.00410465
push esi
lea eax, [ebp - 0x2840]
push eax
call fcn.0040313b
cmp word [ebp - 0x17890], 0
je 0x4122db
push esi
lea eax, [ebp - 0x17890]
push eax
lea eax, [ebp - 0x2840]
push eax
call fcn.00406861
push esi
lea eax, [ebp - 0x2840]
push eax
call fcn.0040313b
push esi
lea eax, [ebp - 0x2840]
push eax
lea eax, [ebp - 0xc890]
push eax
call fcn.00406889
cmp word [ebp - 0x13890], 0
lea eax, [ebp - 0x13890]
jne 0x412305
lea eax, [ebp - 0x19890]
push esi
push eax
call fcn.0040384f
push eax
lea eax, [ebp - 0x2840]
push eax
call fcn.00406861
lea eax, [ebp - 0x2840]
push eax
call fcn.004033d4
test eax, eax
je 0x412338
push str..lnk
push eax
call fcn.00407ceb
test eax, eax
je 0x41234a
push esi
push str..lnk
lea eax, [ebp - 0x2840]
push eax
call fcn.00406861
xor ebx, ebx
lea eax, [ebp - 0x2840]
push ebx
push 1
push eax
call fcn.00402515
push esi
lea eax, [ebp - 0xb890]
push eax
lea eax, [ebp - 0xa890]
push eax
call fcn.00406889
lea eax, [ebp - 0xa890]
push eax
call fcn.00403899
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.0040f6ba
cmp word [ebp - 0xc890], bx
je case.default.0x411824
push ebx
lea eax, [ebp - 0xc890]
push eax
push 5
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp case.default.0x411824
cmp ebx, 7
jne case.default.0x411824
mov byte [0x44fa18], 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.00410354
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4117d1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc