Function at 0x13013163
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x13043a88
call fcn.130251dc
sub esp, 0x28c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
je 0x130134b2
cmp byte [esi], bl
je 0x130134b2
mov eax, dword [0x1305ad40]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
call fcn.1300afc0
pop ecx
push esi
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp + 8]
push str._s_scripts_s
push eax
call fcn.130384c5
and byte [ebp - 4], bl
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.130395f0
push dword [ebp + 8]
call fcn.13009a90
test eax, eax
pop ecx
jne 0x13013207
lea eax, [ebp - 0x14]
push eax
call fcn.1300afc0
pop ecx
movsx ecx, byte [esi]
push esi
push ecx
push dword [eax]
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push str._s_scripts_c_s
push eax
call fcn.130384c5
and byte [ebp - 4], bl
add esp, 0x14
lea ecx, [ebp - 0x14]
call fcn.130395f0
push dword [ebp + 8]
call fcn.13009a90
test eax, eax
pop ecx
jne 0x13013234
push dword [ebp + 8]
push str.No_ESF_files_found_in__s
push 0x164
push str.D:Fixtree_40SyseGuardScriptManagerScriptManager.cpp
push ebx
call fcn.13020ae0
add esp, 0x14
jmp 0x130134a6
mov eax, dword [0x1305ad40]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push dword [ebp + 8]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push str._s.esf
push eax
call fcn.130384c5
add esp, 0xc
lea eax, [ebp - 0x1c]
push dword [ebp + 8]
push 0x13058034
push eax
call fcn.130384c5
add esp, 0xc
lea ecx, [ebp - 0x1c]
push 0x13056d80
call fcn.13039980
push dword [ebp - 0x20]
push str.Looking_for_ESF_scripts_in__s._r_n
push 0x170
push str.D:Fixtree_40SyseGuardScriptManagerScriptManager.cpp
push ebx
call fcn.13020ae0
add esp, 0x14
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x1301348e
jmp 0x130132b3
xor ebx, ebx
mov eax, dword [0x1305ad40]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
call fcn.130384c5
mov eax, dword [0x1305ad40]
add esp, 0xc
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
call fcn.1303af20
mov dword [ebp - 0x54], 0x130467b0
push ebx
push 0x20
push dword [ebp - 0x18]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 8
call fcn.1303af95
cmp eax, ebx
je 0x13013446
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x54]
push eax
call fcn.1300d4c0
cmp eax, ebx
je 0x13013446
push str.__ScriptID
push dword [ebp - 0x24]
call fcn.1300c620
pop ecx
cmp eax, ebx
pop ecx
je 0x13013446
push 0x3d
push dword [ebp - 0x24]
call fcn.13026d40
mov esi, eax
pop ecx
inc esi
pop ecx
test eax, eax
mov dword [ebp - 0x28], esi
je 0x13013446
cmp byte [esi], 0
je 0x13013446
lea ecx, [ebp - 0x40]
call fcn.1303a856
push ebx
push 0x20
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.1303aa08
cmp eax, ebx
je 0x1301343a
lea ecx, [ebp - 0x40]
call fcn.1303ad02
inc eax
push eax
call fcn.13039b3e
mov edi, eax
pop ecx
cmp edi, ebx
je 0x1301343a
lea ecx, [ebp - 0x40]
call fcn.1303ad02
inc eax
push eax
push ebx
push edi
call fcn.13025750
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.1303ad02
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.1303ab25
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
push eax
push esi
push dword [ebp - 0x18]
call fcn.13014d83
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x13013433
mov eax, dword [esi + 0x5c]
xor bl, bl
cmp byte [ebp + 0xc], bl
je 0x13013409
test eax, 0x40000
je 0x13013412
cmp word [esi + 0xc], 4
jae 0x13013410
push dword [ebp - 0x28]
push str.SKS_Script_version_error:__s._r_n
push 0x1a3
push str.D:Fixtree_40SyseGuardScriptManagerScriptManager.cpp
push 0
call fcn.13020ae0
add esp, 0x14
jmp 0x13013412
test eax, 0x40000
jne 0x13013425
mov bl, 1
test bl, bl
je 0x13013425
mov ecx, dword [ebp - 0x30]
push esi
mov eax, dword [ecx + 8]
push eax
call fcn.13038b96
jmp 0x13013433
mov ecx, esi
call fcn.1301555f
push esi
call fcn.13039b67
pop ecx
push edi
call fcn.13039b67
pop ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.1303a94b
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
call fcn.1303af52
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.130395f0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 4
call fcn.130395f0
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x130132b1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.130395f0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.130395f0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.130395f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8