Function at 0x408a12
Capabilities:
Check mutex on windows
Copy file
Create directory

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x57b830]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x300
mov eax, 0x522abc
call fcn.005094ab
push 0x200
push 0x57ef50
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x5842e0], 2
jne 0x408dcd
mov eax, dword [esi + 0x48]
cmp byte [eax + 1], 0x78
jne 0x408dcd
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov esi, 0x3ff
push esi
lea eax, [ebp + 0x401]
push ebx
push eax
mov byte [ebp + 0x400], bl
call fcn.00509740
push esi
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00509740
lea eax, [ebp + 0x400]
push eax
push str.TC_SETUP
push str.SoftwareTmp
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call fcn.004074b5
add esp, 0x28
cmp eax, 0xffffffff
jne 0x408ac9
mov byte [ebp + 0x400], bl
push ebx
push str.TC_SETUP64
push str.SoftwareTmp
push esi
call fcn.00407452
push ebx
push str.TC_SETUPPer
push str.SoftwareTmp
push esi
mov dword [ebp - 0x18], eax
call fcn.00407452
push ebx
push str.TC_SETUPSkin
push str.SoftwareTmp
push esi
mov dword [ebp - 0x24], eax
call fcn.00407452
push ebx
push str.TC_SETUPUAC
push str.SoftwareTmp
push esi
mov dword [ebp - 0x1c], eax
call fcn.00407452
add esp, 0x40
mov dword [ebp - 0x28], eax
lea eax, [ebp]
push eax
push str.TC_SETUPIP
push str.SoftwareTmp
push esi
call fcn.004074b5
add esp, 0x10
cmp eax, 0xffffffff
jne 0x408b3b
mov byte [ebp], bl
push 0x535548
lea ecx, [ebp - 0x10]
call fcn.004013e4
mov esi, 0x532ec8
push esi
push str..exe
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00407b50
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 0x28], 0x53553c
jne 0x408b6d
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x1c], 0x535534
jne 0x408b7c
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 0x24], 0x535530
jne 0x408b8b
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x18], ebx
je 0x408b95
mov esi, 0x53552c
push str._Y__m__d__H__M__S
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00407894
mov ecx, eax
call fcn.004080db
mov dword [ebp - 0x30], eax
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.004013e4
mov dword [ebp - 0x18], eax
mov esi, 0x535514
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 2
call fcn.00407083
push dword [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00407d5a
push dword [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00407083
push dword [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00407083
push dword [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00407083
lea ecx, [ebp]
push ecx
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 7
call fcn.00407083
add esp, 0x48
push esi
push eax
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 8
call fcn.00407083
push dword [ebp - 0x30]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00407d5a
push 0x53550c
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
push eax
call fcn.00407083
lea ecx, [ebp + 0x400]
push ecx
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 0xb
call fcn.00407083
push str._.exe
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0xc
call fcn.00407083
add esp, 0x3c
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0x60]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x19
call fcn.004010ac
push str._Y__m__d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00407894
mov ecx, eax
call fcn.004080db
push eax
push str.Z:TEST_
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x1a
push eax
call fcn.004070db
push 0x5350d0
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0x1b
call fcn.00407083
add esp, 0x18
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x1e
call fcn.004010ac
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
lea ecx, [ebp - 0x20]
push eax
call fcn.00407a83
push ebx
push dword [ebp - 0x20]
push 0x57ef50
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x64
call edi
call fcn.00407589
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010ac
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010ac
jmp 0x408f8c
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push ebx
push esi
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xor eax, eax
lea edi, [ebp - 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x88]
push str.GlobalTC_SETUP
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x6c], 0xc
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ebx
call fcn.004013e4
push dword [eax]
lea eax, [ebp - 0x6c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov dword [ebp - 0x14], eax
call fcn.004010ac
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408e42
mov edi, esi
cmp dword [ebp - 0x14], ebx
je 0x408e50
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, ebx
jne 0x408f8c
call fcn.00407310
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004073e5
mov dword [0x57f198], eax
pop ecx
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], 8
mov dword [ebp - 0x70], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov esi, dword [ebp - 0x28]
mov ecx, esi
call fcn.00416c7f
push ebx
call fcn.00419e19
mov ecx, esi
mov dword [esp], 0x5354a8
call fcn.0041930c
cmp dword [0x5842e0], 2
jne 0x408eee
mov eax, dword [esi + 0x48]
cmp byte [eax + 1], 0x63
jne 0x408eee
push ebx
lea ecx, [ebp - 0x30c]
call fcn.004096f1
lea eax, [ebp - 0x30c]
mov ecx, eax
mov dword [ebp - 4], 0x1f
mov dword [esi + 0x20], eax
call fcn.0040c95f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30c]
call fcn.004079b5
jmp 0x408f8c
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
mov esi, 0x535494
push esi
push ebx
call edi
cmp eax, ebx
jne 0x408f09
push esi
push ebx
call edi
cmp eax, ebx
je 0x408f43
push 1
push 1
push 0x13d4
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp - 0x10], ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ebx
call edi
cmp eax, ebx
jne 0x408f37
push esi
push ebx
call edi
cmp eax, ebx
je 0x408f43
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x258
jl 0x408f1c
call fcn.00407e7c
cmp byte [0x57f19c], bl
je 0x408f57
call fcn.00408151
jmp 0x408f8c
push ebx
lea ecx, [ebp - 0x1ac]
call fcn.00406e49
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x1ac]
mov dword [ecx + 0x20], eax
mov ecx, eax
mov dword [ebp - 4], 0x20
call fcn.0040c95f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ac]
call fcn.00406ec2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0050949c
add ebp, 0x804
leave
ret