Function at 0x40420c
Capabilities:
Copy file
Delete directory
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.004064fb
push 0x17
xor esi, esi
mov byte [esp + 0x17], 0
and dword [esp + 0x20], esi
mov ecx, 0x4a37a0
pop edx
xor edi, edi
call fcn.00406584
call fcn.00405fd9
mov ebx, eax
test ebx, ebx
jne 0x404254
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
mov esi, str.CouldNotObtainExePath
jmp 0x404406
mov ecx, ebx
call fcn.0040605a
mov edx, eax
mov dword [esp + 0x20], edx
test edx, edx
jne 0x404277
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
mov esi, str.CouldNotObtainDirectory
jmp 0x404406
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x4042aa
mov ecx, dword [ecx + 0x4a38d0]
call fcn.0040612b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add ecx, 4
mov dword [esp + 0x18], ecx
cmp ecx, 0x1c
jb 0x40427f
test eax, eax
je 0x4043af
call fcn.004061e7
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4042c9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
mov esi, str.CreateTempDirFailed
jmp 0x4043af
mov ecx, ebx
call fcn.00405cea
mov dword [esp + 0x24], eax
test eax, eax
je 0x404378
mov ecx, dword [esp + 0x18]
mov edx, eax
call fcn.0040592b
mov dword [esp + 0x14], eax
test eax, eax
je 0x40432b
push str.CopyFile..._n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push 1
push dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x40432b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
mov ecx, str.CopyFile
call fcn.00405a71
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
and dword [esp + 0x14], esi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x404378
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.00406321
mov byte [esp + 0x17], al
pop ecx
test al, al
jne 0x404363
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
mov esi, str.CreateProcessFailed
mov ecx, dword [esp + 0x14]
call fcn.004064ad
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x404385
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
mov esi, str.CopyingFileFailed
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x4043a5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
mov ecx, str.RemoveDirectory
call fcn.00405a71
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
test esi, esi
jne 0x404406
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp byte [esp + 0x13], 0
je 0x4043e2
cmp dword [esp + 0x1c], 0x103
jne 0x4043dc
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push dword [esp + 0x1c]
jmp 0x4043d6
push str.Will_continue_as_Launcher_App_in_this_process._n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push 0x32
pop edx
mov ecx, 0x4a3800
call fcn.00406584
call fcn.0046b14b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edx, ebx
mov ecx, esi
call fcn.00405db0
int3