Function at 0x403d40
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x403dd5
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x403d5a
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403dd5
mov ecx, esi
call fcn.00403440
test al, al
je 0x403d75
xor al, al
pop esi
pop ebp
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x403d7f
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403dd5
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x403d94
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x403db4
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x403dac
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x403dbe
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403dd5
mov edx, dword [ebp + 8]
mov ecx, esi
pop esi
pop ebp
jmp 0x404cf0
mov al, 1
pop esi
pop ebp
ret
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5048d1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2e0
mov eax, dword [0x52d324]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x80
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.004df150
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x98]
push 0x51e8dc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov dword [ebp - 0x2a8], 0
add esp, 0xc
mov dword [ebp - 0x2a4], 7
mov word [ebp - 0x2b8], ax
mov dword [ebp - 4], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x404d91
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 4
push str..tmp
push 0
call fcn.00402bf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x404eb5
xor ecx, ecx
mov dword [ebp - 0x2c0], 0
add eax, 4
mov word [ebp - 0x2d0], cx
cmp dword [esi + 0x10], eax
mov ecx, esi
mov dword [ebp - 0x2bc], 7
cmovb eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x404ddf
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x2d0]
call fcn.00402710
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404e00
sub ecx, edx
lea eax, [ebp - 0x98]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2d0]
call fcn.004029e0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2f0], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x2b8]
movq qword [ebp - 0x2e0], xmm0
call fcn.00402480
movups xmm0, xmmword [ebp - 0x2f0]
movups xmmword [ebp - 0x2b8], xmm0
movq xmm0, qword [ebp - 0x2e0]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2bc]
movq qword [ebp - 0x2a8], xmm0
cmp edx, 8
jb 0x404f0c
mov ecx, dword [ebp - 0x2d0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404f02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405070
jmp 0x404f02
push str..tmp
mov edx, esi
lea ecx, [ebp - 0x2d0]
call fcn.00402ac0
add esp, 4
mov edx, eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
lea eax, [ecx + 2]
mov dword [ebp - 0x2dc], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404ee0
sub ecx, dword [ebp - 0x2dc]
lea eax, [ebp - 0x98]
sar ecx, 1
push ecx
push eax
mov ecx, edx
jmp 0x404e1d
push edx
push ecx
call fcn.004dc783
add esp, 8
cmp dword [edi + 0x10], 0
je 0x404fb7
cmp dword [ebp - 0x2a4], 8
lea eax, [ebp - 0x2b8]
cmovae eax, dword [ebp - 0x2b8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x2a0]
push 0x104
push eax
call fcn.004e3139
lea ecx, [ebp - 0x2a0]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404f50
sub ecx, edx
lea eax, [ebp - 0x2a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00402710
mov ecx, dword [edi + 0x14]
mov edx, edi
mov eax, dword [edi + 0x10]
cmp ecx, 8
jb 0x404f81
mov edx, dword [edi]
cmp word [edx + eax*2 - 2], 0x5c
je 0x404fa2
push 1
push 0x51e7c0
push ecx
lea ecx, [ebp - 0x2b8]
call fcn.00406680
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
cmp ecx, 8
jb 0x404fa9
mov edi, dword [edi]
push eax
push edi
push ecx
lea ecx, [ebp - 0x2b8]
call fcn.00406680
cmp dword [ebp - 0x2a4], 8
lea eax, [ebp - 0x2b8]
cmovae eax, dword [ebp - 0x2b8]
cmp dword [esi + 0x14], 8
jb 0x404fd3
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x405009
cmp dword [ebp - 0x2a4], 8
lea eax, [ebp - 0x2b8]
push 4
cmovae eax, dword [ebp - 0x2b8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne byte [ebp - 0x2d1]
jmp 0x405010
mov byte [ebp - 0x2d1], 0
mov edx, dword [ebp - 0x2a4]
cmp edx, 8
jb 0x40504c
mov ecx, dword [ebp - 0x2b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405042
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405070
push edx
push ecx
call fcn.004dc783
add esp, 8
mov al, byte [ebp - 0x2d1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004dc214
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004e2bf9
int3