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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa9c
xor eax, eax
or ecx, 0xffffffff
push ebx
push esi
push edi
mov edi, 0x4d396c
lea esi, [ebp - 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004a36d4
pop ecx
mov ebx, eax
test ebx, ebx
jle 0x45b37c
xor eax, eax
mov al, byte [ebp + ebx - 0x121]
cmp eax, 0x5c
je 0x45b37c
lea edx, [ebp - 0x120]
add ebx, edx
mov edi, ebx
mov esi, 0x4bbab9
mov eax, edi
movsw word es:[edi], word [esi]
push 0
push 0
lea edx, [ebp - 0x324]
push edx
lea ecx, [ebp - 0xf]
push ecx
lea eax, [ebp - 0x120]
push eax
call fcn.004a51bc
add esp, 0x14
lea edx, [ebp - 0x424]
push 0
push edx
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a51bc
add esp, 0x14
lea eax, [ebp - 0x424]
lea edx, [ebp - 0x324]
lea ecx, [ebp - 0xf]
push str..udd
push eax
push edx
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a5198
add esp, 0x14
cmp dword [0x4d7358], 0
jne 0x45b5fd
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x324]
push edx
push ecx
lea eax, [ebp - 0xf]
lea edx, [ebp - 0x120]
push eax
push str._s_s_s.udd
push edx
call fcn.004a6c2c
add esp, 0x14
lea ecx, [ebp - 0x564]
push ecx
lea eax, [ebp - 0x120]
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x45b5fd
xor edx, edx
mov dword [ebp - 4], edx
lea ecx, [ebp - 0x538]
lea eax, [ebp - 0x324]
push ecx
push eax
lea edx, [ebp - 0xf]
lea ecx, [ebp - 0x120]
push edx
push str._s_s_s
push ecx
call fcn.004a6c2c
add esp, 0x14
push 0x4bbad3
lea eax, [ebp - 0x120]
push eax
call fcn.004a5374
add esp, 8
mov esi, eax
test esi, esi
je 0x45b52b
xor ebx, ebx
push esi
push 8
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.004a55d0
add esp, 0x10
cmp eax, 8
jne 0x45b524
cmp dword [ebp - 0xc], 0x6c69460a
je 0x45b4a8
push 1
mov edx, dword [ebp - 8]
push edx
push esi
call fcn.004a5660
add esp, 0xc
jmp 0x45b51a
mov edi, dword [ebp - 8]
cmp edi, 0x104
ja 0x45b524
push esi
push edi
push 1
lea eax, [ebp - 0x224]
push eax
call fcn.004a55d0
add esp, 0x10
cmp eax, dword [ebp - 8]
jne 0x45b524
push 0x104
lea edx, [ebp - 0x224]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a3954
add esp, 0xc
test eax, eax
jne 0x45b51a
mov eax, dword [ebp + 0xc]
push esi
mov esi, eax
xor eax, eax
lea edi, [ebp - 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov dword [ebp - 4], 1
jmp 0x45b524
inc ebx
cmp ebx, 0xa
jl 0x45b474
push esi
call fcn.004a4ed8
pop ecx
cmp dword [ebp - 4], 0
jne 0x45b549
lea eax, [ebp - 0x564]
push eax
mov edx, dword [ebp - 0x14]
push edx
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x45b42e
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.DLL_FindClose
cmp dword [ebp - 4], 0
jne 0x45b5fd
xor ebx, ebx
test ebx, ebx
jne 0x45b58a
push str..udd
lea eax, [ebp - 0x424]
push eax
lea edx, [ebp - 0x324]
push edx
lea ecx, [ebp - 0xf]
push ecx
lea eax, [ebp - 0x120]
push eax
call fcn.004a5198
add esp, 0x14
jmp 0x45b5b8
push ebx
lea edx, [ebp - 0x424]
push edx
lea ecx, [ebp - 0x324]
push ecx
lea eax, [ebp - 0xf]
push eax
push str._s_s_s__i.udd
lea edx, [ebp - 0x120]
push edx
call fcn.004a6c2c
add esp, 0x18
cmp eax, 0xff
jg 0x45b5fd
lea ecx, [ebp - 0x120]
push ecx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x45b5f3
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x120]
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x45b5fd
inc ebx
cmp ebx, 0x64
jl 0x45b55e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret