Function at 0x40d3e0
Capabilities:
Check if file exists
Check mutex on windows
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x419bcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x269]
mov byte [esp + 0x268], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x268]
push eax
push 1
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x40d739
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x165]
mov byte [esp + 0x164], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
xor esi, esi
stosb byte es:[edi], al
call fcn.004132f0
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
lea ecx, [esp + 0x164]
push 0x104
push ecx
push 8
mov dword [esp + 0x40], eax
call fcn.0040ff60
add esp, 0xc
test eax, eax
je 0x40d739
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40d4c6
lea eax, [esp + 0x164]
push esi
push eax
call fcn.00402df0
add esp, 8
test eax, eax
je 0x40d739
mov cl, 0xd5
push 0x28
mov byte [esp + 0x12], cl
mov byte [esp + 0x15], cl
mov byte [esp + 0x26], cl
mov cl, 0xa3
mov byte [esp + 0x2a], cl
mov byte [esp + 0x31], cl
lea ecx, [esp + 0x10]
mov bl, 0x9a
mov al, 0xd6
mov dl, 0x95
push ecx
push 0xe
lea ecx, [esp + 0x5c]
mov byte [esp + 0x18], 0x8c
mov byte [esp + 0x19], 0xef
mov byte [esp + 0x1b], 0xe0
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], dl
mov byte [esp + 0x20], 0x98
mov byte [esp + 0x21], 0xd2
mov byte [esp + 0x22], 0xbd
mov byte [esp + 0x23], 0xe6
mov byte [esp + 0x24], 0x9e
mov byte [esp + 0x25], 0xa7
mov byte [esp + 0x26], 0xa4
mov byte [esp + 0x27], 0x8e
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], 0xf5
mov byte [esp + 0x2a], 0xf4
mov byte [esp + 0x2b], 0x97
mov byte [esp + 0x2c], 0x83
mov byte [esp + 0x2d], al
mov byte [esp + 0x2f], 0x96
mov byte [esp + 0x30], 0x9c
mov byte [esp + 0x31], 0xb9
mov byte [esp + 0x33], 0x92
mov byte [esp + 0x34], 0xec
mov byte [esp + 0x35], 0xd7
mov byte [esp + 0x36], al
mov byte [esp + 0x37], dl
mov byte [esp + 0x38], 0x9b
mov byte [esp + 0x3a], 0xa8
mov byte [esp + 0x3b], 0x94
mov byte [esp + 0x3c], 0xea
mov byte [esp + 0x3d], 0xad
mov byte [esp + 0x3e], 0xed
mov byte [esp + 0x3f], 0x81
call fcn.00404880
lea ecx, [esp + 0x50]
mov dword [esp + 0x478], esi
call fcn.00404910
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x38], ebx
je 0x40d5f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d5f1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x50]
mov dword [esp + 0x478], 0xffffffff
call fcn.004048d0
xor eax, eax
jmp 0x40d739
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0x168]
push 0x104
lea eax, [esp + 0x68]
push edx
push eax
call ebp
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x64]
push edi
push ecx
call ebx
lea edx, [esp + 0x64]
push 0
lea eax, [esp + 0x270]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40d6c3
xor ecx, ecx
mov byte [esp + 0x40], al
mov dword [esp + 0x41], ecx
mov dword [esp + 0x45], ecx
mov dword [esp + 0x49], ecx
mov dword [esp + 0x4d], ecx
mov word [esp + 0x51], cx
mov byte [esp + 0x53], cl
lea edx, [esp + 0x168]
push 0x104
lea eax, [esp + 0x68]
push edx
push eax
inc esi
call ebp
lea ecx, [esp + 0x64]
push edi
push ecx
call ebx
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
lea eax, [esp + 0x40]
push 0xa
push eax
push esi
call sub.MSVCRT.dll__ltoa
add esp, 0xc
lea ecx, [esp + 0x64]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x64]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
lea ecx, [esp + 0x64]
push 0
lea edx, [esp + 0x270]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40d656
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x371]
mov byte [esp + 0x370], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x64]
lea ecx, [esp + 0x370]
push eax
push str._s_Rundll32_R
push 0x103
push ecx
call sub.MSVCRT.dll__snprintf
lea edx, [esp + 0x380]
push 0
push edx
push str.rundll32.exe
call fcn.00410380
mov esi, eax
mov eax, dword [esp + 0x58]
add esp, 0x1c
test eax, eax
pop ebp
je 0x40d723
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x50]
mov dword [esp + 0x478], 0xffffffff
call fcn.004048d0
mov eax, esi
mov ecx, dword [esp + 0x470]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x470
ret