Function at 0x401313
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push str.extr
push dword [ebp + 8]
call fcn.0040cdb0
pop ecx
pop ecx
test eax, eax
jne 0x40135b
push dword [ebp + 0xc]
push 0x41c090
call fcn.0040c9b0
pop ecx
pop ecx
call section..text
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401351
mov eax, dword [ebp - 4]
jmp 0x401552
call fcn.004011a8
jmp 0x401552
push str.atch
push dword [ebp + 8]
call fcn.0040cdb0
pop ecx
pop ecx
test eax, eax
jne 0x40154f
push dword [ebp + 0xc]
push 0x41b890
call fcn.0040c9b0
pop ecx
pop ecx
call fcn.00401096
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401397
mov eax, dword [ebp - 4]
jmp 0x401552
push 0
push 0x41ac90
push 0x41b090
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4013b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401552
push 0x41806c
push 0x41bc90
push 0x41b890
call fcn.004015ea
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4013e0
mov eax, dword [ebp - 4]
jmp 0x401552
push 0x41bc90
call fcn.004022b7
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jg 0x401407
push 0x41bc90
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xfffffffffffffff0
pop eax
jmp 0x401552
push dword [ebp - 0xc]
call fcn.0040cda1
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401432
push 0x41bc90
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xffffffffffffffef
pop eax
jmp 0x401552
push 0x418068
push 0x41bc90
call fcn.0040cc9b
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40145f
push 0x41bc90
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xffffffffffffffee
pop eax
jmp 0x401552
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push 1
push dword [ebp - 8]
call fcn.0040ccb9
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x4014a2
push dword [ebp - 0x14]
call fcn.0040cb1b
pop ecx
push 0x41bc90
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call fcn.0040ccae
pop ecx
push 0xffffffffffffffed
pop eax
jmp 0x401552
push dword [ebp - 0x14]
call fcn.0040cb1b
pop ecx
push 0x41bc90
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x41ac90
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4014e3
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call fcn.0040ccae
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401552
push dword [ebp - 0xc]
push dword [ebp - 8]
push 0
push 0x6d
push 0x418060
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
test eax, eax
jne 0x401516
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
call fcn.0040ccae
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401552
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
test eax, eax
jne 0x40153c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call fcn.0040ccae
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401552
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
call fcn.0040ccae
pop ecx
xor eax, eax
jmp 0x401552
push 0xfffffffffffffff3
pop eax
leave
ret