Function at 0x10012830
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010c2c2
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x10152034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2e8], ecx
xor ebx, ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2cc], ebx
xor eax, eax
push 9
push 0x1011c3e4
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
call fcn.10002100
push 0x1011c450
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10007490
push 0x24c
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 1
push ebx
push eax
mov dword [ebp - 0x2a8], ebx
call sub.MSVCR120.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x2a8]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov edi, eax
cmp edi, 0xffffffff
je 0x10012bb8
lea esp, [esp]
test byte [ebp - 0x2a8], 0x10
je 0x10012b9b
cmp word [ebp - 0x27c], 0x2e
je 0x10012a25
push 7
xor eax, eax
mov dword [ebp - 0x2d0], 7
push 0x1011c458
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x2d4], 0
mov word [ebp - 0x2e4], ax
call fcn.10002100
mov byte [ebp - 4], 2
or ebx, 1
cmp word [ebp - 0x27c], 0
mov dword [ebp - 0x2cc], ebx
jne 0x10012955
xor ecx, ecx
jmp 0x1001296f
lea ecx, [ebp - 0x27c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10012960
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x2d4]
lea ecx, [ebp - 0x2e4]
push 0
call fcn.100035e0
test eax, eax
je 0x10012a25
push 6
xor eax, eax
mov dword [ebp - 0x2b4], 7
push 0x1011c468
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2b8], 0
mov word [ebp - 0x2c8], ax
call fcn.10002100
mov dword [ebp - 4], 3
or ebx, 2
cmp word [ebp - 0x27c], 0
mov dword [ebp - 0x2cc], ebx
jne 0x100129df
xor eax, eax
jmp 0x100129ff
lea eax, [ebp - 0x27c]
lea edx, [eax + 2]
jmp 0x100129f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100129f0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2c8]
push 0
call fcn.100035e0
mov byte [ebp - 0x2a9], 1
test eax, eax
jne 0x10012a2c
mov byte [ebp - 0x2a9], 0
test bl, 2
je 0x10012a65
and ebx, 0xfffffffd
cmp dword [ebp - 0x2b4], 8
jb 0x10012a48
push dword [ebp - 0x2c8]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2b4], 7
mov dword [ebp - 0x2b8], 0
mov word [ebp - 0x2c8], ax
mov dword [ebp - 4], 1
test bl, 1
je 0x10012a88
and ebx, 0xfffffffe
cmp dword [ebp - 0x2d0], 8
jb 0x10012a88
push dword [ebp - 0x2e4]
call esi
add esp, 4
cmp byte [ebp - 0x2a9], 0
je 0x10012b9b
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2e4]
push eax
call fcn.10007490
push str.Roaming
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.10007580
add esp, 0x10
mov byte [ebp - 4], 6
cmp dword [ebp - 0x2d0], 8
jb 0x10012ada
push dword [ebp - 0x2e4]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2d0], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x2e4], ax
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2b8], eax
mov word [ebp - 0x2c8], ax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2b4], 7
call fcn.10001d60
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 7
call fcn.10041500
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
cmovae eax, dword [ebp - 0x2c8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 6
setne al
cmp dword [ebp - 0x2b4], 8
mov byte [ebp - 0x2a9], al
jb 0x10012b73
push dword [ebp - 0x2c8]
call esi
mov al, byte [ebp - 0x2a9]
add esp, 4
test al, al
je 0x10012b89
mov ecx, dword [ebp - 0x2e8]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ecx + 0x74]
call fcn.10006e40
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], 8
jb 0x10012b9b
push dword [ebp - 0x58]
call esi
add esp, 4
lea eax, [ebp - 0x2a8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100128f0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 8
jb 0x10012bc6
push dword [ebp - 0x28]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x10012be8
push dword [ebp - 0x40]
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret