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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5345d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x13c
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x148]
push esi
push eax
mov dword [ebp - 0x14c], esi
call fcn.004b53e0
add esp, 0xc
mov edx, edi
mov dword [ebp - 0x154], esi
call fcn.0047c3ca
test eax, eax
je 0x419965
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
leave
ret
push 1
mov ebx, 0x71c
push ebx
call fcn.004b422c
mov esi, eax
test esi, esi
pop ecx
pop ecx
mov dword [ebp - 0x150], esi
je 0x419954
push 1
push ebx
call fcn.004b422c
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x158], eax
jne 0x41999d
push esi
call fcn.004b4080
pop ecx
jmp 0x419954
push edi
mov ecx, ebx
mov eax, esi
call fcn.0047c3fc
pop ecx
mov edx, esi
call fcn.0047cea7
call fcn.0047cf47
push 0x22
mov edi, esi
call fcn.0047cd81
pop ecx
push esi
call fcn.0041b0f5
test eax, eax
pop ecx
je 0x4199ff
mov edi, 0x4d420c
push edi
push esi
call fcn.004b46f0
test eax, eax
pop ecx
pop ecx
jne 0x4199ff
push esi
call fcn.004b4450
cmp byte [eax + esi - 1], 0x5c
pop ecx
je 0x4199f6
push 0x4df118
mov eax, ebx
call fcn.0047c4cc
pop ecx
push edi
mov eax, ebx
call fcn.0047c4cc
pop ecx
lea eax, [ebp - 0x14c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x160], eax
jne 0x419a34
xor edi, edi
push esi
call fcn.004b4080
pop ecx
push dword [ebp - 0x158]
call fcn.004b4080
pop ecx
mov eax, edi
jmp 0x419956
mov edi, 0x104
lea edx, [ebp - 0x120]
call fcn.0047c3ca
test eax, eax
jne 0x419adb
cmp byte [ebp - 0x120], 0x2e
je 0x419adb
cmp dword [ebp + 0xc], eax
je 0x419a67
test byte [ebp - 0x14c], 2
jne 0x419adb
test byte [ebp - 0x14c], 0x10
jne 0x419adb
inc dword [ebp - 0x154]
cmp dword [ebp - 0x15c], 0
je 0x419adb
mov esi, dword [ebp - 0x158]
lea eax, [ebp - 0x120]
push eax
mov ecx, ebx
mov eax, esi
call fcn.0047c3fc
pop ecx
push dword [ebp - 0x150]
mov ecx, edi
lea eax, [ebp - 0x120]
call fcn.0047c3fc
pop ecx
call fcn.0047c73c
mov edx, eax
mov ecx, esi
call fcn.0047c986
push esi
mov ecx, edi
lea eax, [ebp - 0x120]
call fcn.0047c3fc
pop ecx
push dword [ebp + 0x18]
lea eax, [ebp - 0x14c]
push eax
call dword [ebp - 0x15c]
test eax, eax
je 0x419afc
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x160]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x419a39
mov esi, dword [ebp - 0x158]
push dword [ebp - 0x160]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
call ebx
cmp dword [ebp + 0x10], 0
je 0x419bc9
push dword [ebp - 0x150]
push esi
call fcn.004b4780
mov eax, esi
call fcn.0047c73c
push 0x4d420c
push esi
call fcn.004b4790
add esp, 0x10
lea eax, [ebp - 0x14c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x419bc9
lea edx, [ebp - 0x120]
call fcn.0047c3ca
test eax, eax
jne 0x419bb4
cmp byte [ebp - 0x120], 0x2e
je 0x419bb4
cmp dword [ebp + 0xc], eax
je 0x419b70
test byte [ebp - 0x14c], 2
jne 0x419bb4
test byte [ebp - 0x14c], 0x10
je 0x419bb4
push dword [ebp - 0x150]
push esi
call fcn.004b4780
lea eax, [ebp - 0x120]
push eax
mov ecx, esi
call fcn.0047c86f
add esp, 0xc
push dword [ebp + 0x18]
push dword [ebp - 0x15c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00419904
add esp, 0x14
add dword [ebp - 0x154], eax
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x419b4a
push edi
call ebx
mov edi, dword [ebp - 0x154]
mov esi, dword [ebp - 0x150]
jmp 0x419a1a