Function at 0x10031280
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007031d
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x100871e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 4], 1
push 0x1007cc80
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.1000a100
add esp, 0xc
mov dword [ebp - 0x290], eax
mov edx, dword [ebp - 0x290]
mov eax, dword [edx]
mov dword [ebp - 0x2bc], eax
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x2bc]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x2a0]
sub eax, 0x10
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x288]
call fcn.10003fb0
cmp dword [ebp - 0x270], 0xffffffff
je 0x10031517
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x26c]
call fcn.100064a0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x2b0], edx
push 0
mov eax, dword [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x26c]
call fcn.100065f0
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
jle 0x100313cb
mov ecx, dword [ebp - 0x278]
push ecx
lea edx, [ebp - 0x298]
push edx
lea ecx, [ebp - 0x26c]
call fcn.1000a060
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x264]
or ecx, 1
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x2a8]
push edx
call fcn.100325b0
add esp, 4
movzx eax, al
test eax, eax
je 0x100313cb
mov dword [ebp - 0x274], 1
jmp 0x100313d5
mov dword [ebp - 0x274], 0
mov cl, byte [ebp - 0x274]
mov byte [ebp - 0x265], cl
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x264]
and edx, 1
je 0x10031414
and dword [ebp - 0x264], 0xfffffffe
mov eax, dword [ebp - 0x298]
sub eax, 0x10
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2b8]
call fcn.10003fb0
movzx ecx, byte [ebp - 0x265]
test ecx, ecx
je 0x100314d0
mov edx, dword [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x26c]
sub eax, 0x10
mov dword [ebp - 0x280], eax
mov ecx, dword [ebp - 0x280]
push ecx
call fcn.10007f90
add esp, 4
mov dword [ebp - 0x284], eax
mov edx, dword [ebp - 0x284]
add edx, 0x10
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp - 0x264]
or ecx, 2
mov dword [ebp - 0x264], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x26c]
sub edx, 0x10
mov dword [ebp - 0x28c], edx
mov ecx, dword [ebp - 0x28c]
call fcn.10003fb0
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
sub eax, 0x10
mov dword [ebp - 0x294], eax
mov ecx, dword [ebp - 0x294]
call fcn.10003fb0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x10]
sub ecx, 0x10
mov dword [ebp - 0x29c], ecx
mov ecx, dword [ebp - 0x29c]
call fcn.10003fb0
mov eax, dword [ebp + 8]
jmp 0x1003156f
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x26c]
sub edx, 0x10
mov dword [ebp - 0x2a4], edx
mov ecx, dword [ebp - 0x2a4]
call fcn.10003fb0
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10031329
mov edx, dword [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x1007cc84
mov ecx, dword [ebp + 8]
call fcn.100064a0
mov eax, dword [ebp - 0x264]
or eax, 2
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
sub ecx, 0x10
mov dword [ebp - 0x2ac], ecx
mov ecx, dword [ebp - 0x2ac]
call fcn.10003fb0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
sub edx, 0x10
mov dword [ebp - 0x2b4], edx
mov ecx, dword [ebp - 0x2b4]
call fcn.10003fb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100422b3
mov esp, ebp
pop ebp
ret