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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x496980]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 0x140
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x144]
push ebx
push eax
mov dword [ebp - 0x148], esi
call fcn.00440bf0
push esi
call fcn.0042dd5b
add esp, 0x10
test eax, eax
jne 0x4124ab
push 1
mov edi, 0x71c
push edi
call fcn.0044a2f4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4124ab
push 1
push edi
call fcn.0044a2f4
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4124bc
push esi
call fcn.0044a2ff
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f5c5
leave
ret
push 0x71c
push dword [ebp - 0x148]
push esi
call fcn.0042f204
push esi
call fcn.0042e684
push esi
call fcn.0042e5c3
push 0x22
push esi
call fcn.0042e25b
push esi
call fcn.0041005d
add esp, 0x20
test eax, eax
je 0x412533
push 0x46528c
push esi
call fcn.00440d50
pop ecx
pop ecx
test eax, eax
jne 0x412533
push esi
call fcn.0044a680
pop ecx
cmp byte [eax + esi - 1], 0x5c
je 0x412520
push 0x71c
push 0x4678c4
push esi
call fcn.0042f170
add esp, 0xc
push 0x71c
push 0x46528c
push esi
call fcn.0042f170
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x148], eax
cmp eax, 0xffffffff
jne 0x41255e
push esi
call fcn.0044a2ff
push edi
call fcn.0044a2ff
pop ecx
jmp 0x4124aa
lea eax, [ebp - 0x118]
push eax
call fcn.0042dd5b
pop ecx
test eax, eax
jne 0x412607
cmp byte [ebp - 0x118], 0x2e
je 0x412607
cmp dword [ebp + 0xc], eax
je 0x41258e
test byte [ebp - 0x144], 2
jne 0x412607
test byte [ebp - 0x144], 0x10
jne 0x412607
inc ebx
cmp dword [ebp - 0x14c], 0
je 0x412607
push 0x71c
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.0042f204
push 0x104
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0042f204
lea eax, [ebp - 0x118]
push eax
call fcn.0042e40d
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.0042dfe8
push 0x104
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.0042f204
add esp, 0x30
lea eax, [ebp - 0x144]
push dword [ebp + 0x18]
push eax
call dword [ebp - 0x14c]
test eax, eax
je 0x412622
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41255e
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x10], 0
je 0x4126f2
push esi
push edi
call fcn.0044a360
push edi
call fcn.0042e40d
push 0x46528c
push edi
call fcn.0044a370
add esp, 0x14
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x148], eax
cmp eax, 0xffffffff
je 0x4126f2
lea eax, [ebp - 0x118]
push eax
call fcn.0042dd5b
pop ecx
test eax, eax
jne 0x4126cf
cmp byte [ebp - 0x118], 0x2e
je 0x4126cf
cmp dword [ebp + 0xc], eax
je 0x412698
test byte [ebp - 0x144], 2
jne 0x4126cf
test byte [ebp - 0x144], 0x10
je 0x4126cf
push esi
push edi
call fcn.0044a360
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.0042cb0e
push dword [ebp + 0x18]
push dword [ebp - 0x14c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00412436
add esp, 0x24
add ebx, eax
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x412670
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.0044a2ff
push edi
call fcn.0044a2ff
pop ecx
pop ecx
mov eax, ebx
jmp 0x4124ad