Function at 0x10035160
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x288
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x284], eax
mov eax, dword [esp + 0x28c]
push ebx
push ebp
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x298]
push esi
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10035195
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
sub eax, edx
sar eax, 1
lea ebx, [eax + eax + 0x208]
push ebx
push 0x40
mov dword [esp + 0x20], ebx
call esi
mov edi, eax
mov dword [esp + 0x28], edi
test edi, edi
je 0x100354a7
push ebx
push 0x40
call esi
mov ebp, eax
test ebp, ebp
jne 0x100351df
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x100354a7
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x58]
mov eax, dword [edx]
mov esi, dword [ecx + 0x40]
mov ebx, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x14]
mov edi, dword [ecx + 0x58]
mov eax, dword [eax + 0x40]
test esi, esi
je 0x10035207
cmp esi, eax
je 0x1003520c
call fcn.100d13c5
cmp ebx, edi
je 0x10035253
test esi, esi
jne 0x1003524f
call fcn.100d13c5
cmp ebx, dword [esi + 0x18]
jne 0x10035223
call fcn.100d13c5
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10035238
mov ecx, dword [esp + 0x24]
push 1
push 1
push ecx
call eax
add esp, 0xc
lea esi, [esp + 0x1c]
call fcn.10024890
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
jmp 0x100351f5
mov esi, dword [esi]
jmp 0x10035219
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
push esi
push str._ws.
call fcn.1000ede0
add esp, 8
lea edx, [esp + 0x40]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x30], eax
test eax, eax
je 0x100354a7
jmp 0x10035290
mov eax, 0xcccc
cmp word [esp + 0x6c], ax
je 0x1003547f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x10129d28
lea ecx, [esp + 0x70]
push ecx
call ebx
test eax, eax
je 0x1003547f
push 0x10129d2c
lea edx, [esp + 0x70]
push edx
call ebx
test eax, eax
je 0x1003547f
push str._RECYCLE.BIN
lea eax, [esp + 0x70]
push eax
call ebx
test eax, eax
je 0x1003547f
push str.System_Volume_Information
lea ecx, [esp + 0x70]
push ecx
call ebx
test eax, eax
je 0x1003547f
mov eax, dword [esp + 0x40]
and eax, 0x10
je 0x10035388
mov edi, dword [esp + 0x2a4]
test edi, edi
jg 0x10035313
cmp edi, 0xffffffff
jne 0x10035388
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x1003533b
mov ecx, 0x1012d650
cmp word [esi + eax*2 - 2], cx
je 0x1003533b
lea edx, [esp + 0x6c]
push edx
push esi
push 0x10129678
jmp 0x10035346
lea eax, [esp + 0x6c]
push eax
push esi
push str._ws_ws
mov eax, dword [esp + 0x24]
mov ebx, ebp
call fcn.1000ede0
add esp, 0xc
cmp edi, 0xffffffff
jne 0x10035370
mov ecx, dword [esp + 0x2c]
or eax, edi
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push ebp
call fcn.10035160
jmp 0x1003547f
mov ecx, dword [esp + 0x2c]
lea eax, [edi - 1]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push ebp
call fcn.10035160
jmp 0x1003547f
test eax, eax
jne 0x1003547f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jbe 0x100353b4
mov edx, 0x1012d650
cmp word [esi + eax*2 - 2], dx
je 0x100353b4
lea eax, [esp + 0x6c]
push eax
push esi
push 0x10129678
jmp 0x100353bf
lea ecx, [esp + 0x6c]
push ecx
push esi
push str._ws_ws
mov eax, dword [esp + 0x24]
mov ebx, ebp
call fcn.1000ede0
mov edx, dword [esp + 0x38]
add esp, 0xc
cmp dword [edx + 0x1c], 0
jne 0x100354c2
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x18]
mov eax, dword [eax]
mov esi, dword [ecx]
mov ebx, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov edi, dword [ecx + 0x18]
mov eax, dword [ecx]
test esi, esi
je 0x100353fd
cmp esi, eax
je 0x10035402
call fcn.100d13c5
cmp ebx, edi
je 0x1003547b
test esi, esi
jne 0x1003544a
call fcn.100d13c5
cmp ebx, dword [esi + 0x18]
jne 0x10035419
call fcn.100d13c5
mov eax, dword [ebx + 0xc]
mov dword [0x101dd360], eax
test eax, eax
je 0x10035433
push 2
push 1
push ebp
call eax
add esp, 0xc
test al, al
jne 0x1003544e
lea esi, [esp + 0x1c]
call fcn.10024890
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
jmp 0x100353f0
mov esi, dword [esi]
jmp 0x1003540f
lea esi, [esp + 0x1c]
call fcn.10035af0
mov ebx, dword [esp + 0x2c]
add eax, 4
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.10035900
push 3
push 1
push ebp
call dword [0x101dd360]
add esp, 0xc
test al, al
je 0x100354ed
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10035290
mov edx, dword [esp + 0x28]
push edx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push ebp
call esi
mov ecx, dword [esp + 0x294]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x288
ret 0xc
mov eax, dword [0x101dd360]
test eax, eax
je 0x10035497
push 2
push 1
push ebp
call eax
add esp, 0xc
test al, al
je 0x1003547f
push 3
push 1
push ebp
call dword [0x101dd360]
add esp, 0xc
test al, al
je 0x10035497
jmp 0x1003547f
mov ecx, dword [esp + 0x28]
push ecx
jmp 0x1003549c