Function at 0x42dae0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5061ab
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x557200]
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 edi, ecx
cmp dword [edi + 0x10], 0
je 0x42e334
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x42db24
mov eax, dword [edi]
lea ecx, [ebp - 0x70]
push ecx
push eax
call fcn.004c2071
add esp, 8
test eax, eax
jne 0x42e334
mov eax, dword [ebp - 0x6a]
and eax, 0xf000
cmp eax, 0x4000
jne 0x42e334
push 1
xor eax, eax
mov dword [ebp - 0x28], 0
push 0x535304
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004084c0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov edx, edi
lea ecx, [ebp - 0x88]
call fcn.0042c7b0
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42dbcf
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42dbc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e357
push edx
push ecx
call fcn.004b51c1
add esp, 8
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x2d8]
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42e0f2
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42dc24
sub ecx, edx
lea eax, [ebp - 0x2ac]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004084c0
push 0x535308
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00429b40
test eax, eax
je 0x42e097
push 0x53530c
lea ecx, [ebp - 0x28]
call fcn.00429b40
test eax, eax
je 0x42e097
lea eax, [ebp - 0x28]
mov edx, edi
push eax
lea ecx, [ebp - 0x40]
call fcn.0042c7b0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
test byte [ebp - 0x2d8], 0x10
push 0
je 0x42de2a
push 1
mov dl, 1
call fcn.0042dae0
add esp, 8
test al, al
jne 0x42e049
push 0x18
xor eax, eax
mov dword [ebp - 0x308], 0
push str.PathUtil::RemoveAllFiles
lea ecx, [ebp - 0x308]
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2f4], 7
mov word [ebp - 0x308], ax
call fcn.004084c0
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
mov byte [ebp - 4], 5
call fcn.004b69f9
add esp, 8
test eax, eax
je 0x42dd10
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
call fcn.004b69f9
add esp, 8
lea edx, [eax + 2]
jmp 0x42dd15
mov edx, str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
mov ecx, edx
mov dword [ebp - 0x2f0], 0
xor eax, eax
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 7
mov word [ebp - 0x2f0], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42dd41
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2f0]
call fcn.004084c0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30c], esp
push 0x26
push str.RemoveAllFiles_recursive__failed:___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 0xf3
lea eax, [ebp - 0x308]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x2f0]
push eax
push 6
push dword [0x560f9c]
call fcn.0040d3e0
mov byte [ebp - 4], 5
add esp, 0x30
mov edx, dword [ebp - 0x2dc]
cmp edx, 8
jb 0x42de0c
mov ecx, dword [ebp - 0x2f0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42de02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e352
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2f4]
cmp edx, 8
jb 0x42e049
mov ecx, dword [ebp - 0x308]
jmp 0x42e01a
xor dl, dl
call fcn.00423530
add esp, 4
test al, al
jne 0x42e049
push 0x18
xor eax, eax
mov dword [ebp - 0x2f0], 0
push str.PathUtil::RemoveAllFiles
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 7
mov word [ebp - 0x2f0], ax
call fcn.004084c0
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
mov byte [ebp - 4], 8
call fcn.004b69f9
add esp, 8
test eax, eax
je 0x42dea0
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
call fcn.004b69f9
add esp, 8
lea edx, [eax + 2]
jmp 0x42dea5
mov edx, str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
mov ecx, edx
mov dword [ebp - 0x308], 0
xor eax, eax
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2f4], 7
mov word [ebp - 0x308], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ded1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x308]
call fcn.004084c0
xor edx, edx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x58]
call fcn.00434e10
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x42df07
mov eax, dword [eax]
cmp dword [ebp - 0x2c], 8
push eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30c], esp
push 0x1b
push str.RemoveFile_failed:__s____s_
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004084c0
mov byte [ebp - 4], 0xb
call fcn.00408db0
push 0xfd
lea eax, [ebp - 0x2f0]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x308]
push eax
push 6
push dword [0x560f9c]
call fcn.0040d3e0
mov byte [ebp - 4], 9
add esp, 0x34
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x42dfad
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42dfa3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e352
push edx
push ecx
call fcn.004b51c1
add esp, 8
xor eax, eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x2f4]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x42e005
mov ecx, dword [ebp - 0x308]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42dffb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e352
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2dc]
cmp edx, 8
jb 0x42e049
mov ecx, dword [ebp - 0x2f0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42e03f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e352
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x42e087
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42e07d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e352
push edx
push ecx
call fcn.004b51c1
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42e0d5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42e0cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e352
push edx
push ecx
call fcn.004b51c1
add esp, 8
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42dc00
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, edi
call fcn.0042d660
test al, al
jne 0x42e2fb
push 0x18
xor eax, eax
mov dword [ebp - 0x2f0], 0
push str.PathUtil::RemoveAllFiles
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 7
mov word [ebp - 0x2f0], ax
call fcn.004084c0
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
mov byte [ebp - 4], 0xc
call fcn.004b69f9
add esp, 8
test eax, eax
je 0x42e165
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
call fcn.004b69f9
add esp, 8
lea edx, [eax + 2]
jmp 0x42e16a
mov edx, str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilPathUtil.cpp
mov ecx, edx
mov dword [ebp - 0x308], 0
xor eax, eax
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2f4], 7
mov word [ebp - 0x308], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e196
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x308]
call fcn.004084c0
xor edx, edx
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x58]
call fcn.00434e10
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 8
jb 0x42e1cc
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
push eax
jb 0x42e1d5
mov edi, dword [edi]
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30c], 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], 0xf
call fcn.00408db0
push 0x110
lea eax, [ebp - 0x2f0]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x308]
push eax
push 6
push dword [0x560f9c]
call fcn.0040d3e0
mov edx, dword [ebp - 0x44]
add esp, 0x34
cmp edx, 8
jb 0x42e26b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42e261
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e352
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov edx, dword [ebp - 0x2f4]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x42e2bf
mov ecx, dword [ebp - 0x308]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42e2b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e352
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov edx, dword [ebp - 0x2dc]
cmp edx, 8
jb 0x42e2fb
mov ecx, dword [ebp - 0x2f0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42e2f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e352
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x42e334
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42e32a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e357
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov al, 1
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.004b4f32
mov esp, ebp
pop ebp
ret
call fcn.004b9cae
call fcn.004b9cae
int3