Function at 0x40d750
Capabilities:
Check mutex on windows
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
mov esi, ecx
push edi
push 0x40
lea eax, [ebp - 0x158]
lea ebx, [esi + 0x1e8]
mov dword [ebp - 0x10], esi
push ebx
push eax
mov dword [ebp - 0x118], esi
call fcn.00420c30
add esp, 0xc
add esi, 0x230
push str.C:CodeBasesisdevSrcRuntimeInstallScriptSetupNewSetupDLL.cpp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edi, edi
push edi
push ebx
call fcn.0042265c
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 0xc], eax
jne 0x40dc6e
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00414d18
mov ecx, esi
call fcn.00409635
mov ecx, dword [esi + 0x1e4]
add ecx, 0x1fc
call fcn.00414433
test al, al
jne 0x40d8d2
mov ebx, 0x44655c
push edi
push str._Setup.dll
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x60], 0x446564
mov dword [ebp - 0x58], ebx
call fcn.00403177
mov edi, 0x446558
push 0
push str._Setup.dll
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x7c], 0x446564
mov dword [ebp - 0x74], ebx
call fcn.00403177
lea ecx, [ebp - 0x6c]
lea eax, [esi + 0x70c]
push ecx
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x88], edi
push eax
call fcn.004162fa
mov ecx, eax
add esp, 0xc
mov dword [ebp - 4], ecx
call fcn.00402db3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi + 0x1e4]
add eax, 0x1fc
push eax
lea eax, [ebp - 0x1c8]
push eax
call fcn.004162fa
mov ecx, eax
add esp, 0xc
mov dword [ebp - 4], ecx
call fcn.00402db3
mov eax, dword [ebp - 4]
push 0
push dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
neg eax
sbb al, al
lea ecx, [ebp - 0x1c8]
inc al
mov byte [ebp - 5], al
call fcn.0040252a
lea ecx, [ebp - 0x21c]
call fcn.0040252a
lea ecx, [ebp - 0x88]
call fcn.0040252a
lea ecx, [ebp - 0x6c]
call fcn.0040252a
cmp byte [ebp - 5], 0
je 0x40d9ad
push 0x4d
push 0xffffec6b
mov ecx, esi
call fcn.0041220c
jmp 0x40d9ad
mov ebx, 0x44655c
push edi
push str._Setup.dll
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x98], 0x446564
mov dword [ebp - 0x90], ebx
call fcn.00403177
mov edi, 0x446558
push 0
push str._Setup.dll
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xd0], 0x446564
mov dword [ebp - 0xc8], ebx
call fcn.00403177
push 0x50
push 0
lea ecx, [ebp - 0xa4]
lea eax, [esi + 0x70c]
push 0
push ecx
push eax
lea eax, [ebp - 0x174]
push eax
mov dword [ebp - 0xdc], edi
call fcn.004162fa
add esp, 0xc
push eax
lea eax, [ebp - 0xdc]
push eax
mov eax, dword [esi + 0x1e4]
add eax, 0x1fc
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.004162fa
add esp, 0xc
mov ecx, esi
push eax
call fcn.00413232
push eax
mov ecx, esi
call fcn.0041220c
lea ecx, [ebp - 0x200]
call fcn.0040252a
lea ecx, [ebp - 0x174]
call fcn.0040252a
lea ecx, [ebp - 0xdc]
call fcn.0040252a
lea ecx, [ebp - 0xa4]
call fcn.0040252a
push 0
push str._Setup.dll
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], 0x446564
mov dword [ebp - 0x3c], ebx
call fcn.00403177
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], edi
push eax
lea eax, [esi + 0x70c]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.004162fa
add esp, 0xc
lea ecx, [esi + 0x6b0]
push eax
call fcn.0040266e
lea ecx, [ebp - 0x190]
call fcn.0040252a
lea ecx, [ebp - 0x50]
call fcn.0040252a
lea ecx, [esi + 0x6b0]
call fcn.00402db3
push dword [esi + 0x6b4]
lea ecx, [esi + 4]
call fcn.004036cd
mov eax, dword [esi + 0x1e4]
add eax, 0x42d
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
and byte [ebp - 0x14], 0
push 0
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40dafb
mov eax, dword [esi + 0x1e4]
cmp byte [eax + 0x1f2], 0
jne 0x40dacf
cmp byte [eax + 0x1f3], 0
jne 0x40dacf
push 1
lea ecx, [ebp - 0x34]
call fcn.00402749
mov ax, word [esi + 0x3c8]
mov ecx, dword [esi + 0x1e0]
push eax
lea eax, [ebp - 0x34]
push dword [0x451b00]
push eax
push 0x36
call fcn.00419b9f
test eax, eax
je 0x40daac
lea ecx, [ebp - 0x34]
call fcn.00402db3
mov eax, dword [esi + 0x1e4]
push 0x40
add eax, 0x234
push eax
push dword [ebp - 0x30]
jmp 0x40dabf
mov eax, dword [esi + 0x1e4]
push 0x40
add eax, 0x234
push eax
push str.Another_instance_of_this_setup_is_already_running._nPlease_wait_for_the_other_instance_to_finish_and_then_try_again.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x34]
call fcn.00402818
lea ecx, [ebp - 0x18]
call fcn.004091aa
lea eax, [ebp - 0x158]
push 0x40
push eax
mov eax, dword [ebp - 0x118]
add eax, 0x1e8
push eax
call fcn.00420c30
add esp, 0xc
xor eax, eax
jmp 0x40dc69
cmp dword [esi + 0x3dc], 0
je 0x40dbd8
push 0
push str.ISSetup.dll
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xec], 0x446564
mov dword [ebp - 0xe4], ebx
call fcn.00403177
push 0
push str.ISSetup.dll
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xb4], 0x446564
mov dword [ebp - 0xac], ebx
call fcn.00403177
push 0x77
lea eax, [ebp - 0xf8]
push 0
push eax
lea eax, [esi + 0x70c]
mov dword [ebp - 0xc0], edi
push eax
lea eax, [ebp - 0x1e4]
push eax
call fcn.004162fa
add esp, 0xc
push eax
lea eax, [ebp - 0xc0]
push eax
mov eax, dword [esi + 0x1e4]
add eax, 0x1fc
push eax
lea eax, [ebp - 0x1ac]
push eax
call fcn.004162fa
add esp, 0xc
mov ecx, esi
push eax
call fcn.0041509c
push eax
mov ecx, esi
call fcn.0041220c
lea ecx, [ebp - 0x1ac]
call fcn.0040252a
lea ecx, [ebp - 0x1e4]
call fcn.0040252a
lea ecx, [ebp - 0xc0]
call fcn.0040252a
lea ecx, [ebp - 0xf8]
call fcn.0040252a
mov ecx, esi
call fcn.0040dde5
test al, al
jne 0x40dbf1
push 0x7b
push 0xffffec75
mov ecx, esi
call fcn.0041220c
mov ecx, esi
call fcn.0040de7f
mov eax, dword [esi + 0x1e4]
cmp byte [eax + 0x1f1], 0
je 0x40dc15
push 0x83
mov ecx, esi
call fcn.0040ed94
jmp 0x40dc38
cmp byte [eax + 0x1f0], 0
je 0x40dc2c
push 0x86
mov ecx, esi
call fcn.0040ea6c
jmp 0x40dc38
push 0x88
mov ecx, esi
call fcn.0040ebb4
push eax
mov ecx, esi
call fcn.0041220c
lea ecx, [ebp - 0x18]
call fcn.004091aa
xor esi, esi
lea eax, [ebp - 0x158]
push 0x40
push eax
mov eax, dword [ebp - 0x118]
add eax, 0x1e8
push eax
call fcn.00420c30
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp - 0x10]
cmp eax, 0x80042002
jne 0x40dd24
push 1
lea ecx, [ebp - 0x114]
call fcn.00402749
lea ebx, [esi + 0x6b0]
mov ecx, ebx
call fcn.00402db3
push dword [ebx + 4]
mov ecx, dword [esi + 0x1e0]
call fcn.0040dd9e
mov ecx, dword [esi + 0x1e0]
push edi
lea eax, [ebp - 0x114]
push 0xffffffffffffffff
push eax
push 0x9028
call fcn.00419b9f
mov eax, dword [esi + 0x1e4]
cmp byte [eax + 0x1f3], 0
jne 0x40dd12
cmp byte [eax + 0x1f2], 0
jne 0x40dd12
mov eax, dword [esi + 0x344]
cmp eax, edi
je 0x40dce4
mov ebx, eax
jmp 0x40dcec
mov eax, dword [esi + 0x1e0]
mov ebx, dword [eax]
lea ecx, [ebp - 0x114]
call fcn.00402db3
mov eax, dword [esi + 0x1e4]
push 0x10
add eax, 0x234
push eax
push dword [ebp - 0x110]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x114]
call fcn.00402818
mov ebx, 0x80042000
jmp 0x40dd34
mov ebx, 0x80042000
cmp eax, ebx
je 0x40dd34
mov ecx, esi
call fcn.0040e14f
mov eax, dword [esi + 0x360]
cmp eax, edi
je 0x40dd52
mov dword [esi + 0x370], 5
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xac]
mov eax, dword [esi + 0x36c]
cmp eax, edi
je 0x40dd87
lea edx, [ebp - 4]
mov dword [ebp - 4], edi
mov ecx, dword [eax]
push edx
push 0x44cb60
push eax
call dword [ecx]
test eax, eax
jl 0x40dd7a
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x40dd87
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xc], ebx
jne 0x40dd93
mov esi, ebx
jmp 0x40dc4a
mov esi, dword [esi + 0x6f0]
jmp 0x40dc4a