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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2959
mov eax, dword fs:[0]
push eax
sub esp, 0x604
mov eax, dword [0x51f524]
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 - 0x4e0], ecx
cmp dword [ebp + 0x18], 0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x4d4], edi
mov dword [ebp - 0x4d8], esi
jle 0x422e6c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048d040
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
call esi
push 0x4f0d80
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x4d0], esi
cmp esi, 0xffffffff
je 0x422d79
test esi, esi
je 0x422d79
nop word [eax + eax]
cmp word [ebp - 0x49c], 0x2e
mov ax, word [ebp - 0x49a]
jne 0x422a4a
test ax, ax
je 0x422d57
cmp ax, 0x2e
jne 0x422a5e
cmp word [ebp - 0x498], 0
je 0x422d57
push 0x4ef6ec
push dword [ebp - 0x4d8]
lea eax, [ebp - 0x4dc]
push eax
call fcn.00421c70
lea ecx, [ebp - 0x49c]
mov dword [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x4cc]
push eax
call fcn.00421c70
add esp, 0x18
mov edx, dword [ebp - 0x4dc]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422ab5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test byte [ebp - 0x4c8], 0x10
je 0x422ae8
mov ecx, dword [ebp + 0x14]
test cl, cl
je 0x422d32
mov eax, dword [ebp + 0x18]
dec eax
push eax
push ecx
mov ecx, dword [ebp - 0x4e0]
lea eax, [ebp - 0x4cc]
push ebx
push eax
push edi
call fcn.00422970
jmp 0x422d32
mov ecx, dword [ebx]
lea eax, [ebp - 0x49c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422b16
test dx, dx
je 0x422b12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422b16
add eax, 4
add ecx, 4
test dx, dx
jne 0x422af0
xor eax, eax
jmp 0x422b1b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x422c22
call fcn.00456910
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x422d32
push 0x47
push str.d:jenkins.jenkinsworkspacelib_commondumpuperdump_upermainwnd.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.00414b50
push 3
push 0x4f02a4
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00414b50
mov byte [ebp - 4], 7
call fcn.00456910
mov edi, eax
lea ecx, [ebp - 0x578]
push 0x2e1
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040e920
mov esi, eax
push str.RepeatFile:
push esi
mov byte [ebp - 4], 8
call fcn.0040ff50
mov ecx, dword [ebx]
mov edx, 0x4f0164
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.0040db80
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x578]
call fcn.00410080
lea ecx, [ebp - 0x230]
call fcn.0040f4f0
lea ecx, [ebp - 0x248]
call fcn.0040f4f0
mov esi, dword [ebp - 0x4d0]
mov edi, dword [ebp - 0x4d4]
jmp 0x422d32
call fcn.00456910
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x422d24
push 0x47
push str.d:jenkins.jenkinsworkspacelib_commondumpuperdump_upermainwnd.cpp
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], al
call fcn.00414b50
push 3
push 0x4f02a4
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 9
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.00414b50
mov byte [ebp - 4], 0xa
call fcn.00456910
mov edi, eax
lea ecx, [ebp - 0x610]
push 0x2e4
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0040e920
mov esi, eax
push str.AddFile:
push esi
mov byte [ebp - 4], 0xb
call fcn.0040ff50
mov ecx, dword [ebp - 0x4cc]
mov edx, 0x4f0164
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.0040db80
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x610]
call fcn.00410080
lea ecx, [ebp - 0x260]
call fcn.0040f4f0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 5
call fcn.0040f4f0
mov esi, dword [ebp - 0x4d0]
mov edi, dword [ebp - 0x4d4]
lea eax, [ebp - 0x4cc]
mov ecx, edi
push eax
call fcn.00432260
mov edx, dword [ebp - 0x4cc]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422d57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x4c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x422a30
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x422e6c
call fcn.00456910
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x422e6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x47
push str.d:jenkins.jenkinsworkspacelib_commondumpuperdump_upermainwnd.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov ebx, eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00414b50
push 3
push 0x4f0620
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.00414b50
mov byte [ebp - 4], 1
call fcn.00456910
mov edi, eax
lea ecx, [ebp - 0x578]
push 0x2cf
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040e920
mov esi, eax
push str.FindFirstFile_failed__error_code_
push esi
mov byte [ebp - 4], 2
call fcn.0040ff50
add esp, 8
mov ecx, esi
push ebx
call fcn.004170d0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x578]
call fcn.00410080
lea ecx, [ebp - 0x248]
call fcn.0040f4f0
lea ecx, [ebp - 0x230]
call fcn.0040f4f0
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.00466ab7
mov esp, ebp
pop ebp
ret 0x14