Function at 0x40d85a
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.00420f70
add esp, 0xc
add esi, 0x230
push 0x44cbe4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edi, edi
push edi
push ebx
call fcn.0042299c
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 0xc], eax
jne 0x40dd78
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00414df2
mov ecx, esi
call fcn.0040965d
mov ecx, dword [esi + 0x1e4]
add ecx, 0x1fc
call fcn.0041450d
test al, al
jne 0x40d9dc
mov ebx, 0x446554
push edi
push 0x44c584
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x60], 0x44655c
mov dword [ebp - 0x58], ebx
call fcn.00403191
mov edi, 0x446550
push 0
push 0x44c584
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x7c], 0x44655c
mov dword [ebp - 0x74], ebx
call fcn.00403191
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.00416468
mov ecx, eax
add esp, 0xc
mov dword [ebp - 4], ecx
call fcn.00402c9d
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.00416468
mov ecx, eax
add esp, 0xc
mov dword [ebp - 4], ecx
call fcn.00402c9d
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.00402544
lea ecx, [ebp - 0x21c]
call fcn.00402544
lea ecx, [ebp - 0x88]
call fcn.00402544
lea ecx, [ebp - 0x6c]
call fcn.00402544
cmp byte [ebp - 5], 0
je 0x40dab7
push 0x4d
push 0xffffec6b
mov ecx, esi
call fcn.004122d3
jmp 0x40dab7
mov ebx, 0x446554
push edi
push 0x44c584
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x98], 0x44655c
mov dword [ebp - 0x90], ebx
call fcn.00403191
mov edi, 0x446550
push 0
push 0x44c584
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xd0], 0x44655c
mov dword [ebp - 0xc8], ebx
call fcn.00403191
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.00416468
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.00416468
add esp, 0xc
mov ecx, esi
push eax
call fcn.00413303
push eax
mov ecx, esi
call fcn.004122d3
lea ecx, [ebp - 0x200]
call fcn.00402544
lea ecx, [ebp - 0x174]
call fcn.00402544
lea ecx, [ebp - 0xdc]
call fcn.00402544
lea ecx, [ebp - 0xa4]
call fcn.00402544
push 0
push 0x44c584
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], 0x44655c
mov dword [ebp - 0x3c], ebx
call fcn.00403191
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.00416468
add esp, 0xc
lea ecx, [esi + 0x6b0]
push eax
call fcn.00402d12
lea ecx, [ebp - 0x190]
call fcn.00402544
lea ecx, [ebp - 0x50]
call fcn.00402544
lea ecx, [esi + 0x6b0]
call fcn.00402c9d
push dword [esi + 0x6b4]
lea ecx, [esi + 4]
call fcn.004036a0
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 0x40dc05
mov eax, dword [esi + 0x1e4]
cmp byte [eax + 0x1f2], 0
jne 0x40dbd9
cmp byte [eax + 0x1f3], 0
jne 0x40dbd9
push 1
lea ecx, [ebp - 0x34]
call fcn.00402783
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.00419d4a
test eax, eax
je 0x40dbb6
lea ecx, [ebp - 0x34]
call fcn.00402c9d
mov eax, dword [esi + 0x1e4]
push 0x40
add eax, 0x234
push eax
push dword [ebp - 0x30]
jmp 0x40dbc9
mov eax, dword [esi + 0x1e4]
push 0x40
add eax, 0x234
push eax
push 0x44cb70
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x34]
call fcn.00402852
lea ecx, [ebp - 0x18]
call fcn.004091cd
lea eax, [ebp - 0x158]
push 0x40
push eax
mov eax, dword [ebp - 0x118]
add eax, 0x1e8
push eax
call fcn.00420f70
add esp, 0xc
xor eax, eax
jmp 0x40dd73
cmp dword [esi + 0x3dc], 0
je 0x40dce2
push 0
push 0x44c5a4
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xec], 0x44655c
mov dword [ebp - 0xe4], ebx
call fcn.00403191
push 0
push 0x44c5a4
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xb4], 0x44655c
mov dword [ebp - 0xac], ebx
call fcn.00403191
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.00416468
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.00416468
add esp, 0xc
mov ecx, esi
push eax
call fcn.00415176
push eax
mov ecx, esi
call fcn.004122d3
lea ecx, [ebp - 0x1ac]
call fcn.00402544
lea ecx, [ebp - 0x1e4]
call fcn.00402544
lea ecx, [ebp - 0xc0]
call fcn.00402544
lea ecx, [ebp - 0xf8]
call fcn.00402544
mov ecx, esi
call fcn.0040def5
test al, al
jne 0x40dcfb
push 0x7b
push 0xffffec75
mov ecx, esi
call fcn.004122d3
mov ecx, esi
call fcn.0040df95
mov eax, dword [esi + 0x1e4]
cmp byte [eax + 0x1f1], 0
je 0x40dd1f
push 0x83
mov ecx, esi
call fcn.0040ee4d
jmp 0x40dd42
cmp byte [eax + 0x1f0], 0
je 0x40dd36
push 0x86
mov ecx, esi
call fcn.0040eb25
jmp 0x40dd42
push 0x88
mov ecx, esi
call fcn.0040ec6d
push eax
mov ecx, esi
call fcn.004122d3
lea ecx, [ebp - 0x18]
call fcn.004091cd
xor esi, esi
lea eax, [ebp - 0x158]
push 0x40
push eax
mov eax, dword [ebp - 0x118]
add eax, 0x1e8
push eax
call fcn.00420f70
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp - 0x10]
cmp eax, 0x80042002
jne 0x40de2e
push 1
lea ecx, [ebp - 0x114]
call fcn.00402783
lea ebx, [esi + 0x6b0]
mov ecx, ebx
call fcn.00402c9d
push dword [ebx + 4]
mov ecx, dword [esi + 0x1e0]
call fcn.0040dea8
mov ecx, dword [esi + 0x1e0]
push edi
lea eax, [ebp - 0x114]
push 0xffffffffffffffff
push eax
push 0x9028
call fcn.00419d4a
mov eax, dword [esi + 0x1e4]
cmp byte [eax + 0x1f3], 0
jne 0x40de1c
cmp byte [eax + 0x1f2], 0
jne 0x40de1c
mov eax, dword [esi + 0x344]
cmp eax, edi
je 0x40ddee
mov ebx, eax
jmp 0x40ddf6
mov eax, dword [esi + 0x1e0]
mov ebx, dword [eax]
lea ecx, [ebp - 0x114]
call fcn.00402c9d
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.00402852
mov ebx, 0x80042000
jmp 0x40de3e
mov ebx, 0x80042000
cmp eax, ebx
je 0x40de3e
mov ecx, esi
call fcn.0040e208
mov eax, dword [esi + 0x360]
cmp eax, edi
je 0x40de5c
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 0x40de91
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 0x40de84
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x40de91
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xc], ebx
jne 0x40de9d
mov esi, ebx
jmp 0x40dd54
mov esi, dword [esi + 0x6f0]
jmp 0x40dd54