Function at 0x1006a80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1021d9c
mov eax, dword fs:[0]
push eax
mov eax, 0x1150
call fcn.010204c0
mov eax, dword [0x102806c]
xor eax, esp
mov dword [esp + 0x1148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x102806c]
xor eax, esp
push eax
lea eax, [esp + 0x1164]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1174]
cmp dword [ebp + 0x280], 0xffffffff
je 0x1006bca
cmp dword [ebp + 0x288], 1
jne 0x1006bca
test byte [ebp + 0x140], 0x10
je 0x1006ba9
lea eax, [ebp + 0x16c]
mov edi, 0x1024c7c
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1006ba9
mov esi, eax
mov edi, 0x1024fec
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1006ba9
test byte [ebp], 0x10
je 0x1006ba9
lea eax, [ebp + 0x2c]
mov edi, 0x1024c7c
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1006ba9
mov esi, eax
mov edi, 0x1024fec
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1006ba9
lea ebx, [esp + 0x95c]
mov edx, ebp
mov ecx, ebp
call fcn.01006830
test eax, eax
je 0x1006ba9
push 0x14
call fcn.01012314
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x116c], 0
je 0x1006b8e
mov ecx, ebx
mov esi, eax
call fcn.01006490
mov esi, eax
jmp 0x1006b90
xor esi, esi
mov dword [esp + 0x116c], 0xffffffff
cmp dword [esi], 0
jne 0x1006de7
call fcn.01007310
mov ecx, dword [ebp + 0x280]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp + 0x288], eax
cmp dword [ebp + 0x280], 0xffffffff
jne 0x1006ad3
mov eax, dword [ebp + 0x280]
cmp eax, 0xffffffff
je 0x1006bdc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x288], 0
jne 0x1006e80
lea esp, [esp]
mov eax, dword [ebp + 0x284]
lea esi, [ebp + 0x140]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1006e80
test byte [esi], 0x10
je 0x1006e73
lea ebx, [ebp + 0x16c]
mov edi, 0x1024c7c
mov esi, ebx
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1006e73
mov edi, 0x1024fec
mov esi, ebx
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1006e73
lea ecx, [ebp + 0x28c]
push ecx
lea edx, [esp + 0x160]
push 0x800
push edx
call fcn.01011b01
push ebx
lea eax, [esp + 0x16c]
push 0x800
push eax
call fcn.01011ef9
push 0x1024ff0
lea ecx, [esp + 0x178]
push 0x800
push ecx
call fcn.01011ef9
add esp, 0x24
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
je 0x1006e73
nop
test byte [esp + 0x1c], 0x10
je 0x1006e58
mov edi, 0x1024c7c
lea esi, [esp + 0x48]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1006e58
mov edi, 0x1024fec
lea esi, [esp + 0x48]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1006e58
lea ecx, [esp + 0x48]
push ecx
lea edx, [ebp + 0x128c]
push edx
call fcn.01011220
add esp, 8
test eax, eax
je 0x1006e58
lea eax, [esp + 0x15c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1006d11
sub eax, edx
mov byte [esp + eax + 0x15b], cl
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x160]
push 0x800
push ecx
call fcn.01011ef9
lea edx, [ebp + 0xa8c]
push edx
lea eax, [esp + 0x16c]
push 0x800
push eax
call fcn.01011ef9
add esp, 0x18
push ebp
lea ecx, [esp + 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x280], eax
je 0x1006e37
test byte [ebp], 0x10
je 0x1006e1d
lea eax, [ebp + 0x2c]
mov edi, 0x1024c7c
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1006e1d
mov esi, eax
mov edi, 0x1024fec
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1006e1d
lea ebx, [esp + 0x95c]
mov edx, ebp
mov ecx, ebp
call fcn.01006830
test eax, eax
je 0x1006e1d
push 0x14
call fcn.01012314
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x116c], 1
je 0x1006e02
mov ecx, ebx
mov esi, eax
call fcn.01006490
mov esi, eax
jmp 0x1006e04
mov edx, dword [ebp + 0x280]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp + 0x288], eax
mov eax, esi
jmp 0x1006e82
xor esi, esi
mov dword [esp + 0x116c], 0xffffffff
cmp dword [esi], 0
jne 0x1006eac
call fcn.01007310
mov ecx, dword [ebp + 0x280]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1006d74
mov ebx, dword [esp + 0x14]
mov edx, dword [ebp + 0x280]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp + 0x280], 0xffffffff
mov dword [ebp + 0x288], 0
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1006cb0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x288], 0
je 0x1006bf0
xor eax, eax
mov ecx, dword [esp + 0x1164]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1148]
xor ecx, esp
call fcn.0100fd07
add esp, 0x115c
ret 4
mov ecx, dword [ebp + 0x280]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edx, dword [esp + 0x14]
push edx
mov dword [ebp + 0x288], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x1006e82