Function at 0x10035470
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c4
mov eax, dword [0x101a49d4]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x58], 0
mov ecx, dword [edx + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [esp + 8], ebx
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 7
push esi
push edi
cmp eax, 2
jb 0x10035753
cmp dword [edx + 0x14], 8
jb 0x100354c6
mov edx, dword [edx]
push 2
push 0x1018fe74
push ecx
push edx
push ecx
push dword [esp + 0x24]
lea ecx, [esp + 0x48]
call fcn.1005dba0
cmp dword [esp + 0x44], 8
lea ecx, [esp + 0x78]
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [esp + 0x44]
mov esi, eax
mov dword [esp + 0x14], esi
cmp edx, 8
jb 0x10035539
mov ecx, dword [esp + 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003552f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035758
push edx
push ecx
call fcn.1011a823
add esp, 8
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
cmp esi, 0xffffffff
jne 0x10035590
mov dword [ebx], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
lea eax, [esp + 0x60]
push 0x18
push eax
push ebx
call fcn.1011b630
mov eax, ebx
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xa4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
lea edx, [eax + 2]
mov dword [esp + 0x2c], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100355b2
sub eax, edx
lea ecx, [esp + 0x18]
sar eax, 1
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.10051fd0
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
mov esi, dword [esp + 0x18]
cmp edi, 8
mov ebx, dword [esp + 0x28]
cmovae ecx, esi
cmp ebx, 1
jne 0x10035604
push ebx
mov edx, 0x1018e20c
call fcn.10056450
add esp, 4
test eax, eax
je 0x100356c5
cmp edi, 8
lea ecx, [esp + 0x18]
cmovae ecx, esi
cmp ebx, 2
jne 0x10035629
push ebx
mov edx, 0x1018e210
call fcn.10056450
add esp, 4
test eax, eax
je 0x100356c5
test byte [esp + 0x78], 0x10
je 0x100356c5
mov eax, 0x7ffffffe
sub eax, ebx
cmp eax, 1
jb 0x10035753
push 1
push 0x1018f8a8
cmp edi, 8
lea eax, [esp + 0x20]
push ebx
cmovae eax, esi
push eax
push ecx
push dword [esp + 0x24]
lea ecx, [esp + 0x60]
call fcn.1005dba0
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
push dword [esp + 0x58]
cmovae eax, dword [esp + 0x4c]
lea ecx, [esp + 0x64]
push eax
call fcn.100520e0
mov edx, dword [esp + 0x5c]
cmp edx, 8
jb 0x100356bd
mov ecx, dword [esp + 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100356b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035758
push edx
push ecx
call fcn.1011a823
add esp, 8
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
cmp edi, 8
jb 0x100356f5
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x100356eb
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035758
push edi
push esi
call fcn.1011a823
add esp, 8
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10035590
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x60]
push 0x18
push eax
push esi
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.1011b630
mov ecx, dword [esp + 0x2d8]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
call fcn.10021260
call fcn.10125fc5
int3