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

Disassembly:
sub esp, 0x550
mov eax, dword [0x4bacc0]
xor eax, esp
mov dword [esp + 0x54c], eax
mov eax, dword [esp + 0x554]
push ebx
mov ebx, dword [esp + 0x560]
push esi
push edi
mov edi, dword [esp + 0x56c]
lea edx, [esp + 0x158]
mov dword [esp + 0x10], edi
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x42c080
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42c096
mov esi, dword [sym.imp.USER32.dll_CharPrevA]
sub eax, edx
lea eax, [esp + eax + 0x158]
push eax
lea ecx, [esp + 0x15c]
push ecx
call esi
cmp byte [eax], 0x5c
jne 0x42c0da
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42c0c8
sub eax, edx
mov byte [esp + eax + 0x157], cl
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x42c113
pop edi
pop esi
mov eax, 0xca
pop ebx
mov ecx, dword [esp + 0x54c]
xor ecx, esp
call fcn.004810ab
add esp, 0x550
ret
lea eax, [esp + 0x158]
mov dword [esp + 0xc], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42c125
sub eax, edx
lea ecx, [esp + eax + 0x158]
push ecx
lea edx, [esp + 0x15c]
push edx
call esi
cmp byte [eax], 0x2a
je 0x42c19c
lea eax, [esp + 0x1c]
push eax
call fcn.0042bfe0
lea ecx, [esp + 0x30]
push ecx
mov esi, eax
call fcn.0042bfe0
mov ecx, dword [esp + 0x20]
add esp, 8
shr ecx, 4
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x3c]
and ecx, 1
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push ecx
push eax
push esi
lea edx, [esp + 0x170]
push edx
push ebx
call edi
test eax, eax
jne 0x42c38d
mov dword [esp + 0xc], 0x1c
jmp 0x42c38d
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42c1a6
sub eax, edx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov byte [esp + eax + 0x15b], cl
nop
mov edi, 0x49f830
lea esi, [esp + 0x48]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x42c36a
mov edi, 0x49f82c
lea esi, [esp + 0x48]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x42c36a
test byte [esp + 0x1c], 0x10
je 0x42c311
lea eax, [esp + 0x15c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42c205
sub eax, edx
lea eax, [esp + eax + 0x15c]
push eax
lea ecx, [esp + 0x160]
push ecx
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
je 0x42c26b
lea edx, [esp + 0x15c]
push edx
lea eax, [esp + 0x360]
push 0x49f184
push eax
call ebp
lea ecx, [esp + 0x2c]
push ecx
call fcn.0042bfe0
lea edx, [esp + 0x40]
push edx
mov esi, eax
call fcn.0042bfe0
add esp, 0x14
lea ecx, [esp + 0x1c]
push ecx
push 1
push 0
push 0
jmp 0x42c357
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x160]
push ecx
lea edx, [esp + 0x364]
push str._s_s_
push edx
call ebp
lea eax, [esp + 0x30]
push eax
call fcn.0042bfe0
lea ecx, [esp + 0x44]
push ecx
mov esi, eax
call fcn.0042bfe0
add esp, 0x18
lea edx, [esp + 0x1c]
push edx
push 1
push 0
push 0
push eax
push esi
lea eax, [esp + 0x374]
push eax
push ebx
call dword [esp + 0x34]
test eax, eax
je 0x42c384
cmp dword [esp + 0x568], 1
jne 0x42c36a
lea edi, [esp + 0x35c]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x42c2e0
mov edx, dword [esp + 0x14]
mov cx, word [0x49ea08]
push edx
push ebx
lea eax, [esp + 0x364]
push 1
push eax
mov word [edi], cx
call fcn.0042c040
add esp, 0x10
cmp eax, 0x1c
jmp 0x42c368
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x160]
push edx
lea eax, [esp + 0x364]
push 0x49f81c
push eax
call ebp
lea ecx, [esp + 0x30]
push ecx
call fcn.0042bfe0
lea edx, [esp + 0x44]
push edx
mov esi, eax
call fcn.0042bfe0
mov edx, dword [esp + 0x54]
add esp, 0x18
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x3c]
push 0
push edx
push ecx
push eax
push esi
lea edx, [esp + 0x374]
push edx
push ebx
call dword [esp + 0x34]
test eax, eax
je 0x42c384
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42c1c0
jmp 0x42c38c
mov dword [esp + 0x10], 0x1c
pop ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x558]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004810ab
add esp, 0x550
ret