Function at 0x49d090
Capabilities:
Check if file exists
Copy file
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563c58
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, esi
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x49d0ce
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d0ef
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x49d0e3
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x49d0f9
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d17e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x49d10e
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x49d17e
push str..tmp
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.004078f0
add esp, 0xc
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov ecx, esi
cmovae eax, dword [ebp - 0x40]
cmp dword [esi + 0x14], 8
jb 0x49d140
mov ecx, dword [esi]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x49d176
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 4
cmovae eax, dword [ebp - 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x40]
call fcn.004029d0
cmp dword [esi + 0x14], 8
jb 0x49d186
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d1a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.004048f0
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x49d1c8
mov edi, dword [edi]
mov ecx, edi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d1e1
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.004048f0
xor esi, esi
nop dword [eax]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push 0
cmovae ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edi, esi
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x49d23e
inc esi
cmp edi, ebx
jge 0x49d23a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
jl 0x49d200
mov bl, 1
jmp 0x49d240
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x49d276
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49d26c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49d2e1
push edx
push ecx
call fcn.004845fc
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x49d2c0
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49d2b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49d2e6
push edx
push ecx
call fcn.004845fc
add esp, 8
test bl, bl
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
call fcn.004faed4
call fcn.004faed4
int3