Function at 0x101ee69
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [reloc.msvcrt.dll___p__fmode]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
push 0x610
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
call fcn.01032298
test eax, eax
pop ecx
je 0x101ecb1
mov ecx, eax
call fcn.0101da3c
mov esi, eax
jmp 0x101ecb3
xor esi, esi
test esi, esi
jne 0x101ecc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x101efa5
xor eax, eax
mov ecx, 0x184
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, reloc.msvcrt.dll___p__fmode
mov dword [esi + reloc.msvcrt.dll___p__fmode], eax
mov dword [eax], eax
lea eax, reloc.msvcrt.dll___p__fmode
lea ecx, reloc.msvcrt.dll___p__fmode
mov dword [esi + reloc.msvcrt.dll___p__fmode], eax
mov dword [eax], eax
call fcn.01036937
test eax, eax
je 0x101ef95
lea ecx, reloc.msvcrt.dll___p__fmode
call fcn.01036937
test eax, eax
je 0x101ef95
lea ecx, reloc.msvcrt.dll___p__fmode
call fcn.01036937
test eax, eax
je 0x101ef95
push 0x1040274
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push dword [ebp + 0x18]
mov ecx, esi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 2
call fcn.0101e64b
mov dword [esi + reloc.msvcrt.dll___p__fmode], ebx
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x14]
and dword [esi + 0x34], 0
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0xec]
mov dword [esi + 0xec], eax
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x30], eax
lea eax, [ebx + 0x38]
push eax
lea eax, [esi + 0x38]
push eax
call fcn.0101d969
test eax, eax
je 0x101ef95
lea eax, [ebx + 0x9c]
push eax
lea eax, [esi + 0x9c]
push eax
call fcn.0103621f
test eax, eax
je 0x101ef95
push dword [ebp - 0x210]
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call fcn.0103621f
test eax, eax
je 0x101ef95
xor eax, eax
lea edi, reloc.msvcrt.dll___p__fmode
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
push 0x1002bc0
call edi
push eax
push dword [esi + 0x11c]
push 0x1002bc0
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0x10
test eax, eax
jne 0x101ee9e
push 0x1002bc0
call edi
mov ecx, dword [esi + reloc.msvcrt.dll___p__fmode]
lea eax, [ecx + eax*2]
mov dword [esp], 0x1002b70
push eax
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
jne 0x101ee22
push 0x57
jmp 0x101ee78
sub eax, dword [ebp - reloc.msvcrt.dll___p__fmode]
sar eax, 1
cmp eax, 0x100
jb 0x101ee36
mov eax, 0xff
push eax
push dword [ebp - 0x210]
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
push 0x1002b70
call edi
mov ecx, dword [ebp - reloc.msvcrt.dll___p__fmode]
lea eax, [ecx + eax*2]
push eax
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
call edi
add esp, 0x14
lea eax, [eax + eax + 2]
push eax
call fcn.01035a36
mov edi, eax
test edi, edi
jne 0x101ee7e
push 8
pop ebx
jmp 0x101ef9d
push dword [ebp - 0x210]
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [esi + 0x11c]
call fcn.01035abf
mov dword [esi + reloc.msvcrt.dll___p__fmode], edi
cmp dword [esi + 0x5c], 0
je 0x101eece
push 0x20000
push dword [esi + 0x68]
push dword [0x10416f4]
call fcn.01037a04
test eax, eax
je 0x101ef95
mov ecx, dword [eax + 0x1c]
push eax
mov dword [esi + reloc.msvcrt.dll___p__fmode], ecx
call fcn.01035abf
mov edi, 0x104030c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0x14], 0
je 0x101ef23
cmp dword [esi + reloc.msvcrt.dll___p__fmode], 0
jne 0x101ef23
push 0x104
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push 2
call fcn.01029224
test eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
jne 0x101ef0a
test edx, edx
je 0x101ef37
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call fcn.01035adb
push esi
mov dword [esi + 0x2c], eax
call fcn.0101e1c0
test eax, eax
je 0x101ef37
call fcn.0101db51
test eax, eax
je 0x101ef37
push reloc.ADVAPI32.dll_EnumDependentServicesW
call fcn.01035a36
test eax, eax
jne 0x101ef48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101ef9d
mov dword [eax + 8], esi
lea ecx, [ebx + 0x90]
mov edx, dword [ecx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ecx + 4], eax
inc dword [ebx + 0x98]
push 0x1040300
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push dword [0x1040274]
call fcn.01033044
push 0
push esi
call fcn.0101dc5d
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x101efae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 1
push esi
call fcn.0101e8f2
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 0x14