Function at 0x100082f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c43c
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push str.profile
xor esi, esi
mov byte [ebp - 0x265], 0
call fcn.1000b91d
lea edi, [ebp - 0x290]
mov ecx, eax
call fcn.1000ba6d
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x274], esi
mov esi, dword [ebp - 0x290]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x100083d4
add esi, 0x10
mov ebx, dword [esi]
mov eax, ebx
cmp eax, ebx
jae 0x1000837b
mov ecx, ebx
cmp ebx, 0x12
jb 0x10008387
mov ecx, 0x12
cmp dword [esi + 4], 0x10
jb 0x10008392
mov eax, dword [esi - 0x10]
jmp 0x10008395
lea eax, [esi - 0x10]
push ecx
push str.created_by_version
push eax
call fcn.100090d0
add esp, 0xc
test eax, eax
jne 0x100083b7
cmp ebx, 0x12
jb 0x100083b7
cmp ebx, 0x12
setne al
test eax, eax
je 0x100083cd
mov eax, dword [ebp - 0x274]
inc eax
add esi, 0x1c
mov dword [ebp - 0x274], eax
cmp eax, edi
jb 0x10008373
jmp 0x100083d4
mov byte [ebp - 0x265], 1
lea ecx, [ebp - 0x278]
mov byte [ebp - 0x26d], 0
call fcn.10008a90
mov byte [ebp - 4], 1
mov ebx, dword [0x10095a04]
push 0x10082898
mov dword [ebp - 0x26c], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x100084c7
mov ecx, edi
lea edx, [ebp - 0x26c]
call fcn.10004e70
mov ebx, dword [ebp - 0x26c]
test eax, eax
je 0x100084c7
inc edi
jne 0x1000842d
test ebx, ebx
jne 0x1000844b
push edi
push ebx
push 0xffffffffffffffff
push 0x10082898
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x1000844b
xor ecx, ecx
mov word [ebx + eax*2 - 2], cx
cmp dword [ebx - 0xc], 1
lea edi, [ebx - 0xc]
jle 0x100084b7
add ebx, 0xfffffff4
cmp ebx, dword [0x10095a00]
je 0x1000847f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008473
push edi
call fcn.10066c8a
add esp, 4
mov edx, dword [0x10095a04]
mov dword [ebp - 0x26c], edx
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x26c]
call fcn.10004e70
mov ebx, dword [ebp - 0x26c]
test eax, eax
je 0x100084b7
mov eax, dword [edi + 4]
mov ecx, dword [ebx - 4]
lea eax, [eax + eax + 2]
lea ecx, [ecx + ecx + 2]
cmp ecx, eax
jb 0x100084b7
push eax
add edi, 0xc
push edi
push ebx
call fcn.10065820
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [ebx - 8], eax
mov word [ebx + eax*2], cx
mov byte [ebp - 4], 2
mov edi, dword [ebx - 8]
test edi, edi
je 0x10008557
mov eax, dword [ebp - 0x278]
cmp dword [eax - 0xc], 1
lea esi, [eax - 0xc]
jg 0x1000851f
mov ecx, dword [eax - 8]
mov edx, dword [eax - 4]
lea eax, [ecx + edi]
cmp eax, edx
jg 0x1000851f
mov esi, dword [ebp - 0x278]
lea eax, [edi + edi]
lea edx, [edx + edx + 2]
lea ecx, [esi + ecx*2]
cmp edx, eax
jb 0x10008511
push eax
push ebx
push ecx
call fcn.10065820
add esp, 0xc
add dword [esi - 8], edi
mov ecx, dword [esi - 8]
xor edx, edx
mov word [esi + ecx*2], dx
jmp 0x10008557
mov eax, dword [ebp - 0x278]
push ebx
push edi
mov edi, dword [esi + 4]
push eax
lea ecx, [ebp - 0x278]
push ecx
call fcn.100032a0
test eax, eax
je 0x10008557
cmp esi, dword [0x10095a00]
je 0x10008557
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008557
push esi
call fcn.10066c8a
add esp, 4
lea edx, [ebx - 0xc]
mov byte [ebp - 4], 1
cmp edx, dword [0x10095a00]
je 0x1000857d
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000857d
push ebx
call fcn.10066c8a
add esp, 4
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x264]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x280], eax
jmp 0x100085a0
test byte [ebp - 0x264], 0x10
je 0x10008783
mov esi, dword [0x10095a04]
lea edx, [ebp - 0x238]
shr edx, 0x10
mov dword [ebp - 0x26c], esi
test edx, edx
jne 0x10008616
lea eax, [ebp - 0x238]
movzx eax, ax
push eax
lea ecx, [ebp - 0x26c]
call fcn.100044d0
mov esi, dword [ebp - 0x26c]
mov byte [ebp - 4], 3
mov ecx, 0x100828ec
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000865d
test dx, dx
je 0x10008612
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000865d
add eax, 4
add ecx, 4
test dx, dx
jne 0x100085f0
xor eax, eax
jmp 0x10008662
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x100085e1
mov ecx, edi
lea edx, [ebp - 0x26c]
call fcn.10004e70
test eax, eax
je 0x100085db
lea eax, [edi + edi]
lea edx, [eax + 2]
cmp edx, eax
jb 0x100085db
mov esi, dword [ebp - 0x26c]
push eax
lea eax, [ebp - 0x238]
push eax
push esi
call fcn.10065820
add esp, 0xc
jmp 0x100085e1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000875d
mov ecx, 0x100828f0
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10008697
test dx, dx
je 0x10008693
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10008697
add eax, 4
add ecx, 4
test dx, dx
jne 0x10008671
xor eax, eax
jmp 0x1000869c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000875d
cmp dword [esi - 8], 0
jl 0x1000874e
push 0x100828ec
push esi
call fcn.10066a5d
add esp, 8
test eax, eax
je 0x1000874e
sub eax, esi
sar eax, 1
js 0x1000874e
lea ecx, [ebp - 0x274]
push ecx
mov ecx, eax
lea ebx, [ebp - 0x26c]
call fcn.10006ba0
mov eax, dword [ebp - 0x274]
lea edx, [ebp - 0x27c]
push edx
push 0x10082890
push eax
mov dword [ebp - 0x27c], 0
call fcn.1006786f
mov eax, dword [ebp - 0x27c]
add esp, 0xc
test eax, eax
je 0x1000871d
cmp eax, 0x12
jl 0x1000871d
mov byte [ebp - 0x26d], 1
mov eax, dword [ebp - 0x274]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x10095a00]
je 0x1000874e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000874e
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff4
push eax
call fcn.10066c8a
add esp, 4
lea edx, [esi - 0xc]
mov byte [ebp - 4], 1
cmp edx, dword [0x10095a00]
jmp 0x1000876a
lea eax, [esi - 0xc]
mov byte [ebp - 4], 1
cmp eax, dword [0x10095a00]
je 0x10008783
lea edi, [esi - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008783
push edi
call fcn.10066c8a
add esp, 4
mov edx, dword [ebp - 0x280]
lea ecx, [ebp - 0x264]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100085a0
cmp byte [ebp - 0x265], al
jne 0x100087b5
mov byte [ebp - 0x265], al
cmp byte [ebp - 0x26d], al
je 0x100087bc
mov byte [ebp - 0x265], 1
mov edi, dword [ebp - 0x278]
lea eax, [edi - 0xc]
cmp eax, dword [0x10095a00]
je 0x100087e4
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100087e4
push edi
call fcn.10066c8a
add esp, 4
mov edi, dword [ebp - 0x290]
test edi, edi
je 0x10008834
mov ebx, dword [ebp - 0x28c]
cmp edi, ebx
je 0x10008825
mov esi, 0xf
lea ecx, [ecx]
cmp dword [edi + 0x14], 0x10
jb 0x10008811
mov ecx, dword [edi]
push ecx
call fcn.100660ce
add esp, 4
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], 0
mov byte [edi], 0
add edi, 0x1c
cmp edi, ebx
jne 0x10008800
mov edx, dword [ebp - 0x290]
push edx
call fcn.100660ce
add esp, 4
mov al, byte [ebp - 0x265]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret 4