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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66e044
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x718924]
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 ebx, dword [ebp + 8]
mov eax, 0x4ec4ec4f
mov dword [ebp - 0xb0], ebx
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push str._UpdateSelf::ProcessFiles_file_count:__u.
push str.KUpdateSelf::ProcessFiles
push 0x133
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClientupdateselfUpdateSelf.cpp
push 7
call fcn.0048ffd0
mov esi, dword [ebx]
add esp, 0x18
cmp esi, dword [ebx + 4]
je 0x48d870
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48d08a
mov eax, dword [esi]
push eax
call ebx
cmp eax, 0xffffffff
je 0x48d840
test al, 0x10
jne 0x48d840
cmp byte [esi + 0x30], 0
je 0x48d607
push str.Need_stop_services.
push str.KUpdateSelf::ProcessFiles
push 0x142
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClientupdateselfUpdateSelf.cpp
push 7
call fcn.0048ffd0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 1
push eax
call fcn.0048ba30
push str.SMD
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
call fcn.004481e0
push str.wpsupdatesvr.exe
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
call fcn.004481e0
mov edi, eax
add esp, 0x30
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x48d1b2
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x48d168
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d15e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov dword [ebp - 0x30], 0
xor eax, eax
mov word [ebp - 0x40], ax
mov dword [ebp - 0x2c], 7
mov eax, dword [edi]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x48d1ec
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d1e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x48d23e
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d234
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov edx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x48d296
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d28c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
lea eax, [ebp - 0xa0]
push eax
call fcn.0048ba30
push str.SMD
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
call fcn.004481e0
push str.updatesvr.exe
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 5
push eax
call fcn.004481e0
mov edi, eax
add esp, 0x1c
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x48d35c
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x48d312
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d308
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov eax, dword [edi]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x48d396
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d38c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x48d3e8
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d3de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov edx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x48d440
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d436
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0xa4], 0
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
cmp eax, 0xffffffff
je 0x48d523
test al, 0x10
jne 0x48d523
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0xa4]
push ecx
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push str._unregserver
push eax
call fcn.0048db50
add esp, 0xc
test eax, eax
jns 0x48d574
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x48d4cb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d4c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x48d519
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d50f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov eax, 4
jmp 0x48d872
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 0xffffffff
je 0x48d574
test al, 0x10
jne 0x48d574
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0xa4]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push str._unregserver
push eax
call fcn.0048db50
add esp, 0xc
test eax, eax
js 0x48d491
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x48d5b2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d5a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x48d607
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d5fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
cmp dword [esi + 0x2c], 8
lea edi, [esi + 0x18]
mov ecx, edi
jb 0x48d614
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48d61e
mov eax, dword [esi]
push ecx
push eax
push str.CopyFile:_src___s__dst___s.
push str.KUpdateSelf::ProcessFiles
push 0x157
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClientupdateselfUpdateSelf.cpp
push 7
call fcn.0048ffd0
add esp, 0x1c
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x48d648
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x48d65e
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00463030
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
push str.wpsupdate.exe
cmovae eax, dword [ebp - 0x88]
push eax
mov dword [ebp - 4], 6
call fcn.004e70a0
add esp, 0x10
test eax, eax
jne 0x48d7be
lea ebx, [eax + 4]
lea esp, [esp]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x48d6aa
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48d6b4
mov eax, dword [esi]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x48d718
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x48d6e0
movzx eax, ax
or eax, 0x80070000
push eax
push ebx
push str.Failed_CopyFile__i_:_0x_08x.
push str.KUpdateSelf::ProcessFiles
push 0x167
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClientupdateselfUpdateSelf.cpp
push 7
call fcn.0048ffd0
add esp, 0x1c
test ebx, ebx
je 0x48d88e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x48d6a0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp byte [esi + 0x30], 0
je 0x48d771
push str.Start_services.
push str.KUpdateSelf::ProcessFiles
push 0x17a
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClientupdateselfUpdateSelf.cpp
push 7
call fcn.0048ffd0
add esp, 0x14
mov dword [ebp - 0xac], 0
cmp dword [edi + 0x14], 8
jb 0x48d754
mov edi, dword [edi]
lea eax, [ebp - 0xac]
push eax
push str._service
push edi
call fcn.0048db50
add esp, 0xc
test eax, eax
js 0x48d904
mov edx, dword [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x48d85e
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d7af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
jmp 0x48d85e
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x48d7c8
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48d7d2
mov eax, dword [esi]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x48d71e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x48d7f6
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_CopyFile:_0x_08x.
push str.KUpdateSelf::ProcessFiles
push 0x172
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClientupdateselfUpdateSelf.cpp
push 7
call fcn.0048ffd0
mov ecx, esp
mov dword [ebp - 0xa8], esp
push edi
call fcn.00451440
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
push esi
call fcn.00451440
mov byte [ebp - 4], 6
call fcn.0048d950
add esp, 0x30
jmp 0x48d71e
push str.Source_file_doesnt_exists._Skipping.
push str.KUpdateSelf::ProcessFiles
push 0x13b
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClientupdateselfUpdateSelf.cpp
push 7
call fcn.0048ffd0
add esp, 0x14
mov eax, dword [ebp - 0xb0]
add esi, 0x34
cmp esi, dword [eax + 4]
jne 0x48d080
xor eax, eax
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.004cb998
mov esp, ebp
pop ebp
ret
push 0xd
xor eax, eax
mov dword [ebp - 0x48], 0
push str.copyfile_fail
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.0044e920
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
push dword [ebp - 0xa8]
call fcn.0048c8f0
mov edx, dword [ebp - 0x44]
add esp, 8
cmp edx, 8
jb 0x48d8fd
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d8f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov esi, 5
jmp 0x48d909
mov esi, 6
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x48d942
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d938
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d949
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov eax, esi
jmp 0x48d872
call fcn.004e6589
int3