Function at 0x1001d040
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014ea07
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 0x2ac], 0
push 0x1016180c
lea ecx, [ebp - 0x28]
call fcn.10002c60
mov dword [ebp - 4], 0
push 0x10161878
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.1000aef0
add esp, 0xc
mov byte [ebp - 4], 1
mov dword [ebp - 0x2a8], 0
push 0x24c
push 0
lea edx, [ebp - 0x2a4]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x40]
call fcn.10001960
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0xffffffff
jne 0x1001d10d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10002d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002d10
jmp 0x1001d351
mov ecx, 1
test ecx, ecx
je 0x1001d329
mov edx, dword [ebp - 0x2a8]
and edx, 0x10
je 0x1001d30a
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x27c]
cmp edx, 0x2e
je 0x1001d1f5
push 0x10161880
lea ecx, [ebp - 0x2f4]
call fcn.10002c60
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x2cc], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2ac]
or ecx, 1
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x2cc]
push edx
lea eax, [ebp - 0x27c]
push eax
call fcn.1000aff0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x1001d1f5
push 0x10161890
lea ecx, [ebp - 0x324]
call fcn.10002c60
mov dword [ebp - 0x2c0], eax
mov edx, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c8], edx
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x2ac]
or eax, 2
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x2c8]
push ecx
lea edx, [ebp - 0x27c]
push edx
call fcn.1000aff0
add esp, 8
movzx eax, al
test eax, eax
je 0x1001d1f5
mov dword [ebp - 0x2b8], 1
jmp 0x1001d1ff
mov dword [ebp - 0x2b8], 0
mov cl, byte [ebp - 0x2b8]
mov byte [ebp - 0x2ad], cl
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x2ac]
and edx, 2
je 0x1001d22f
and dword [ebp - 0x2ac], 0xfffffffd
lea ecx, [ebp - 0x324]
call fcn.10002d10
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x2ac]
and eax, 1
je 0x1001d253
and dword [ebp - 0x2ac], 0xfffffffe
lea ecx, [ebp - 0x2f4]
call fcn.10002d10
movzx ecx, byte [ebp - 0x2ad]
test ecx, ecx
je 0x1001d30a
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30c]
push ecx
call fcn.1000aef0
add esp, 0xc
mov dword [ebp - 0x2d0], eax
mov edx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2bc], edx
mov byte [ebp - 4], 4
push str.Roaming
mov eax, dword [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.1000afb0
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30c]
call fcn.10002d10
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2d8], esp
lea edx, [ebp - 0x58]
push edx
call fcn.10003060
mov dword [ebp - 0x2dc], eax
call fcn.1007c400
add esp, 0x18
mov byte [ebp - 0x2ae], al
movzx eax, byte [ebp - 0x2ae]
test eax, eax
je 0x1001d2fe
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x2d4]
add ecx, 0x74
call fcn.1000a1a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10002d10
lea edx, [ebp - 0x2a8]
push edx
mov eax, dword [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001d324
jmp 0x1001d329
jmp 0x1001d10d
mov ecx, dword [ebp - 0x2b4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10002d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002d10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret