Function at 0x40c450
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x78], eax
lea ebx, [ebp - 0x74]
mov esi, 0x493c44
mov eax, 0x4970b0
call fcn.00473c74
lea edx, [esi + 0x9ea]
push edx
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x40c4f4
push 0x10
lea ecx, [esi + 0xa10]
push ecx
lea eax, [esi + 0x9f8]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
mov word [ebx + 0x10], 8
lea edx, [esi + 0xa11]
lea eax, [ebp - 0xc]
call fcn.004914e8
inc dword [ebx + 0x1c]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0049162c
mov eax, dword [ebp - 0x10]
mov edx, 2
mov word [ebx + 0x10], 0x14
push eax
lea eax, [ebp - 0xc]
dec dword [ebx + 0x1c]
call fcn.004915fc
pop eax
mov word [ebx + 0x10], 8
inc dword [ebx + 0x1c]
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x40ca07
lea ecx, [esi + 0xa12]
push ecx
mov eax, dword [ebp - 0x7c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edi, eax
mov dword [0x4a5868], edi
test edi, edi
jne 0x40c57b
push 0x30
lea eax, [esi + 0xa4d]
push eax
lea edx, [esi + 0xa23]
push edx
push 0
call sub.USER32.DLL_MessageBoxA
mov word [ebx + 0x10], 0x20
lea edx, [esi + 0xa4e]
lea eax, [ebp - 0x14]
call fcn.004914e8
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0049162c
mov eax, dword [ebp - 0x10]
mov edx, 2
mov word [ebx + 0x10], 0x2c
push eax
lea eax, [ebp - 0x14]
dec dword [ebx + 0x1c]
call fcn.004915fc
pop eax
mov word [ebx + 0x10], 0x20
inc dword [ebx + 0x1c]
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x40ca07
mov word [ebx + 0x10], 0x38
xor ecx, ecx
mov dword [ebp - 4], ecx
inc dword [ebx + 0x1c]
mov word [ebx + 0x10], 0x44
push 0x80
lea eax, [ebp - 0xfc]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov word [ebx + 0x10], 0x50
lea edx, [ebp - 0xfc]
lea eax, [ebp - 0x18]
call fcn.004914e8
mov edx, eax
inc dword [ebx + 0x1c]
lea eax, [ebp - 4]
call fcn.0049162c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004915fc
cmp dword [ebp - 4], 0
je 0x40c5df
mov ecx, dword [ebp - 4]
mov eax, dword [ecx - 4]
jmp 0x40c5e1
xor eax, eax
cmp eax, 3
jle 0x40c618
mov word [ebx + 0x10], 0x5c
lea edx, [esi + 0xa4f]
lea eax, [ebp - 0x1c]
call fcn.004914e8
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.00491640
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004915fc
mov word [ebx + 0x10], 0x68
lea edx, [esi + 0xa51]
lea eax, [ebp - 0x20]
call fcn.004914e8
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 8]
call fcn.00491654
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004915fc
mov word [ebx + 0x10], 0x44
mov eax, dword [ebp - 0x78]
call fcn.004581c4
mov dword [ebp - 0x11c], eax
lea edx, [esi + 0xa5a]
mov dword [ebp - 0x118], 2
mov dword [ebp - 0x114], edx
lea edx, [esi + 0xa66]
mov word [ebx + 0x10], 0x74
lea eax, [ebp - 0x24]
call fcn.004914e8
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 4]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x28]
call fcn.00491654
cmp dword [ebp - 0x28], 0
je 0x40c6b7
mov edx, dword [ebp - 0x28]
jmp 0x40c6bd
lea edx, [esi + 0xa68]
mov dword [ebp - 0x110], edx
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004915fc
mov word [ebp - 0x10c], 0x14
lea eax, [ebp - 0x11c]
push eax
call sub.SHELL32.DLL_SHFileOperationA
test eax, eax
je 0x40c78b
push 0x30
lea ecx, [esi + 0xa83]
push ecx
lea eax, [esi + 0xa69]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
mov word [ebx + 0x10], 0x80
lea edx, [esi + 0xa84]
lea eax, [ebp - 0x2c]
call fcn.004914e8
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.0049162c
mov eax, dword [ebp - 0x10]
mov edx, 2
mov word [ebx + 0x10], 0x8c
push eax
lea eax, [ebp - 0x2c]
dec dword [ebx + 0x1c]
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004915fc
pop eax
mov word [ebx + 0x10], 0x80
inc dword [ebx + 0x1c]
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x40ca07
cmp dword [0x4a5868], 0
jne 0x40c808
mov word [ebx + 0x10], 0x98
lea edx, [esi + 0xa85]
lea eax, [ebp - 0x30]
call fcn.004914e8
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x10]
call fcn.0049162c
mov eax, dword [ebp - 0x10]
mov edx, 2
mov word [ebx + 0x10], 0xa4
push eax
lea eax, [ebp - 0x30]
dec dword [ebx + 0x1c]
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004915fc
pop eax
mov word [ebx + 0x10], 0x98
inc dword [ebx + 0x1c]
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x40ca07
mov word [ebx + 0x10], 0xb0
lea edx, [esi + 0xa86]
lea eax, [ebp - 0x34]
call fcn.004914e8
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x78]
add eax, 0x490
call fcn.004916e0
push eax
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004915fc
pop ecx
test cl, cl
je 0x40c8ae
push 1
lea edx, [esi + 0xa89]
mov word [ebx + 0x10], 0xbc
lea eax, [ebp - 0x38]
call fcn.004914e8
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 4]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x3c]
call fcn.00491654
cmp dword [ebp - 0x3c], 0
je 0x40c87f
mov edx, dword [ebp - 0x3c]
jmp 0x40c885
lea edx, [esi + 0xa92]
push edx
call dword [0x4a5868]
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004915fc
jmp 0x40c915
push 0
lea edx, [esi + 0xa93]
mov word [ebx + 0x10], 0xc8
lea eax, [ebp - 0x40]
call fcn.004914e8
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 4]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x44]
call fcn.00491654
cmp dword [ebp - 0x44], 0
je 0x40c8e8
mov edx, dword [ebp - 0x44]
jmp 0x40c8ee
lea edx, [esi + 0xa9c]
push edx
call dword [0x4a5868]
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004915fc
push 1
push 0
push 0
lea edx, [esi + 0xaa2]
mov word [ebx + 0x10], 0xd4
lea eax, [ebp - 0x48]
call fcn.004914e8
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 8]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x4c]
call fcn.00491654
cmp dword [ebp - 0x4c], 0
je 0x40c953
mov edx, dword [ebp - 0x4c]
jmp 0x40c959
lea edx, [esi + 0xaad]
push edx
lea eax, [esi + 0xa9d]
push eax
mov eax, dword [ebp - 0x78]
call fcn.004581c4
push eax
call sub.SHELL32.DLL_ShellExecuteA
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004915fc
mov ecx, dword [ebp - 0x7c]
push ecx
call sub.KERNEL32.DLL_FreeLibrary
mov word [ebx + 0x10], 0xe0
lea edx, [esi + 0xaae]
lea eax, [ebp - 0x50]
call fcn.004914e8
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x10]
call fcn.0049162c
mov eax, dword [ebp - 0x10]
mov edx, 2
mov word [ebx + 0x10], 0xec
push eax
lea eax, [ebp - 0x50]
dec dword [ebx + 0x1c]
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004915fc
dec dword [ebx + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004915fc
pop eax
mov word [ebx + 0x10], 0xe0
inc dword [ebx + 0x1c]
mov edx, dword [ebx]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret