Function at 0x1006adb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6ac
mov eax, dword [0x1035030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x684], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x674], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push 0x24c
mov dword [ebp - 0x66c], eax
lea eax, [ebp - 0x660]
push ebx
push eax
mov dword [ebp - 0x678], ecx
mov dword [ebp - 0x668], 0x80004005
mov dword [ebp - 0x664], ebx
call sub.msvcrt.dll_memset
push 8
pop ecx
xor eax, eax
mov esi, 0x206
lea edi, [ebp - 0x6a8]
push esi
mov dword [ebp - 0x6ac], ebx
rep stosd dword es:[edi], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call sub.msvcrt.dll_memset
mov edi, dword [ebp - 0x674]
add esp, 0x24
xor esi, esi
mov dword [ebp - 0x670], ebx
mov dword [ebp - 0x67c], ebx
mov dword [ebp - 0x680], ebx
cmp edi, ebx
jne 0x1006bcb
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1006bc1
test byte [eax + 0x1c], 1
je 0x1006bc1
push 0x1002040
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
mov eax, 0x80070057
jmp 0x1006eb5
mov eax, dword [ebp - 0x66c]
cmp eax, ebx
jne 0x1006bf0
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1006bc1
test byte [eax + 0x1c], 1
je 0x1006bc1
push 0x1002040
push 0x29
jmp 0x1006bb6
push 0x1002464
push dword [ebp - 0x684]
mov dword [edi], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x1006c4d
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1006e8b
test byte [eax + 0x1c], 1
je 0x1006e8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1035014]
push 0x1002040
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1006e8b
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x688], eax
cmp eax, 0xffffffff
jne 0x1006ca6
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1006c97
test byte [eax + 0x1c], 4
je 0x1006c97
lea ecx, [ebp - 0x20c]
push ecx
push 0x1002040
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004ee0
mov dword [ebp - 0x668], 0x80004005
jmp 0x1006e8b
cmp dword [ebp - 0x664], 0x10
je 0x1006dea
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x684]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x1006ec6
lea eax, [ebp - 0x6ac]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1006f0c
cmp dword [ebp + 0x14], ebx
je 0x1006d2a
cmp dword [ebp - 0x648], ebx
jne 0x1006d23
cmp dword [ebp - 0x670], 0xffffffff
mov eax, dword [ebp - 0x644]
je 0x1006d14
add dword [ebp - 0x670], eax
cmp eax, 0x1e8480
jb 0x1006d2a
inc dword [ebp - 0x67c]
jmp 0x1006d2a
or dword [ebp - 0x670], 0xffffffff
push 0x14
call fcn.01011b9e
mov esi, eax
pop ecx
cmp esi, ebx
je 0x1006d43
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x1006d45
xor esi, esi
cmp esi, ebx
je 0x1006f52
lea eax, [ebp - 0x680]
push eax
push 0x104
lea eax, [ebp - 0x638]
push eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
call fcn.01006a94
cmp eax, ebx
mov dword [ebp - 0x668], eax
jl 0x1006f84
mov edi, dword [ebp - 0x680]
inc edi
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01011bcc
pop ecx
mov dword [esi], eax
cmp eax, ebx
je 0x1006fad
lea ecx, [ebp - 0x638]
push ecx
push edi
push eax
call fcn.010069ac
cmp eax, ebx
mov dword [ebp - 0x668], eax
jl 0x1006fe2
mov eax, dword [ebp - 0x6a8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x6a4]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x674]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x1006dde
mov dword [esi + 0x10], ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x66c]
xor esi, esi
inc dword [eax]
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x688]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1006ca6
mov dword [ebp - 0x668], ebx
cmp dword [ebp + 0x14], ebx
je 0x1006e57
mov eax, dword [ebp - 0x66c]
mov ecx, dword [ebp - 0x678]
push ebx
push dword [eax]
push 0x746
call fcn.0100c50e
mov ecx, dword [ebp - 0x678]
push ebx
push dword [ebp - 0x670]
push 0x747
call fcn.0100c50e
mov ecx, dword [ebp - 0x678]
push ebx
push dword [ebp - 0x67c]
push 0x748
call fcn.0100c50e
push dword [ebp - 0x688]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x668], ebx
jge 0x1006eaf
cmp esi, ebx
je 0x1006e85
mov eax, dword [esi]
cmp eax, ebx
je 0x1006e7e
push eax
call fcn.01011bdc
pop ecx
mov dword [esi], ebx
push esi
call fcn.01011bdc
pop ecx
mov edi, dword [ebp - 0x674]
mov eax, dword [edi]
cmp eax, ebx
je 0x1006ea5
mov ecx, dword [ebp - 0x66c]
push dword [ecx]
mov ecx, dword [ebp - 0x678]
push eax
call fcn.010054f8
mov eax, dword [ebp - 0x66c]
mov dword [eax], ebx
mov dword [edi], ebx
mov eax, dword [ebp - 0x668]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011f27
leave
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1006eda
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x668], eax
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1006e57
test byte [eax + 0x1c], 1
je 0x1006e57
push dword [ebp - 0x668]
push 0x1002040
push 0x2c
jmp 0x1007009
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1006f20
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x668], eax
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1006e57
test byte [eax + 0x1c], 1
je 0x1006e57
push dword [ebp - 0x668]
push 0x1002040
push 0x2d
jmp 0x1007009
mov dword [ebp - 0x668], 0x8007000e
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1006e57
test byte [eax + 0x1c], 1
je 0x1006e57
push 0x14
push 0x1002040
push 0x2e
jmp 0x1007009
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1006e57
test byte [eax + 0x1c], 1
je 0x1006e57
push dword [ebp - 0x668]
push 0x1002040
push 0x2f
jmp 0x1007009
mov dword [ebp - 0x668], 0x8007000e
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1006e57
test byte [eax + 0x1c], 1
je 0x1006e57
mov ecx, dword [ebp - 0x680]
inc ecx
push ecx
push 0x1002040
push 0x30
jmp 0x1007009
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1006e57
test byte [eax + 0x1c], 1
je 0x1006e57
push dword [ebp - 0x668]
push 0x1002040
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1006e57