Function at 0x42d660
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5060d8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x42dab2
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42d6a3
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.004c2071
add esp, 8
test eax, eax
jne 0x42dab2
mov eax, dword [ebp - 0x3a]
and eax, 0xf000
cmp eax, 0x4000
jne 0x42dab2
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42d6d5
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x42d8d9
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x42d6f1
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42d8d9
push 0x14
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x70]
push str.PathUtil::RemovePath
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.004084c0
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
mov dword [ebp - 4], 0
call fcn.004b69f9
add esp, 8
test eax, eax
je 0x42d74f
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
call fcn.004b69f9
add esp, 8
lea edx, [eax + 2]
jmp 0x42d754
mov edx, str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
mov ecx, edx
mov dword [ebp - 0x58], 0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d774
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.004084c0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x8c]
call fcn.00434e10
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x42d7b0
mov eax, dword [eax]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x74], esp
push 0x27
push str.SetFileAttributes_returned_error_:___s_
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004084c0
mov byte [ebp - 4], 3
call fcn.00408db0
push 0xc7
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
push 6
push dword [0x560f9c]
call fcn.0040d3e0
mov byte [ebp - 4], 1
add esp, 0x30
mov edx, dword [ebp - 0x78]
cmp edx, 8
jb 0x42d844
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d83a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dacf
push edx
push ecx
call fcn.004b51c1
add esp, 8
xor eax, eax
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
cmp edx, 8
jb 0x42d898
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d88e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dacf
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x42d8d9
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d8cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dacf
push edx
push ecx
call fcn.004b51c1
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42d8e3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x42dab2
push 0x14
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x58]
push str.PathUtil::RemovePath
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.004084c0
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
mov dword [ebp - 4], 4
call fcn.004b69f9
add esp, 8
test eax, eax
je 0x42d940
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
call fcn.004b69f9
add esp, 8
lea edx, [eax + 2]
jmp 0x42d945
mov edx, str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
mov ecx, edx
mov dword [ebp - 0x70], 0
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d965
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.004084c0
xor edx, edx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00434e10
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x42d998
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
push eax
jb 0x42d9a1
mov esi, dword [esi]
push esi
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x74], esp
push 0x20
push str.RemoveDirectory_failed:__s____s_
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004084c0
mov byte [ebp - 4], 7
call fcn.00408db0
push 0xcc
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x70]
push eax
push 6
push dword [0x560f9c]
call fcn.0040d3e0
mov edx, dword [ebp - 0x14]
add esp, 0x34
cmp edx, 8
jb 0x42da2e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42da24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dad4
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x42da78
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42da6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dad4
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x42daae
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42daa4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dad4
push edx
push ecx
call fcn.004b51c1
add esp, 8
xor al, al
jmp 0x42dab4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret
call fcn.004b9cae
call fcn.004b9cae
int3