Function at 0x10048f00
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x1010400c]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x148]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
push 0
push eax
mov dword [esp + 0x18], ebx
call fcn.100af060
push ebx
lea eax, [esp + 0x268]
push str._s.lua
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100491b7
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop word [eax + eax]
test byte [esp + 0x10], 0x10
jne 0x10049118
push 0x1010b7c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x158]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x150]
push eax
call fcn.1003b480
test al, al
je 0x10049015
lea ecx, [esp + 0x150]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10048fd0
sub ecx, edx
lea eax, [esp + 0x150]
push ecx
push 0
push eax
call fcn.100af060
mov ecx, 0x1010c82c
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10048ff4
sub ecx, edx
lea eax, [esp + 0x150]
push ecx
push 0x1010c82c
push eax
call fcn.100af560
add esp, 0xc
mov al, 1
cmp byte [0x1010bc00], 0
je 0x10049026
test al, al
je 0x10049143
push str._LOADED
push 0xffffd8f0
push esi
call fcn.10062db0
lea eax, [esp + 0x15c]
push eax
push 2
push esi
call fcn.10062db0
push 0xffffffffffffffff
push esi
call fcn.10063cd0
add esp, 0x20
test eax, eax
jne 0x10049183
lea eax, [esp + 0x150]
push eax
push esi
call fcn.10067910
add esp, 8
test eax, eax
jne 0x1004914a
push 0x100fa05c
push esi
call fcn.10063480
lea eax, [esp + 0x158]
push eax
push 2
push esi
call fcn.10063990
lea eax, [esp + 0x164]
push eax
push esi
call fcn.10063570
push 1
push 1
push esi
call fcn.10062a80
push 0xffffffffffffffff
push esi
call fcn.10063e90
add esp, 0x30
test eax, eax
je 0x100490c7
lea eax, [esp + 0x150]
push eax
push 2
push esi
call fcn.10063990
add esp, 0xc
lea eax, [esp + 0x150]
push eax
push 2
push esi
call fcn.10062db0
push 0xffffffffffffffff
push esi
call fcn.10063e60
add esp, 0x14
cmp eax, 0x100fa05c
jne 0x1004910c
push 1
push esi
call fcn.10063360
push 0xffffffffffffffff
push esi
call fcn.10063620
lea eax, [esp + 0x160]
push eax
push 2
push esi
call fcn.10063990
add esp, 0x1c
call fcn.1003b660
push 0x1010b7c8
call edi
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10048f80
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.10061486
mov esp, ebp
pop ebp
ret 8
call fcn.1003b660
jmp 0x100491b0
call fcn.1003b660
push 0
push 0xffffffffffffffff
push esi
call fcn.10063d50
add esp, 0xc
push eax
lea eax, [esp + 0x154]
push eax
push 0
push 1
push esi
call fcn.10063d50
add esp, 0xc
push eax
push str.error_loading_module__s_from_file__s:_n_t_s
push esi
call fcn.10066fb0
add esp, 0x14
jmp 0x100491b0
call fcn.1003b660
push 0xffffffffffffffff
push esi
call fcn.10063e60
add esp, 8
cmp eax, 0x100fa05c
jne 0x100491b0
lea eax, [esp + 0x150]
push eax
push str.loop_or_previous_error_loading_module__s
push esi
call fcn.10066fb0
add esp, 0xc
push 0x1010b7c8
call edi
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10061486
mov esp, ebp
pop ebp
ret 8