Function at 0x4086e7
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
call fcn.0040db4b
test al, al
jne 0x408712
call fcn.0040db64
test al, al
jne 0x408712
mov byte [ebp - 5], 1
jmp 0x408716
and byte [ebp - 5], 0
mov ecx, esi
call fcn.00408f36
mov eax, dword [esi + 0xb4]
cmp eax, edi
je 0x408cb6
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x408cb6
cmp dword [esi + 0x14], edi
je 0x408b0f
lea eax, [ebp - 6]
and byte [ebp - 6], 0
push eax
lea eax, [esi + 0xc0]
lea ebx, [esi + 0xa4]
lea edi, [esi + 0x34]
push eax
push ebx
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.0040b16c
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409762
lea ecx, [ebp - 0x7c]
mov byte [ebp - 7], al
call fcn.00402172
cmp byte [ebp - 7], 0
je 0x408aba
cmp byte [ebp - 5], 0
je 0x4087a5
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [ebp - 4], 1
call fcn.00402898
pop ecx
pop ecx
jmp 0x4087a7
mov eax, edi
mov ebx, 0x4102f0
push 0
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x54], 0x4102f8
mov dword [ebp - 0x4c], ebx
call fcn.00402808
test byte [ebp - 4], 1
mov edi, 0x4102ec
mov dword [ebp - 0x60], edi
je 0x4087da
lea ecx, [ebp - 0x98]
call fcn.00402172
lea eax, [ebp - 0x60]
push str.ispro7
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.004036da
add esp, 0xc
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
push eax
call fcn.00402f6a
lea eax, [ebp - 0xc0]
push eax
call fcn.00409dd3
pop ecx
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
call fcn.0040913a
test eax, eax
je 0x40882a
mov esi, 0xffffe88a
jmp 0x408aa7
lea eax, [esi + 0xa4]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040b16c
lea eax, [esi + 0x88]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040b16c
add esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00409486
test eax, eax
je 0x4088a8
lea ecx, [ebp - 0x7c]
call fcn.00402639
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x28]
push eax
call fcn.00402be1
mov esi, eax
mov ecx, esi
call fcn.00402639
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0xa4]
jmp 0x408a8d
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004098dd
test eax, eax
je 0x4088fe
lea ecx, [ebp - 0x28]
call fcn.00402639
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x28]
push eax
call fcn.00402be1
mov esi, eax
mov ecx, esi
call fcn.00402639
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0xa4]
call fcn.00402172
mov esi, 0xffffe88c
jmp 0x408a97
push 0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], 0x4102f8
mov dword [ebp - 0x30], ebx
call fcn.0040210f
cmp byte [ebp - 5], 0
mov dword [ebp - 0x44], edi
je 0x408996
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
push eax
call fcn.0040a895
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x58]
push eax
call fcn.0040a895
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x28]
push eax
call fcn.00402be1
mov edi, eax
mov ecx, edi
call fcn.00402639
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0xa4]
call fcn.00402172
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call fcn.0040a895
lea ecx, [ebp - 0x44]
call fcn.00402172
lea ecx, [ebp - 0x7c]
call fcn.00402172
lea ecx, [ebp - 0x28]
call fcn.00402172
lea ecx, [ebp - 0xc0]
call fcn.00402172
lea ecx, [ebp - 0x60]
jmp 0x408c19
lea eax, [esi + 0xa4]
push eax
lea eax, [esi + 0x34]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0040b16c
add esp, 0xc
lea ecx, [ebp - 0x44]
push eax
call fcn.0040a895
lea ecx, [ebp - 0x98]
call fcn.00402172
lea ecx, [ebp - 0x44]
call fcn.00402639
push dword [ebp - 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call ebx
lea ecx, [ebp - 0x44]
call fcn.00402639
mov edi, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00402639
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp - 0x24]
call edi
test eax, eax
jne 0x408933
push dword [0x412318]
lea eax, [esi + 0x34]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.004036da
add esp, 0xc
lea ecx, [ebp - 0x44]
push eax
call fcn.0040a895
lea ecx, [ebp - 0x98]
call fcn.00402172
lea ecx, [ebp - 0x44]
call fcn.00402639
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], eax
call fcn.00402639
push dword [ebp - 0xc]
push dword [ebp - 0x24]
call edi
test eax, eax
jne 0x408933
lea ecx, [ebp - 0x28]
call fcn.00402639
push dword [ebp - 0x24]
call ebx
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x28]
push eax
call fcn.00402be1
mov esi, eax
mov ecx, esi
call fcn.00402639
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0xa4]
call fcn.00402172
lea ecx, [ebp - 0x44]
call fcn.00402172
mov esi, 0xffffe88b
lea ecx, [ebp - 0x7c]
call fcn.00402172
lea ecx, [ebp - 0x28]
call fcn.00402172
lea ecx, [ebp - 0xc0]
call fcn.00402172
lea ecx, [ebp - 0x60]
jmp 0x408bec
cmp byte [ebp - 6], 0
je 0x408aea
push dword [0x412318]
lea eax, [ebp - 0x98]
push edi
push eax
call fcn.004036da
mov ecx, dword [ebp + 8]
add esp, 0xc
push eax
call fcn.0040a895
lea ecx, [ebp - 0x98]
jmp 0x408c19
push ebx
lea eax, [ebp - 0x98]
push edi
push eax
call fcn.0040b16c
mov ecx, dword [ebp + 8]
add esp, 0xc
push eax
call fcn.0040a895
lea ecx, [ebp - 0x98]
jmp 0x408c19
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.00402898
lea eax, [ebp - 0x60]
push str.ispro7
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.004036da
add esp, 0x14
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
push eax
call fcn.00402f6a
lea eax, [ebp - 0xc0]
push eax
call fcn.00409dd3
pop ecx
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
call fcn.0040913a
test eax, eax
je 0x408b66
mov esi, 0xffffe88a
jmp 0x408bde
lea eax, [esi + 0xa4]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0040b16c
mov ecx, dword [ebp + 8]
add esp, 0xc
push eax
call fcn.0040a895
lea ecx, [ebp - 0x98]
call fcn.00402172
lea eax, [esi + 0x88]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040b16c
add esp, 0xc
lea eax, [ebp - 0x7c]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.00409486
test eax, eax
je 0x408bf8
lea ecx, [ebp - 0x7c]
call fcn.00402639
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x7c]
call fcn.00402172
mov esi, 0xffffe88b
lea ecx, [ebp - 0xc0]
call fcn.00402172
lea ecx, [ebp - 0x60]
call fcn.00402172
mov eax, esi
jmp 0x408cbb
push dword [ebp + 8]
lea ecx, [esi + 0x58]
call fcn.0040a895
lea ecx, [ebp - 0x7c]
call fcn.00402172
lea ecx, [ebp - 0xc0]
call fcn.00402172
lea ecx, [ebp - 0x60]
call fcn.00402172
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00402639
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x408c3f
mov eax, 0xffffe88d
jmp 0x408cbb
push str.FindCorrectLauncher
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x408cad
and byte [ebp - 0x1c4], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00402639
push dword [esi + 0x50]
mov edi, dword [edi + 4]
lea eax, [ebp - 0x1c4]
push dword [esi + 0x14]
push eax
push edi
call ebx
test eax, eax
jne 0x408cad
cmp byte [ebp - 0x1c4], al
je 0x408ca0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c4]
push eax
call fcn.004030ee
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x408cbb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xffffe88e
pop edi
pop esi
pop ebx
leave
ret 4