Function at 0x4bbc5a
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x310
mov eax, 0x5d5442
call fcn.0056df1d
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x30c], esi
mov dword [ebp - 0x30c], esi
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4bbc89
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
test eax, eax
je 0x4bbcab
push edi
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00407eca
jmp 0x4bc11d
mov eax, dword [0x650f44]
test al, 1
jne 0x4bbce7
or eax, 1
mov dword [0x650f44], eax
mov dword [ebp - 4], ebx
push 0x650f48
mov dword [0x650f48], ebx
mov dword [0x650f4c], ebx
call fcn.004bd748
mov dword [0x650f48], eax
mov dword [esp], 0x5dde88
call fcn.0056d44b
pop ecx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x58], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
lea edx, [ebp - 0x58]
call fcn.004bbb22
pop ecx
pop ecx
test al, al
jne 0x4bbda8
xor eax, eax
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov ecx, esi
mov dword [esi + 0x14], 7
push 0x605890
mov word [esi], ax
call fcn.004089a4
mov eax, dword [ebp - 0x14]
mov edi, 0x1000
cmp eax, 8
jb 0x4bc065
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x30c], ecx
cmp eax, edi
jb 0x4bc05c
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.0040379f
mov eax, dword [ebp - 0x310]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30c]
jmp 0x4bc05c
push edi
call fcn.004bd6d9
cmp eax, dword [0x650f48]
je 0x4bbdf3
add eax, 0x28
mov dword [ebp - 0x30c], eax
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4bbdc9
mov ecx, dword [eax]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bbdf3
push dword [ebp - 0x30c]
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00407eca
mov edi, 0x1000
jmp 0x4bc019
push 0x250
lea eax, [ebp - 0x308]
push ebx
push eax
call fcn.005713c0
sub esp, 0xc
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00407eca
lea ecx, [ebp - 0xb8]
call fcn.004bbc12
add esp, 0x18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
push dword [ebp - 0x48]
cmovae ecx, dword [ebp - 0x58]
push ecx
push ebx
mov ecx, eax
call fcn.0045cf9f
push eax
lea ecx, [ebp - 0x88]
call fcn.00444a6a
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x88]
call fcn.0044449c
push eax
lea ecx, [ebp - 0xa0]
call fcn.00444a6a
lea ecx, [ebp - 0x88]
call fcn.00403730
lea ecx, [ebp - 0xb8]
call fcn.00403730
cmp dword [ebp - 0x8c], 8
lea ecx, [ebp - 0x308]
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
push 7
pop edx
xor ecx, ecx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], edx
mov word [ebp - 0x88], cx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], edx
mov word [ebp - 0x70], cx
mov byte [ebp - 4], 0xa
cmp eax, 0xffffffff
jne 0x4bbf04
xor eax, eax
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov ecx, esi
mov dword [esi + 0x14], edx
push 0x605890
mov word [esi], ax
call fcn.004089a4
lea ecx, [ebp - 0xa0]
call fcn.00403730
jmp 0x4bbde9
mov esi, dword [ebp - 0x30c]
cmp word [ebp - 0x2dc], 0x2e
je 0x4bbf8a
test byte [ebp - 0x308], 0x10
jne 0x4bbf8a
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0044c79e
lea ecx, [ebp - 0x70]
add esp, 0xc
cmp ecx, eax
je 0x4bbf50
mov byte [ebp - 0x310], bl
push dword [ebp - 0x310]
push eax
call fcn.004444b9
lea ecx, [ebp - 0xb8]
call fcn.00403730
push edi
lea eax, [ebp - 0x31c]
push eax
call fcn.004bd648
mov ecx, dword [eax]
add ecx, 0x28
cmp dword [ecx + 0x10], ebx
jne 0x4bbf8a
lea eax, [ebp - 0x70]
cmp ecx, eax
je 0x4bbf8a
cmp dword [ebp - 0x5c], 8
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.00407684
lea eax, [ebp - 0x308]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4bbf0a
push dword [ebp - 0x30c]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov esi, dword [ebp - 0x314]
lea eax, [ebp - 0x70]
push eax
mov ecx, esi
call fcn.00444a6a
mov eax, dword [ebp - 0x5c]
mov edi, 0x1000
cmp eax, 8
jb 0x4bc00e
mov ecx, dword [ebp - 0x70]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x310], ecx
cmp eax, edi
jb 0x4bc005
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0040379f
mov eax, dword [ebp - 0x30c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x310]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
lea ecx, [ebp - 0xa0]
call fcn.00403730
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4bc065
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x310], ecx
cmp eax, edi
jb 0x4bc05c
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0040379f
mov eax, dword [ebp - 0x30c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x310]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
cmp eax, 8
jb 0x4bc0c1
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x310], ecx
mov dword [ebp - 0x30c], eax
cmp eax, edi
jb 0x4bc0b8
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0040379f
mov eax, dword [ebp - 0x30c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x310]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], ebx
cmp eax, 8
jb 0x4bc11d
mov ecx, dword [ebp - 0x58]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x310], ecx
mov dword [ebp - 0x30c], eax
cmp eax, edi
jb 0x4bc114
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0040379f
mov eax, dword [ebp - 0x30c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x310]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
mov eax, esi
call fcn.0056decc
ret