Function at 0x401440
Capabilities:
Check mutex on windows
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4223f0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x42ce60]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
call fcn.00402b9a
push 0x44
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00410cc0
add esp, 0xc
mov ecx, 5
mov edi, 1
push 0x200
mov dword [esp + 0x38], 0x44
mov word [esp + 0x68], cx
mov dword [esp + 0x64], edi
call fcn.0040253e
add esp, 4
mov esi, eax
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
lea ecx, [esp + 0x18]
call fcn.00402020
push 0x100
push esi
push 0
mov dword [esp + 0x94], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea ecx, [esp + 0x20]
call fcn.00402020
mov byte [esp + 0x88], 1
call fcn.004032f3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40150a
push 0x80004005
call fcn.00402450
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x88], 2
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add eax, 0xfffffffc
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
call fcn.004018c0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 3
call fcn.00401d20
mov byte [esp + 0x88], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401575
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
push 0x426f9c
lea ecx, [esp + 0x20]
call fcn.00401bc0
push 0x426fa0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00401940
xor ecx, ecx
add esp, 0xc
test esi, esi
setne cl
test ecx, ecx
jne 0x4015b0
push 0x80004005
call fcn.00402450
mov eax, dword [eax]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4015da
test dx, dx
je 0x4015d6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4015da
add eax, 4
add ecx, 4
test dx, dx
jne 0x4015b4
xor eax, eax
jmp 0x4015df
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x20]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401604
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4016b0
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 4], edi
jle 0x401626
mov ecx, dword [ebx - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402160
mov ebx, dword [esp + 0x18]
push 3
push 0
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x426fc4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4016b9
push 0x426fa0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00401940
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4016b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4016b9
call fcn.00401010
mov ebx, dword [esp + 0x18]
push 0x426f6c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00401940
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 0xc
push 0
push eax
push esi
call edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4016fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x426fa0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00401940
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
push esi
call edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40173d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x426fdc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00401940
add esp, 0xc
mov byte [esp + 0x88], 4
mov eax, dword [eax]
push 0x90
mov edi, eax
call fcn.00401360
mov byte [esp + 0x8c], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401795
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x426ff4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00401940
add esp, 0xc
mov byte [esp + 0x88], 5
mov eax, dword [eax]
push 0x8f
mov edi, eax
call fcn.00401360
mov byte [esp + 0x8c], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4017ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x88], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401811
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401839
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401864
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret