Function at 0x4be760
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x15c
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0x57
rep stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x160], ecx
cmp dword [ebp + 0xc], 0
jne 0x4be7f7
mov ecx, dword [ebp + 8]
call fcn.0040caf0
push eax
mov ecx, 0x531698
call fcn.0040caf0
push eax
call fcn.0040dd10
pop ecx
pop ecx
cmp eax, 0
jne 0x4be7ae
mov al, 0
jmp 0x4be7b0
mov al, 1
cmp al, 0
je 0x4bea15
jmp 0x4be7f7
mov eax, dword [ebp - 0x154]
mov edx, dword [eax]
mov dword [0x53169c], edx
cmp dword [ebp - 0x154], 0
je 0x4be7f7
mov eax, dword [ebp - 0x154]
cmp dword [eax + 4], 0
je 0x4be7eb
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax + 4]
call fcn.0040c380
push dword [ebp - 0x154]
call fcn.00476180
pop ecx
mov eax, dword [0x53169c]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x4be7ba
mov dword [0x5316a0], 0
push dword [ebp + 8]
mov ecx, 0x531698
call fcn.0040cc10
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x148], 0
push str..
call fcn.0040dc70
pop ecx
push eax
push str..
lea ecx, [ebp - 0x148]
call fcn.0040c560
cmp dword [ebp - 0x148], 0
je 0x4be86a
mov ebx, dword [ebp - 0x148]
mov edx, dword [0x5022fc]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x14c]
push eax
call fcn.0040d4b0
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040caf0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x14c], 0
je 0x4be8b6
mov ecx, dword [ebp - 0x14c]
call fcn.0040c380
cmp dword [ebp - 0x148], 0
je 0x4be8ca
mov ecx, dword [ebp - 0x148]
call fcn.0040c380
cmp dword [ebp - 0x15c], 0xffffffff
je 0x4bea15
push 0x5316b5
lea eax, [ebp - 0x144]
add eax, 0x2c
push eax
call fcn.0040dd10
pop ecx
pop ecx
cmp eax, 0
je 0x4be9ed
push 0x5316b7
lea eax, [ebp - 0x144]
add eax, 0x2c
push eax
call fcn.0040dd10
pop ecx
pop ecx
cmp eax, 0
je 0x4be9ed
push 8
call fcn.00476140
pop ecx
cmp eax, 0
je 0x4be92b
mov dword [eax + 4], 0
mov eax, eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], 0
lea eax, [ebp - 0x144]
add eax, 0x2c
lea eax, [ebp - 0x144]
add eax, 0x2c
push eax
call fcn.0040dc70
pop ecx
push eax
lea eax, [ebp - 0x144]
add eax, 0x2c
push eax
lea ecx, [ebp - 0x150]
call fcn.0040c560
cmp dword [ebp - 0x150], 0
je 0x4be982
mov ebx, dword [ebp - 0x150]
mov edx, dword [0x5022fc]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x154]
add ecx, 4
call fcn.0040cc10
cmp dword [ebp - 0x150], 0
je 0x4be9ab
mov ecx, dword [ebp - 0x150]
call fcn.0040c380
mov eax, dword [ebp - 0x154]
mov dword [eax], 0
cmp dword [ebp - 0x158], 0
je 0x4be9d0
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x154]
mov dword [eax], ecx
jmp 0x4be9db
mov eax, dword [ebp - 0x154]
mov dword [0x53169c], eax
inc dword [0x5316a0]
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 0
jne 0x4be8d7
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0x531698
lea esp, [ebp - 4]
pop ebx
pop ebp
ret 8