Function at 0x10006d40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e983
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d4
mov dword [ebp - 0x58], ecx
push ebx
push esi
push edi
test edx, edx
je 0x10006fe9
cmp word [edx], 0
je 0x10006fe9
xor eax, eax
mov dword [ebp - 0x14], 0x2e
mov dword [ebp - 0x1c], 0x2e002e
mov word [ebp - 0x18], ax
mov dword [ebp - 0x3c], 0x2e002a
mov dword [ebp - 0x38], 0x2a
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], eax
mov word [ebp - 0x34], ax
push edx
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], eax
call fcn.100020e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x40]
cmp edx, 8
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x54]
cmovae ecx, esi
lea edi, [eax + eax]
cmp word [ecx + edi - 2], 0x5c
je 0x10006df0
cmp edx, 8
lea eax, [ebp - 0x54]
cmovae eax, esi
cmp word [eax + edi - 2], 0x2f
je 0x10006df0
push 0x5c
push 1
lea ecx, [ebp - 0x54]
call fcn.10002220
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x70]
call fcn.10006020
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov edi, eax
lea eax, [ebp - 0x34]
add esp, 4
cmp eax, edi
je 0x10006e3c
cmp dword [ebp - 0x20], 8
jb 0x10006e1f
push dword [ebp - 0x34]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], 7
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
call fcn.100023f0
cmp dword [ebp - 0x5c], 8
jb 0x10006e4a
push dword [ebp - 0x70]
call esi
add esp, 4
push 0x24c
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2dc], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x2dc]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10006e91
xor bl, bl
jmp 0x10006fa6
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x10006ea0
test byte [ebp - 0x2dc], 0x10
je 0x10006f8b
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x2b0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10006edc
test dx, dx
je 0x10006ed8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10006edc
add eax, 4
add ecx, 4
test dx, dx
jne 0x10006eb6
xor eax, eax
jmp 0x10006ee1
sbb eax, eax
or eax, 1
test eax, eax
je 0x10006f8b
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x2b0]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10006f18
test dx, dx
je 0x10006f14
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10006f18
add ecx, 4
add eax, 4
test dx, dx
jne 0x10006ef2
xor eax, eax
jmp 0x10006f1d
sbb eax, eax
or eax, 1
test eax, eax
je 0x10006f8b
lea eax, [ebp - 0x2b0]
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x88]
call fcn.10006020
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.10007820
add esp, 4
mov ecx, dword [ebp - 0x58]
push eax
mov byte [ebp - 4], 3
call fcn.10007660
cmp dword [ebp - 0x5c], 8
jb 0x10006f62
push dword [ebp - 0x70]
call esi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x10006f8b
push dword [ebp - 0x88]
call esi
add esp, 4
lea eax, [ebp - 0x2dc]
push eax
push edi
call ebx
test eax, eax
jne 0x10006ea0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
cmp dword [ebp - 0x40], 8
jb 0x10006fb4
push dword [ebp - 0x54]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x40], 7
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
jb 0x10006fd6
push dword [ebp - 0x34]
call esi
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret