Function at 0x1006f140
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x364
mov eax, dword [0x10155018]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x150]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
push 0
push eax
mov dword [esp + 0x18], ebx
call fcn.100f1950
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x26c]
push ebx
push str._s.lua
push eax
call edi
add esp, 0x18
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x1006f445
test byte [esp + 0x18], 0x10
jne 0x1006f39a
push 0x102f7d00
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x44]
push eax
push ebx
lea eax, [esp + 0x160]
push str._s_s
push eax
call edi
push 0x10c
xor bl, bl
call fcn.100a3d81
push 0x10c
mov edi, eax
push 0
push edi
mov dword [esp + 0x34], edi
call fcn.100f1950
push 0x100
lea eax, [edi + 0xc]
mov dword [edi], vtable.CLuaDecrypt.0
push 0
push eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.100f1950
add esp, 0x2c
lea eax, [esp + 0x158]
mov ecx, edi
push eax
call fcn.1005f870
test al, al
jne 0x1006f23c
mov bl, 1
jmp 0x1006f286
lea ecx, [esp + 0x158]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006f246
sub ecx, edx
lea eax, [esp + 0x158]
push ecx
push 0
push eax
call fcn.100f1950
lea ecx, [edi + 0xc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006f268
sub ecx, edx
lea eax, [edi + 0xc]
push ecx
push eax
lea eax, [esp + 0x160]
push eax
call fcn.100f13d0
add esp, 0xc
cmp byte [0x102f6fa0], 0
je 0x1006f297
test bl, bl
je 0x1006f3c8
push str._LOADED
push 0xffffd8f0
push esi
call fcn.100a53e0
lea eax, [esp + 0x164]
push eax
push 2
push esi
call fcn.100a53e0
push 0xffffffffffffffff
push esi
call fcn.100a6300
add esp, 0x20
test eax, eax
jne 0x1006f40a
lea eax, [esp + 0x158]
push eax
push esi
call fcn.100a9e80
add esp, 8
test eax, eax
jne 0x1006f3d2
push 0x101461a0
push esi
call fcn.100a5ab0
lea eax, [esp + 0x160]
push eax
push 2
push esi
call fcn.100a5fc0
lea eax, [esp + 0x16c]
push eax
push esi
call fcn.100a5ba0
push 1
push 1
push esi
call fcn.100a50b0
push 0xffffffffffffffff
push esi
call fcn.100a64c0
add esp, 0x30
test eax, eax
je 0x1006f338
lea eax, [esp + 0x158]
push eax
push 2
push esi
call fcn.100a5fc0
add esp, 0xc
lea eax, [esp + 0x158]
push eax
push 2
push esi
call fcn.100a53e0
push 0xffffffffffffffff
push esi
call fcn.100a6490
add esp, 0x14
cmp eax, 0x101461a0
jne 0x1006f37d
push 1
push esi
call fcn.100a5990
push 0xffffffffffffffff
push esi
call fcn.100a5c50
lea eax, [esp + 0x168]
push eax
push 2
push esi
call fcn.100a5fc0
add esp, 0x1c
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push 0x102f7d00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1006f1b4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.100a3a28
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
jmp 0x1006f43a
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push 0
push 0xffffffffffffffff
push esi
call fcn.100a6380
push 0
push 1
push esi
mov edi, eax
call fcn.100a6380
push edi
lea ecx, [esp + 0x174]
push ecx
push eax
push str.error_loading_module__s_from_file__s:_n_t_s
push esi
call fcn.100a9520
add esp, 0x2c
jmp 0x1006f43a
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push 0xffffffffffffffff
push esi
call fcn.100a6490
add esp, 8
cmp eax, 0x101461a0
jne 0x1006f43a
lea eax, [esp + 0x158]
push eax
push str.loop_or_previous_error_loading_module__s
push esi
call fcn.100a9520
add esp, 0xc
push 0x102f7d00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x36c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100a3a28
mov esp, ebp
pop ebp
ret 8