Function at 0x408c6d
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.0040e20a
test al, al
jne 0x408c98
call fcn.0040e223
test al, al
jne 0x408c98
mov byte [ebp - 5], 1
jmp 0x408c9c
and byte [ebp - 5], 0
mov ecx, esi
call fcn.004092fc
mov eax, dword [esi + 0xb4]
cmp eax, edi
je 0x40923c
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40923c
cmp dword [esi + 0x14], edi
je 0x409095
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.0040b834
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409e41
lea ecx, [ebp - 0x7c]
mov byte [ebp - 7], al
call fcn.00402199
cmp byte [ebp - 7], 0
je 0x409040
cmp byte [ebp - 5], 0
je 0x408d2b
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [ebp - 4], 1
call fcn.00402a41
pop ecx
pop ecx
jmp 0x408d2d
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.004029b1
test byte [ebp - 4], 1
mov edi, 0x4102ec
mov dword [ebp - 0x60], edi
je 0x408d60
lea ecx, [ebp - 0x98]
call fcn.00402199
lea eax, [ebp - 0x60]
push str.ispro7
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00403813
add esp, 0xc
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
push eax
call fcn.00403113
lea eax, [ebp - 0xc0]
push eax
call fcn.0040a5c8
pop ecx
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
call fcn.00409704
test eax, eax
je 0x408db0
mov esi, 0xffffe88a
jmp 0x40902d
lea eax, [esi + 0xa4]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040b834
lea eax, [esi + 0x88]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040b834
add esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00409bce
test eax, eax
je 0x408e2e
lea ecx, [ebp - 0x7c]
call fcn.004027e2
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x28]
push eax
call fcn.00402d8a
mov esi, eax
mov ecx, esi
call fcn.004027e2
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0xa4]
jmp 0x409013
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00409fd1
test eax, eax
je 0x408e84
lea ecx, [ebp - 0x28]
call fcn.004027e2
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x28]
push eax
call fcn.00402d8a
mov esi, eax
mov ecx, esi
call fcn.004027e2
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0xa4]
call fcn.00402199
mov esi, 0xffffe88c
jmp 0x40901d
push 0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], 0x4102f8
mov dword [ebp - 0x30], ebx
call fcn.004020c6
cmp byte [ebp - 5], 0
mov dword [ebp - 0x44], edi
je 0x408f1c
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
push eax
call fcn.0040222b
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x58]
push eax
call fcn.0040222b
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x28]
push eax
call fcn.00402d8a
mov edi, eax
mov ecx, edi
call fcn.004027e2
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0xa4]
call fcn.00402199
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call fcn.0040222b
lea ecx, [ebp - 0x44]
call fcn.00402199
lea ecx, [ebp - 0x7c]
call fcn.00402199
lea ecx, [ebp - 0x28]
call fcn.00402199
lea ecx, [ebp - 0xc0]
call fcn.00402199
lea ecx, [ebp - 0x60]
jmp 0x40919f
lea eax, [esi + 0xa4]
push eax
lea eax, [esi + 0x34]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0040b834
add esp, 0xc
lea ecx, [ebp - 0x44]
push eax
call fcn.0040222b
lea ecx, [ebp - 0x98]
call fcn.00402199
lea ecx, [ebp - 0x44]
call fcn.004027e2
push dword [ebp - 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call ebx
lea ecx, [ebp - 0x44]
call fcn.004027e2
mov edi, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004027e2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp - 0x24]
call edi
test eax, eax
jne 0x408eb9
push dword [0x412318]
lea eax, [esi + 0x34]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00403813
add esp, 0xc
lea ecx, [ebp - 0x44]
push eax
call fcn.0040222b
lea ecx, [ebp - 0x98]
call fcn.00402199
lea ecx, [ebp - 0x44]
call fcn.004027e2
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], eax
call fcn.004027e2
push dword [ebp - 0xc]
push dword [ebp - 0x24]
call edi
test eax, eax
jne 0x408eb9
lea ecx, [ebp - 0x28]
call fcn.004027e2
push dword [ebp - 0x24]
call ebx
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x28]
push eax
call fcn.00402d8a
mov esi, eax
mov ecx, esi
call fcn.004027e2
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0xa4]
call fcn.00402199
lea ecx, [ebp - 0x44]
call fcn.00402199
mov esi, 0xffffe88b
lea ecx, [ebp - 0x7c]
call fcn.00402199
lea ecx, [ebp - 0x28]
call fcn.00402199
lea ecx, [ebp - 0xc0]
call fcn.00402199
lea ecx, [ebp - 0x60]
jmp 0x409172
cmp byte [ebp - 6], 0
je 0x409070
push dword [0x412318]
lea eax, [ebp - 0x98]
push edi
push eax
call fcn.00403813
mov ecx, dword [ebp + 8]
add esp, 0xc
push eax
call fcn.0040222b
lea ecx, [ebp - 0x98]
jmp 0x40919f
push ebx
lea eax, [ebp - 0x98]
push edi
push eax
call fcn.0040b834
mov ecx, dword [ebp + 8]
add esp, 0xc
push eax
call fcn.0040222b
lea ecx, [ebp - 0x98]
jmp 0x40919f
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.00402a41
lea eax, [ebp - 0x60]
push str.ispro7
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00403813
add esp, 0x14
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
push eax
call fcn.00403113
lea eax, [ebp - 0xc0]
push eax
call fcn.0040a5c8
pop ecx
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
call fcn.00409704
test eax, eax
je 0x4090ec
mov esi, 0xffffe88a
jmp 0x409164
lea eax, [esi + 0xa4]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0040b834
mov ecx, dword [ebp + 8]
add esp, 0xc
push eax
call fcn.0040222b
lea ecx, [ebp - 0x98]
call fcn.00402199
lea eax, [esi + 0x88]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040b834
add esp, 0xc
lea eax, [ebp - 0x7c]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.00409bce
test eax, eax
je 0x40917e
lea ecx, [ebp - 0x7c]
call fcn.004027e2
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x7c]
call fcn.00402199
mov esi, 0xffffe88b
lea ecx, [ebp - 0xc0]
call fcn.00402199
lea ecx, [ebp - 0x60]
call fcn.00402199
mov eax, esi
jmp 0x409241
push dword [ebp + 8]
lea ecx, [esi + 0x58]
call fcn.0040222b
lea ecx, [ebp - 0x7c]
call fcn.00402199
lea ecx, [ebp - 0xc0]
call fcn.00402199
lea ecx, [ebp - 0x60]
call fcn.00402199
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004027e2
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x4091c5
mov eax, 0xffffe88d
jmp 0x409241
push str.FindCorrectLauncher
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x409233
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.004027e2
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 0x409233
cmp byte [ebp - 0x1c4], al
je 0x409226
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c4]
push eax
call fcn.00403297
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x409241
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xffffe88e
pop edi
pop esi
pop ebx
leave
ret 4