Function at 0x10058ca0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x10138018]
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.100d3110
add esp, 0xc
lea eax, [esp + 0x258]
push ebx
push str._s.lua
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10058f74
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [eax]
test byte [esp + 0x10], 0x10
jne 0x10058ed3
push 0x10140aa0
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]
mov ecx, 0x101470c0
push eax
call fcn.10048e90
test al, al
je 0x10058dc1
lea ecx, [esp + 0x150]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10058d75
sub ecx, edx
lea eax, [esp + 0x150]
push ecx
push 0
push eax
call fcn.100d3110
mov ecx, 0x101470cc
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10058da0
sub ecx, edx
lea eax, [esp + 0x150]
push ecx
push 0x101470cc
push eax
call fcn.100d2b90
add esp, 0xc
mov al, 1
cmp byte [0x10146470], 0
je 0x10058dd2
test al, al
je 0x10058efe
push str._LOADED
push 0xffffd8f0
push esi
call fcn.10086c00
add esp, 0xc
lea eax, [esp + 0x150]
push eax
push 2
push esi
call fcn.10086c00
add esp, 0xc
push 0xffffffffffffffff
push esi
call fcn.10087b20
add esp, 8
test eax, eax
jne 0x10058f40
lea eax, [esp + 0x150]
push eax
push esi
call fcn.1008b5c0
add esp, 8
test eax, eax
jne 0x10058f05
push 0x1012a504
push esi
call fcn.100872d0
lea eax, [esp + 0x158]
push eax
push 2
push esi
call fcn.100877e0
add esp, 0x14
lea eax, [esp + 0x150]
push eax
push esi
call fcn.100873c0
push 1
push 1
push esi
call fcn.100868d0
add esp, 0x14
push 0xffffffffffffffff
push esi
call fcn.10087ce0
add esp, 8
test eax, eax
je 0x10058e7f
lea eax, [esp + 0x150]
push eax
push 2
push esi
call fcn.100877e0
add esp, 0xc
lea eax, [esp + 0x150]
push eax
push 2
push esi
call fcn.10086c00
add esp, 0xc
push 0xffffffffffffffff
push esi
call fcn.10087cb0
add esp, 8
cmp eax, 0x1012a504
jne 0x10058ec7
push 1
push esi
call fcn.100871b0
push 0xffffffffffffffff
push esi
call fcn.10087470
lea eax, [esp + 0x160]
push eax
push 2
push esi
call fcn.100877e0
add esp, 0x1c
call fcn.10049050
push 0x10140aa0
call ebx
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10058d20
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.1008500c
mov esp, ebp
pop ebp
ret 8
call fcn.10049050
jmp 0x10058f6d
call fcn.10049050
push 0
push 0xffffffffffffffff
push esi
call fcn.10087ba0
add esp, 0xc
mov edi, eax
push 0
push 1
push esi
call fcn.10087ba0
add esp, 0xc
lea ecx, [esp + 0x150]
push edi
push ecx
push eax
push str.error_loading_module__s_from_file__s:_n_t_s
push esi
call fcn.1008acf0
add esp, 0x14
jmp 0x10058f6d
call fcn.10049050
push 0xffffffffffffffff
push esi
call fcn.10087cb0
add esp, 8
cmp eax, 0x1012a504
jne 0x10058f6d
lea eax, [esp + 0x150]
push eax
push str.loop_or_previous_error_loading_module__s
push esi
call fcn.1008acf0
add esp, 0xc
push 0x10140aa0
call ebx
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008500c
mov esp, ebp
pop ebp
ret 8