Function at 0x46d4c8
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570ee1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1610
call fcn.0054cd40
lea ecx, [ebp - 0x15a0]
call fcn.004013e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x15a4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
push 0x40
push 0
lea eax, [ebp - 0x15e8]
push eax
call fcn.0054bfb0
add esp, 0xc
mov dword [ebp - 0x10], 0
jmp 0x46d539
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x10
jge 0x46d5ce
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + edx + 0x30]
cmp ecx, 0xff
je 0x46d5c9
mov dword [ebp - 0x18], 0
jmp 0x46d56c
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 4
jge 0x46d5c7
push 0x40
push 0
lea eax, [ebp - 0x458]
push eax
call fcn.0054bfb0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
shl ecx, 4
mov edx, dword [ebp - 0x18]
lea eax, [ecx + edx + 0x30]
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + eax]
push edx
push 0x5a8c24
lea eax, [ebp - 0x458]
push eax
call fcn.0054c45b
add esp, 0xc
lea ecx, [ebp - 0x458]
push ecx
lea edx, [ebp - 0x15e8]
push edx
call fcn.0054bed0
add esp, 8
jmp 0x46d563
jmp 0x46d5ce
jmp 0x46d530
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046d360
add esp, 8
push 2
push 0x5a8c2c
lea edx, [ebp - 0x15e8]
push edx
call fcn.0054d620
add esp, 0xc
test eax, eax
jne 0x46d614
push 0x5a8c30
lea eax, [ebp - 0x418]
push eax
call fcn.0054bed0
add esp, 8
jmp 0x46d7bb
push 2
push 0x5a8c3c
lea ecx, [ebp - 0x15e8]
push ecx
call fcn.0054d620
add esp, 0xc
test eax, eax
jne 0x46d647
push 0x5a8c40
lea edx, [ebp - 0x418]
push edx
call fcn.0054bed0
add esp, 8
jmp 0x46d7bb
push 2
push 0x5a8c48
lea eax, [ebp - 0x15e8]
push eax
call fcn.0054d620
add esp, 0xc
test eax, eax
jne 0x46d67a
push 0x5a8c4c
lea ecx, [ebp - 0x418]
push ecx
call fcn.0054bed0
add esp, 8
jmp 0x46d7bb
push 2
push 0x5a8c54
lea edx, [ebp - 0x15e8]
push edx
call fcn.0054d620
add esp, 0xc
test eax, eax
jne 0x46d6ad
push 0x5a8c58
lea eax, [ebp - 0x418]
push eax
call fcn.0054bed0
add esp, 8
jmp 0x46d7bb
push 2
push 0x5a8c60
lea ecx, [ebp - 0x15e8]
push ecx
call fcn.0054d620
add esp, 0xc
test eax, eax
jne 0x46d6e0
push 0x5a8c64
lea edx, [ebp - 0x418]
push edx
call fcn.0054bed0
add esp, 8
jmp 0x46d7bb
push 2
push 0x5a8c68
lea eax, [ebp - 0x15e8]
push eax
call fcn.0054d620
add esp, 0xc
test eax, eax
jne 0x46d713
push 0x5a8c6c
lea ecx, [ebp - 0x418]
push ecx
call fcn.0054bed0
add esp, 8
jmp 0x46d7bb
push 2
push 0x5a8c78
lea edx, [ebp - 0x15e8]
push edx
call fcn.0054d620
add esp, 0xc
test eax, eax
je 0x46d747
push 2
push 0x5a8c7c
lea eax, [ebp - 0x15e8]
push eax
call fcn.0054d620
add esp, 0xc
test eax, eax
jne 0x46d75d
push 0x5a8c80
lea ecx, [ebp - 0x418]
push ecx
call fcn.0054bed0
add esp, 8
jmp 0x46d7bb
push 2
push 0x5a8c8c
lea edx, [ebp - 0x15e8]
push edx
call fcn.0054d620
add esp, 0xc
test eax, eax
jne 0x46d78d
push 0x5a8c90
lea eax, [ebp - 0x418]
push eax
call fcn.0054bed0
add esp, 8
jmp 0x46d7bb
push 2
push 0x5a8c9c
lea ecx, [ebp - 0x15e8]
push ecx
call fcn.0054d620
add esp, 0xc
test eax, eax
jne 0x46d7bb
push 0x5a8ca0
lea edx, [ebp - 0x418]
push edx
call fcn.0054bed0
add esp, 8
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46d7f4
mov dword [ebp - 0x15ec], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15a0]
call fcn.00560ea1
mov eax, dword [ebp - 0x15ec]
jmp 0x46dae7
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [ebp - 0x598]
push edx
push 0x5a8cac
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x15a8], eax
cmp dword [ebp - 0x15a8], 0xffffffff
jne 0x46d849
mov dword [ebp - 0x15f0], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15a0]
call fcn.00560ea1
mov eax, dword [ebp - 0x15f0]
jmp 0x46dae7
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x15a4], 0
cmp dword [ebp - 0x14], 0
jne 0x46d9ad
lea eax, [ebp - 0x56c]
push eax
lea ecx, [ebp - 0x15a0]
call fcn.0056102a
lea ecx, [ebp - 0x15a0]
call fcn.005613a3
push 0x5a8cb0
push 4
lea ecx, [ebp - 0x15f8]
push ecx
lea ecx, [ebp - 0x15a0]
call fcn.0055e5db
mov dword [ebp - 0x1610], eax
mov edx, dword [ebp - 0x1610]
mov dword [ebp - 0x1614], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1614]
push eax
call fcn.004089c0
mov byte [ebp - 0x15f4], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15f8]
call fcn.00560ea1
mov ecx, dword [ebp - 0x15f4]
and ecx, 0xff
test ecx, ecx
je 0x46d97e
lea edx, [ebp - 0x15e8]
push edx
call fcn.0054c3e0
add esp, 4
push eax
lea eax, [ebp - 0x15e8]
push eax
call fcn.0054c3e0
add esp, 4
push eax
lea ecx, [ebp - 0x1600]
push ecx
lea ecx, [ebp - 0x15a0]
call fcn.0055e657
mov dword [ebp - 0x1618], eax
mov edx, dword [ebp - 0x1618]
mov dword [ebp - 0x161c], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x161c]
call fcn.00401440
push eax
lea eax, [ebp - 0x15e8]
push eax
call fcn.0054d620
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x15fc], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1600]
call fcn.00560ea1
mov ecx, dword [ebp - 0x15fc]
and ecx, 0xff
test ecx, ecx
je 0x46d97e
mov dword [ebp - 0x15a4], 1
jmp 0x46d9ad
lea edx, [ebp - 0x598]
push edx
mov eax, dword [ebp - 0x15a8]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46d9a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x46d9a8
mov dword [ebp - 0x14], 1
jmp 0x46d85a
mov ecx, dword [ebp - 0x15a8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x15a4], 0
jne 0x46da05
lea edx, [ebp - 0x15e8]
push edx
push 0x5a8cb8
lea eax, [ebp - 0x15a0]
push eax
call fcn.0055ea77
add esp, 0xc
mov dword [ebp - 0x1604], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15a0]
call fcn.00560ea1
mov eax, dword [ebp - 0x1604]
jmp 0x46dae7
push 0x5a8ce4
lea ecx, [ebp - 0x418]
push ecx
call fcn.0054bed0
add esp, 8
lea ecx, [ebp - 0x15a0]
call fcn.00401440
push eax
lea edx, [ebp - 0x418]
push edx
call fcn.0054bed0
add esp, 8
push 0x5a8ce8
lea eax, [ebp - 0x418]
push eax
call fcn.0054d3be
add esp, 8
mov dword [ebp - 0x159c], eax
cmp dword [ebp - 0x159c], 0
jne 0x46da7b
mov dword [ebp - 0x1608], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15a0]
call fcn.00560ea1
mov eax, dword [ebp - 0x1608]
jmp 0x46dae7
push 0x1000
push 0
lea ecx, [ebp - 0x1598]
push ecx
call fcn.0054bfb0
add esp, 0xc
mov edx, dword [ebp - 0x159c]
push edx
push 1
push 0x1000
lea eax, [ebp - 0x1598]
push eax
call fcn.0054d276
add esp, 0x10
mov ecx, dword [ebp - 0x159c]
push ecx
call fcn.0054d1f9
add esp, 4
mov edx, dword [ebp - 0x1578]
and edx, 0xff
mov dword [ebp - 0x160c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15a0]
call fcn.00560ea1
mov eax, dword [ebp - 0x160c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret