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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9543
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x608554]
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 dword [ebp - 0x94], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ecx
push str.CBaseInfoCustomDrv::CopyCustomizedUPDFile
lea ecx, [ebp - 0x90]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e3018
test byte [ecx + 0x1c], 1
je 0x4e3018
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d9bd8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x5b
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
xor edi, edi
test esi, esi
je 0x4e3261
xor eax, eax
mov dword [ebp - 0x30], edi
push eax
push 0x5c6930
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004035d0
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x5c6930
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.004035d0
mov ecx, esi
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3080
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004035d0
mov ecx, dword [ebp - 0x94]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.004e26c0
mov byte [ebp - 4], 2
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4e30f5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e30eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e32ce
push edx
push ecx
call fcn.0056deb6
add esp, 8
test esi, esi
je 0x4e31e7
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x58]
add edx, 0x1c
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebx + ebx*2]
lea edx, [edx + eax*8]
call fcn.0040dcf0
add esp, 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4e3159
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x20
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDecompressOrCopyFileW]
test eax, eax
jne 0x4e31ad
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
test cl, 1
je 0x4e31a8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
and ecx, 0xfffffffe
push ecx
push eax
call esi
mov edi, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4e31e7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e31dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e32d3
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4e3221
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e3217
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e32d8
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4e325b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e3251
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e32dd
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov ecx, dword [0x608f30]
mov byte [ebp - 0x8c], 1
cmp ecx, 0x608f30
je 0x4e32a3
test byte [ecx + 0x1c], 1
je 0x4e32a3
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5d9bd8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x5c
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x90]
call fcn.0040a570
mov eax, edi
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.0056d977
mov esp, ebp
pop ebp
ret 8
call fcn.00574908
call fcn.00574908
call fcn.00574908
call fcn.00574908
int3