Function at 0x408d40
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579a2d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
push edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp + 0xc]
call fcn.0040b760
mov ecx, 0x5c4288
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408dad
test dx, dx
je 0x408da9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408dad
add eax, 4
add ecx, 4
test dx, dx
jne 0x408d87
xor esi, esi
jmp 0x408db2
sbb esi, esi
or esi, 1
mov edx, dword [ebp - 0x18]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408dcf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x408de2
push 1
push 0x5c4288
lea ecx, [ebp + 0xc]
call fcn.0040c2d0
push 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.0040b760
mov ecx, 0x5c4288
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408e1d
test dx, dx
je 0x408e19
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408e1d
add eax, 4
add ecx, 4
test dx, dx
jne 0x408df7
xor esi, esi
jmp 0x408e22
sbb esi, esi
or esi, 1
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408e3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x408e4f
push 1
push 0x5c4288
lea ecx, [ebp + 8]
call fcn.0040c2d0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.0040c100
add eax, 0x10
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
call fcn.0043623f
mov ecx, eax
test ecx, ecx
je 0x4093b5
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 4
call fcn.0043623f
mov ecx, eax
test ecx, ecx
je 0x4093bf
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
push 3
push 0x5c5bc4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0040c2d0
lea ecx, [ebp - 0x5c]
call fcn.004356d9
push 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x18]
call fcn.00435957
test eax, eax
je 0x4092e5
lea ecx, [ebp - 0x5c]
call fcn.00435b04
mov edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
push 0x10
mov dword [ebp - 0x6c], eax
call dword [edx + 0x38]
test eax, eax
jne 0x409226
lea ecx, [ebp - 0x5c]
call fcn.00435e91
test eax, eax
jne 0x409226
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00435bfc
mov byte [ebp - 4], 7
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x408f67
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x408f58
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x408f58
push edx
call fcn.0040c100
add esp, 4
mov dword [ebp - 0x1c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x408f50
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
jmp 0x408f67
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040c1e0
mov esi, dword [ebp - 0x28]
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408f86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00435bad
mov byte [ebp - 4], 8
lea ebx, [edi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x408feb
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x408fdc
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x408fdc
push edx
call fcn.0040c100
add esp, 4
mov dword [ebp - 0x1c], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x408fd4
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
jmp 0x408feb
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040c1e0
mov edi, dword [ebp - 0x24]
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov edx, dword [ebp - 0x64]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40900c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x10]
mov eax, 0x5c5bcc
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40903a
test dx, dx
je 0x409036
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40903a
add ecx, 4
add eax, 4
test dx, dx
jne 0x409014
xor eax, eax
jmp 0x40903f
sbb eax, eax
or eax, 1
test eax, eax
je 0x409095
push ecx
mov edx, esi
lea ecx, [ebp - 0x68]
call fcn.0040fe90
or dword [ebp - 0x20], 1
add esp, 4
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4093b5
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409088
test dx, dx
je 0x409084
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409088
add eax, 4
add ecx, 4
test dx, dx
jne 0x409062
xor eax, eax
jmp 0x40908d
sbb eax, eax
or eax, 1
mov byte [ebp - 0xd], 0
test eax, eax
jne 0x409099
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x20]
test al, 1
je 0x4090c0
mov edx, dword [ebp - 0x68]
and eax, 0xfffffffe
mov dword [ebp - 0x20], eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4090c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x4092db
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040b480
add esp, 0xc
mov byte [ebp - 4], 9
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409112
push ecx
mov ebx, esp
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.0040c100
add esp, 4
add eax, 0x10
mov dword [ebx], eax
call fcn.0040f080
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409131
mov ecx, dword [ebp - 0x14]
call fcn.0040f6d0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x30]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x14]
call fcn.0040f6d0
push 0
push 0x80
push 3
push 0
push 7
xorps xmm0, xmm0
push SysReAllocString
push esi
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4091a8
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x70]
xor edx, edx
add edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
adc ebx, 0
xor eax, eax
add eax, dword [ebp - 0x7c]
adc ecx, 0
jmp 0x4091b4
mov ebx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
push 0
push 0x80
push 3
push 0
push 7
push 0x40000000
push dword [ebp - 0x14]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40921a
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x94]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
jmp 0x4092c1
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
push 0x10
call dword [eax + 0x38]
test eax, eax
je 0x4092db
lea ecx, [ebp - 0x5c]
call fcn.00435e91
test eax, eax
jne 0x4092db
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00435bfc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b8d0
push ecx
mov ebx, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.0040c100
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0xb
mov ebx, esp
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov dword [ebp - 0x34], esp
push eax
mov dword [ebp - 0x3c], ebx
call fcn.0040c100
add eax, 0x10
mov dword [ebx], eax
push esp
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xc
call fcn.00435bfc
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 0xa
call fcn.00408d40
mov byte [ebp - 4], 6
add esp, 0xc
mov edx, dword [ebp - 0x2c]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4092db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x6c], 0
jne 0x408ed4
lea ecx, [ebp - 0x5c]
call fcn.004358fd
lea ecx, [ebp - 0x5c]
call fcn.0043587f
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x409310
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40932b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409349
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409367
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409385
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4093a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402c70
push 0x80004005
call fcn.00402c70
int3