Function at 0x4aa656
Capabilities:
Enumerate files on windows

Disassembly:
push 0x310
mov eax, 0x6947ca
call fcn.0056e23b
mov ebx, ecx
mov dword [ebp - 0x300], ebx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x2fc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x308], esi
mov dword [ebp - 0x304], eax
call fcn.004a838c
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2f4]
call fcn.004173bc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2f4]
push esi
call fcn.004179fb
and dword [ebp - 0x2d8], edi
and dword [ebp - 0x2d4], edi
lea eax, [ebp - 0x2f4]
push eax
push dword [ebp - 0x2fc]
lea ecx, [ebp - 0x2fc]
call fcn.004a82ae
cmp dword [ebp - 0x2f8], 0
je 0x4aabf4
lea esi, [ebx + 0x818]
mov ecx, esi
call fcn.004c2c9d
mov ecx, esi
call fcn.00451480
test eax, eax
jne 0x4aabb1
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
cmp dword [eax + 0x24], 0
jne 0x4aa93c
add eax, 8
lea ecx, [ebp - 0x2c]
push eax
call fcn.0041736d
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4aa750
dec esi
lea ecx, [ebp - 0x28]
push esi
call fcn.00404220
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x5c
cmovae eax, dword [ebp - 0x28]
pop ecx
cmp word [eax + esi*2], cx
je 0x4aa750
push 0x6ce700
lea ecx, [ebp - 0x2c]
call fcn.00419c79
push 0x6ce704
lea ecx, [ebp - 0x2c]
call fcn.00419c79
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2d0]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
mov dword [eax + 0x24], ecx
cmp ecx, 0xffffffff
jne 0x4aa7a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041786a
lea esi, [ebx + 0x818]
jmp 0x4aa973
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041786a
lea esi, [ebx + 0x818]
push 0x6ce708
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4aa91d
push 0x6ce70c
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4aa91d
test byte [ebp - 0x2d0], 0x10
jne 0x4aa9bb
lea ecx, [ebp - 0x48]
call fcn.004173bc
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x4aa813
mov eax, dword [eax]
lea ecx, [ebp - 0x2a4]
push ecx
push eax
lea eax, [ebp - 0x48]
push 0x6ce718
push eax
call fcn.0041ccda
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.005655b9
mov esi, eax
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x300]
add esp, 0x14
mov ebx, edx
inc dword [eax + 0x80c]
cmp dword [ebp - 0x30], 8
cmovae ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x64]
call fcn.0041d41a
mov byte [ebp - 4], 6
cmp dword [ebp + 0xc], 0
je 0x4aa883
push dword [ebp - 0x304]
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x308]
call fcn.004a992f
add esp, 0xc
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
push ebx
cmovae eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x300]
mov ecx, ebx
push esi
push eax
call fcn.004a91f6
sub esp, 0x28
mov dword [ebp - 0x30c], esp
mov ecx, esp
sub esp, 0xc
mov eax, esp
mov dword [eax], 0x4a919b
mov dword [eax + 8], ebx
call fcn.004a81c7
mov byte [ebp - 4], 7
lea esi, [ebx + 0x818]
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push esi
cmovae eax, dword [ebp - 0x44]
push 0x7e7c80
push eax
mov byte [ebp - 4], 6
call fcn.005380d7
mov ecx, 0x18697
add esp, 0x34
cmp eax, ecx
je 0x4aab8a
test eax, eax
je 0x4aa905
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
mov dword [eax + 0x28], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
call fcn.0041786a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.0041786a
mov ecx, esi
call fcn.004c2c9d
mov ecx, esi
call fcn.00451480
test eax, eax
jne 0x4aabb1
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x2d0]
push ecx
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4aa7b2
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
and dword [eax + 0x24], 0
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
cmp dword [eax + 0x28], 0
je 0x4aaa46
push eax
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.004ab75f
cmp dword [ebp - 0x2f8], 0
je 0x4aaa3c
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
mov dword [eax + 0x28], 1
jmp 0x4aa6d2
mov eax, dword [ebp - 0x2fc]
lea ecx, [ebp - 0x2f4]
and dword [ebp - 0x2d4], 0
and dword [ebp - 0x2d8], 0
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004248f3
mov esi, dword [ebp - 0x2e0]
test esi, esi
je 0x4aaa25
dec esi
lea ecx, [ebp - 0x2f0]
push esi
call fcn.00404220
cmp dword [ebp - 0x2dc], 8
lea eax, [ebp - 0x2f0]
push 0x5c
cmovae eax, dword [ebp - 0x2f0]
pop ecx
cmp word [eax + esi*2], cx
je 0x4aaa25
push 0x6ce714
lea ecx, [ebp - 0x2f4]
call fcn.00419c79
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00419c79
jmp 0x4aa6ba
mov edi, 0x91
jmp 0x4aa6d2
sub esp, 0x28
mov dword [ebp - 0x310], esp
mov ecx, esp
sub esp, 0xc
mov eax, esp
mov dword [eax], 0x4a919b
mov dword [eax + 8], ebx
call fcn.004a81c7
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x4aaa7c
mov eax, dword [eax]
push esi
push 0x7e7c80
push eax
mov byte [ebp - 4], 3
call fcn.00538388
mov esi, eax
add esp, 0x34
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x4aaaa5
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x80]
call fcn.0041d41a
mov byte [ebp - 4], 9
test esi, esi
jne 0x4aab35
cmp dword [ebp + 0xc], esi
je 0x4aaae5
mov eax, dword [ebp - 0x2fc]
push dword [ebp - 0x304]
mov ecx, dword [eax + 4]
add ecx, 8
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [ebp - 0x308]
call fcn.004a992f
add esp, 0xc
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x4aaaf9
mov eax, dword [eax]
push eax
lea ecx, [ebx + 0x774]
call fcn.004179fb
inc dword [ebx + 0x80c]
mov ecx, ebx
inc dword [ebx + 0x814]
call fcn.004a8e48
mov eax, dword [ebp - 0x2fc]
lea ecx, [ebp - 0x2fc]
push dword [eax + 4]
lea eax, [ebp - 0x31c]
push eax
call fcn.004ab75f
jmp 0x4aab79
mov eax, 0x18697
cmp esi, eax
je 0x4aaba6
mov eax, dword [ebp - 0x2fc]
lea ecx, [ebp - 0x2fc]
push dword [eax + 4]
lea eax, [ebp - 0x314]
push eax
call fcn.004ab75f
cmp dword [ebp - 0x2f8], 0
je 0x4aab74
mov eax, dword [ebp - 0x2fc]
mov eax, dword [eax + 4]
mov dword [eax + 0x28], 1
jmp 0x4aab79
mov edi, 0x91
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.0041786a
jmp 0x4aa6d2
mov edi, ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
call fcn.0041786a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.0041786a
jmp 0x4aabeb
mov edi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
jmp 0x4aab9f
mov edi, 0x18697
jmp 0x4aabeb
mov ecx, dword [ebp - 0x2fc]
mov eax, dword [ecx + 4]
cmp dword [eax + 0x24], 0
je 0x4aabd6
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x2fc]
push dword [ecx + 4]
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.004ab75f
cmp dword [ebp - 0x2f8], 0
jne 0x4aabb8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2f4]
call fcn.0041786a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2fc]
call fcn.004a8409
mov eax, edi
call fcn.0056e1e5
ret 0xc