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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10153ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x694
mov eax, dword [0x101a154c]
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 eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push 0x208
mov dword [ebp - 0x69c], eax
lea eax, [ebp - 0x218]
push ebx
mov dword [ebp - 0x690], ebx
push eax
movlpd qword [ebp - 0x688], xmm0
call fcn.101213d0
mov eax, dword [esi]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jle 0x1004c4b5
push 0x2a
push eax
call fcn.1012195d
mov ecx, eax
add esp, 8
mov eax, dword [esi]
test ecx, ecx
je 0x1004c4b5
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x1004c4ca
push 0x10161c78
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x1004c4d8
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x464
lea eax, [ebp - 0x67c]
push 0
push eax
call fcn.101213d0
mov eax, 0x5c
mov dword [ebp - 0x220], ebx
add esp, 0xc
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x21c], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x1004c5bf
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x650]
push 0x104
push eax
call fcn.10131c7d
push eax
call fcn.1002f3d0
add esp, 0x10
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x220], eax
cmp eax, 0xffffffff
je 0x1004c96c
push 0
lea eax, [ebp - 0x42c]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x1004c62e
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x1004c5b7
cmp eax, 0xffffffff
je 0x1004c5b7
push eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
mov dword [ebp - 0x220], 0
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x688]
mov esi, dword [ebp - 0x684]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x21c], 0
test ecx, ecx
je 0x1004c5f3
cmp ecx, 0xffffffff
je 0x1004c5f3
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ecx, ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 0
test ecx, ecx
je 0x1004c60e
cmp ecx, 0xffffffff
je 0x1004c60e
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
push ecx
call eax
mov eax, edi
mov edx, esi
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.100f8fe1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x42c]
push 0x5c
push eax
call fcn.10121805
mov esi, eax
lea eax, [ebp - 0x42c]
push 0x2f
push eax
call fcn.10121805
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x1004c65f
test esi, esi
je 0x1004c67a
lea ecx, [ebp - 0x42c]
test esi, esi
lea eax, [ebp - 0x42c]
cmovne eax, esi
cmp ecx, eax
jb 0x1004c675
xor eax, eax
mov word [ecx], ax
jmp 0x1004c67a
xor ecx, ecx
mov word [eax], cx
mov esi, dword [ebp - 0x684]
mov eax, 1
mov edi, dword [ebp - 0x688]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x68c], esi
mov dword [ebp - 0x680], edi
test eax, eax
je 0x1004c78a
mov ecx, dword [ebp - 0x67c]
shr ecx, 4
and ecx, 1
je 0x1004c6f4
cmp word [ebp - 0x650], 0x2e
jne 0x1004c6f4
mov dx, word [ebp - 0x64e]
test dx, dx
je 0x1004c6d9
cmp dx, 0x2e
jne 0x1004c6f4
cmp word [ebp - 0x64c], 0
jne 0x1004c6f4
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x1004c60e
lea ecx, [ebp - 0x67c]
push ecx
push eax
jmp 0x1004c952
test ecx, ecx
je 0x1004c78a
cmp dword [ebp + 0x10], 0
jne 0x1004c723
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x1004c60e
lea ecx, [ebp - 0x67c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1004c959
lea eax, [ebp - 0x6a0]
push eax
lea ecx, [ebp - 0x67c]
call fcn.1004cad0
mov ecx, dword [ebp + 0x10]
dec ecx
mov byte [ebp - 4], 1
push ecx
push dword [ebp - 0x69c]
push eax
call fcn.1004c430
add esp, 0xc
mov byte [ebp - 4], 0
add edi, eax
mov dword [ebp - 0x680], edi
adc esi, edx
mov edx, dword [ebp - 0x6a0]
mov dword [ebp - 0x68c], esi
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004c77f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
jmp 0x1004c934
mov ecx, dword [ebp - 0x69c]
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x684], ecx
cmp edi, ecx
jne 0x1004c810
mov dword [ebp - 0x684], 0
test eax, eax
je 0x1004c7d4
mov edi, dword [ebp - 0x680]
mov ecx, dword [ebp - 0x65c]
add edi, ecx
mov edx, dword [ebp - 0x660]
adc esi, edx
mov dword [ebp - 0x680], edi
mov dword [ebp - 0x68c], esi
jmp 0x1004c934
mov edi, dword [ebp - 0x680]
xorps xmm0, xmm0
movlpd qword [ebp - 0x688], xmm0
mov ecx, dword [ebp - 0x688]
add edi, ecx
mov edx, dword [ebp - 0x684]
adc esi, edx
mov dword [ebp - 0x680], edi
mov dword [ebp - 0x68c], esi
jmp 0x1004c934
mov byte [ebp - 4], 2
mov dword [ebp - 0x694], 0
call fcn.10017d20
mov ecx, eax
test ecx, ecx
je 0x1004c97d
mov eax, dword [ecx]
call dword [eax + 0xc]
or ebx, 1
cmp dword [ebp - 0x21c], 0
mov dword [ebp - 0x690], ebx
lea esi, [eax + 0x10]
mov dword [ebp - 0x694], esi
je 0x1004c87e
lea eax, [ebp - 0x650]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004c856
sub eax, edx
lea ecx, [ebp - 0x694]
sar eax, 1
push eax
lea eax, [ebp - 0x650]
push eax
call fcn.1001c8c0
mov esi, dword [ebp - 0x694]
push dword [edi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
and dword [ebp - 0x690], 0xfffffffe
mov ebx, eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1004c8ac
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
test ebx, ebx
je 0x1004c913
mov dword [ebp - 0x694], 0
test eax, eax
je 0x1004c8e6
mov ecx, dword [ebp - 0x65c]
add dword [ebp - 0x680], ecx
mov esi, dword [ebp - 0x68c]
mov edx, dword [ebp - 0x660]
adc esi, edx
mov dword [ebp - 0x68c], esi
jmp 0x1004c919
mov esi, dword [ebp - 0x68c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x698], xmm0
mov ecx, dword [ebp - 0x698]
add dword [ebp - 0x680], ecx
mov edx, dword [ebp - 0x694]
adc esi, edx
mov dword [ebp - 0x68c], esi
jmp 0x1004c919
mov esi, dword [ebp - 0x68c]
mov ebx, dword [ebp - 0x690]
add edi, 4
cmp edi, dword [ebp - 0x684]
jne 0x1004c810
mov edi, dword [ebp - 0x680]
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x1004c60e
test eax, eax
je 0x1004c5d1
lea eax, [ebp - 0x67c]
push eax
push ecx
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
call eax
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x1004c6a5
jmp 0x1004c5cb
mov esi, dword [ebp - 0x684]
mov edi, dword [ebp - 0x688]
jmp 0x1004c60e
push 0x80004005
call fcn.100142b0
int3