Function at 0x40fed0
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x493e6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
mov eax, dword [0x4bdc98]
xor eax, esp
mov dword [esp + 0x324], eax
mov eax, dword [esp + 0x338]
mov ecx, dword [eax + 0x14]
push ebx
xor ebx, ebx
cmp ecx, ebx
push esi
mov esi, dword [esp + 0x344]
je 0x4103b5
cmp dword [esi + 0x14], ebx
je 0x4103b5
push ebp
push 0x4a1130
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00402280
push 0x4beab8
push eax
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x354], ebx
call fcn.00402180
push 0x4a1130
push eax
lea edx, [esp + 0xc8]
push edx
mov byte [esp + 0x360], 1
call fcn.00402280
add esp, 0x24
lea ecx, [esp + 0x38]
mov byte [esp + 0x33c], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x33c], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x4a1130
lea eax, [esp + 0xc8]
push esi
push eax
call fcn.00402280
add esp, 0xc
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov ebp, 8
push ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], 6
call fcn.0040fc00
push 0x49f4e4
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], 7
call fcn.0040fd80
lea ecx, [esp + 0x54]
mov byte [esp + 0x33c], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x49f57c
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], 8
call fcn.0040fd80
lea ecx, [esp + 0x54]
mov byte [esp + 0x33c], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str..dll
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x94]
push ecx
call fcn.00402280
add esp, 0xc
mov eax, dword [esp + 0xa4]
mov byte [esp + 0x33c], 9
cmp eax, ebp
mov eax, dword [esp + 0x90]
jae 0x41006e
lea eax, [esp + 0x90]
push edi
lea edx, [esp + 0xe4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410131
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x344], 0xa
call fcn.0040fd80
lea ecx, [esp + 0x58]
mov byte [esp + 0x340], 9
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0xe4]
push edx
push esi
call edi
test eax, eax
je 0x41012a
mov bl, 0xb
lea ebx, [ebx]
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x344], bl
call fcn.0040fd80
lea ecx, [esp + 0x58]
mov byte [esp + 0x340], 9
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea edx, [esp + 0xe4]
push edx
push esi
call edi
test eax, eax
jne 0x4100e0
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
lea edi, [eax + 4]
test eax, eax
je 0x410358
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x410358
lea esi, [edi - 4]
push esi
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.00402180
add esp, 0xc
push 0x264
push str._views_br_LiveUpdate_Client_20090305_B044__tsp_product1.7_Code_srcLiveUpdateuiwin32LiveUpdate.cpp
mov ecx, 0x4becf0
mov byte [esp + 0x348], 0xc
call fcn.00441240
cmp dword [edi + 0x14], ebp
jb 0x41019f
mov eax, dword [edi]
jmp 0x4101a1
mov eax, edi
push eax
push str.Copy_File__s
push 0x4becf0
call fcn.00442cb0
push esi
lea edx, [esp + 0xd8]
push edx
lea eax, [esp + 0x88]
push eax
call fcn.00402180
add esp, 0x18
cmp dword [esp + 0x8c], ebp
mov eax, dword [esp + 0x78]
mov byte [esp + 0x340], 0xd
jae 0x4101e3
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41020f
test al, 1
je 0x41020f
cmp dword [esp + 0x8c], ebp
mov ecx, dword [esp + 0x78]
jae 0x410204
lea ecx, [esp + 0x78]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x8c], ebp
mov ecx, dword [esp + 0x78]
jae 0x410220
lea ecx, [esp + 0x78]
cmp dword [esp + 0x70], ebp
mov eax, dword [esp + 0x5c]
jae 0x41022e
lea eax, [esp + 0x5c]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41026d
lea ecx, [esp + 0x74]
mov byte [esp + 0x340], 0xc
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x58]
mov byte [esp + 0x340], 9
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x14]
inc ebx
add edi, 0x1c
jmp 0x410138
push 0x26f
push str._views_br_LiveUpdate_Client_20090305_B044__tsp_product1.7_Code_srcLiveUpdateuiwin32LiveUpdate.cpp
mov ecx, 0x4becf0
call fcn.00441240
cmp dword [esp + 0x8c], ebp
mov ecx, dword [esp + 0x78]
jae 0x410292
lea ecx, [esp + 0x78]
cmp dword [esp + 0x70], ebp
mov eax, dword [esp + 0x5c]
jae 0x4102a0
lea eax, [esp + 0x5c]
push ecx
push eax
push str.Copy_file__s____s_Failed
push 1
push 0x4becf0
call fcn.00442d50
add esp, 0x14
lea ecx, [esp + 0x74]
mov byte [esp + 0x340], 0xc
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x58]
mov byte [esp + 0x340], 9
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x90]
mov byte [esp + 0x340], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], 5
call fcn.0040f520
lea ecx, [esp + 0xc8]
mov byte [esp + 0x340], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xac]
mov dword [esp + 0x340], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x330]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x328]
pop ebx
xor ecx, esp
call fcn.00491e29
add esp, 0x334
ret 8
lea ecx, [esp + 0x90]
mov byte [esp + 0x340], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], 5
call fcn.0040f520
lea ecx, [esp + 0xc8]
mov byte [esp + 0x340], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xac]
mov dword [esp + 0x340], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x41032f
xor eax, eax
jmp 0x410331