Function at 0x42bb00
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x581900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x140
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.004e69c0
xor eax, eax
push ebx
mov dword [ebp - 0x148], eax
call fcn.004a73a0
add esp, 0x10
test eax, eax
jne 0x42be42
push 1
push 0x71c
call fcn.004eea94
mov esi, eax
add esp, 8
test esi, esi
je 0x42be42
push edi
push 1
push 0x71c
call fcn.004eea94
mov edi, eax
add esp, 8
mov dword [ebp - 0x14c], edi
test edi, edi
jne 0x42bb9e
push esi
call fcn.004eea9f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
push 0x71c
push ebx
push esi
call fcn.004a9a20
push esi
call fcn.004a87a0
push esi
call fcn.004a86c0
push 0x22
push esi
call fcn.004a8100
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42bc1e
test al, 0x10
je 0x42bc1e
push 0x50b6dc
push esi
call fcn.004e61d0
add esp, 8
test eax, eax
jne 0x42bc1e
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42bbe8
sub ecx, edx
cmp byte [ecx + esi - 1], 0x5c
je 0x42bc0b
push 0x71c
push 0x5182fc
push esi
call fcn.004a98f0
add esp, 0xc
push 0x71c
push 0x50b6dc
push esi
call fcn.004a98f0
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42bc60
push esi
call fcn.004eea9f
push edi
call fcn.004eea9f
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x118]
push eax
call fcn.004a73a0
add esp, 4
test eax, eax
jne 0x42bd0c
cmp byte [ebp - 0x118], 0x2e
je 0x42bd0c
cmp dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x144]
je 0x42bc93
test al, 2
jne 0x42bd0c
test al, 0x10
jne 0x42bd0c
inc dword [ebp - 0x148]
cmp dword [ebp - 0x150], 0
je 0x42bd0c
push 0x71c
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.004a9a20
push 0x104
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004a9a20
lea eax, [ebp - 0x118]
push eax
call fcn.004a8490
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.004a7ad0
push 0x104
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.004a9a20
add esp, 0x30
lea eax, [ebp - 0x144]
push dword [ebp + 0x18]
push eax
call dword [ebp - 0x150]
test eax, eax
je 0x42bd22
lea eax, [ebp - 0x144]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42bc60
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x10], 0
je 0x42be1c
mov ebx, edi
mov ecx, esi
sub ebx, esi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x42bd40
push edi
call fcn.004a8490
add esp, 4
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x42bd57
mov ax, word [0x50b6dc]
mov word [edi], ax
lea eax, [ebp - 0x144]
mov edi, dword [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp eax, 0xffffffff
je 0x42be1c
nop dword [eax]
lea eax, [ebp - 0x118]
push eax
call fcn.004a73a0
add esp, 4
test eax, eax
jne 0x42bdf9
cmp byte [ebp - 0x118], 0x2e
je 0x42bdf9
cmp dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x144]
je 0x42bdbb
test al, 2
jne 0x42bdf9
test al, 0x10
je 0x42bdf9
mov ecx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x42bdc1
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.004a3e30
push dword [ebp + 0x18]
push dword [ebp - 0x150]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0042bb00
add esp, 0x1c
add dword [ebp - 0x148], eax
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42bd90
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.004eea9f
push edi
call fcn.004eea9f
mov eax, dword [ebp - 0x148]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004e50dc
mov esp, ebp
pop ebp
ret