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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57fc34
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5e0ce8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x198], edx
mov esi, ecx
mov dword [ebp - 0x19c], esi
mov dword [ebp - 0x1f4], esi
xorps xmm0, xmm0
mov dword [ebp - 0x17c], 1
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov eax, 1
cmp dword [edx + 0x14], 0x10
mov edi, edx
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x17c], eax
jb 0x4a7c8f
mov edi, dword [edx]
test edi, edi
je 0x4a84ee
cmp byte [edi], 0
je 0x4a84ee
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4a84ee
test al, 0x10
jne 0x4a7cc5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x14
jmp 0x4a84fa
push 0x350
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x174], eax
test eax, eax
jne 0x4a7cee
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
jmp 0x4a84fa
push edi
lea eax, [ebp - 0x118]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x180], eax
call eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x119], 0x5c
lea eax, [ebp - 0x118]
je 0x4a7d27
push str..
jmp 0x4a7d2c
push 0x5b9bc0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0x174]
add eax, 0x104
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [ebp - 0x174]
mov dword [ecx + 0x244], eax
cmp eax, 0xffffffff
jne 0x4a7d6c
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4a84fa
push edi
mov edi, dword [ebp - 0x174]
push edi
call dword [ebp - 0x180]
lea eax, [edi + 0x130]
push eax
lea eax, [edi + 0x248]
push eax
call dword [ebp - 0x180]
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
add edi, 0x244
mov dword [ebp - 0x1b8], edi
mov dword [ebp - 0x18c], eax
cmp dword [edi], 0xffffffff
jne 0x4a7dc7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 9
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x174], eax
jmp 0x4a84cf
mov eax, dword [ebp - 0x174]
lea ecx, [eax + 0x130]
add eax, 0x248
push ecx
push eax
mov dword [ebp - 0x1bc], ecx
mov dword [ebp - 0x184], eax
call dword [ebp - 0x180]
mov eax, dword [ebp - 0x174]
add eax, 0x104
push eax
push dword [edi]
mov dword [ebp - 0x1c0], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x19c], eax
call eax
test eax, eax
jne 0x4a7e1f
push dword [edi]
call dword [ebp - 0x18c]
mov dword [edi], 0xffffffff
mov ecx, dword [ebp - 0x184]
test ecx, ecx
je 0x4a84cf
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x174], eax
mov eax, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
mov dword [ebp - 0x190], eax
nop dword [eax]
nop dword [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x120], 0
movups xmmword [ebp - 0x130], xmm0
mov dword [ebp - 0x11c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a7e71
sub ecx, edx
push ecx
push dword [ebp - 0x184]
lea ecx, [ebp - 0x130]
call fcn.00401930
mov dword [ebp - 4], 1
lea eax, [ebp - 0x130]
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0x10
mov edi, dword [ebp - 0x130]
mov edx, dword [ebp - 0x120]
setae byte [ebp - 0x16d]
cmovae eax, edi
cmp edx, 1
jne 0x4a7ec2
cmp byte [eax], 0x2e
je 0x4a7ee1
cmp byte [ebp - 0x16d], 0
lea eax, [ebp - 0x130]
cmovne eax, edi
cmp edx, 2
jne 0x4a7f14
mov edx, 0x2e2e
cmp word [eax], dx
jne 0x4a7f14
mov byte [ebp - 4], 0
cmp ecx, 0x10
jb 0x4a8475
inc ecx
mov eax, edi
cmp ecx, 0x1000
jb 0x4a7f0d
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a84bd
push ecx
push edi
jmp 0x4a846d
mov ecx, dword [ebp - 0x198]
mov eax, 0x7fffffff
sub eax, dword [ecx + 0x10]
cmp eax, dword [0x5e2878]
jb 0x4a8517
cmp dword [ecx + 0x14], 0x10
mov edx, ecx
jb 0x4a7f38
mov edx, dword [ecx]
push dword [0x5e2878]
cmp dword [0x5e287c], 0x10
mov eax, 0x5e2868
cmovae eax, dword [0x5e2868]
push eax
push dword [ecx + 0x10]
push edx
push ecx
push dword [ebp - 0x188]
lea ecx, [ebp - 0x224]
call fcn.00405fe0
mov eax, dword [ebp - 0x178]
or eax, 2
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x17c], eax
cmp byte [ebp - 0x16d], 0
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
push dword [ebp - 0x120]
cmovne eax, edi
push eax
call fcn.00404960
mov dword [ebp - 0x1a4], 0
lea ecx, [ebp - 0x16c]
mov dword [ebp - 0x1a0], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1b4], xmm0
push ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1b4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1a4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, dword [ebp - 0x178]
or eax, 4
cmp dword [ebp - 0x1a0], 0x10
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x1b4]
cmovae eax, dword [ebp - 0x1b4]
push eax
call dword [ebp - 0x190]
add esp, 8
cmp eax, 0xffffffff
jne 0x4a8031
mov byte [ebp - 0x188], 0
jmp 0x4a8045
mov eax, dword [ebp - 0x166]
shr eax, 0xe
and eax, 0xffffff01
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x1a0]
cmp ecx, 0x10
jb 0x4a807f
mov edx, dword [ebp - 0x1b4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a8075
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a84bd
push ecx
push edx
call fcn.00575660
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 0xf
mov byte [ebp - 0x1b4], 0
cmp ecx, 0x10
jb 0x4a80d8
mov edx, dword [ebp - 0x224]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a80ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a84bd
push ecx
push edx
call fcn.00575660
add esp, 8
mov edx, dword [ebp - 0x198]
mov eax, 0x7fffffff
mov ecx, dword [edx + 0x10]
sub eax, ecx
cmp byte [ebp - 0x188], 0
je 0x4a82f9
xorps xmm0, xmm0
mov dword [ebp - 0x134], 0
movq qword [ebp - 0x13c], xmm0
cmp eax, dword [0x5e2878]
jb 0x4a8517
cmp dword [edx + 0x14], 0x10
mov edi, edx
jb 0x4a8120
mov edi, dword [edx]
push dword [0x5e2878]
cmp dword [0x5e287c], 0x10
mov eax, 0x5e2868
cmovae eax, dword [0x5e2868]
push eax
push ecx
push edi
push ecx
push dword [ebp - 0x190]
lea ecx, [ebp - 0x1f0]
call fcn.00405fe0
mov edi, dword [ebp - 0x178]
or edi, 0x20
mov dword [ebp - 0x17c], edi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x130]
cmp dword [ebp - 0x11c], 0x10
lea ecx, [ebp - 0x1f0]
push dword [ebp - 0x120]
cmovae eax, dword [ebp - 0x130]
push eax
call fcn.00404960
mov dword [ebp - 0x1c8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1d8], xmm0
mov dword [ebp - 0x1c4], 0
or edi, 0x40
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1d8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x17c], edi
lea edx, [ebp - 0x1d8]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x13c]
call fcn.004a7c00
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1c4]
cmp ecx, 0x10
jb 0x4a822f
mov edx, dword [ebp - 0x1d8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a8225
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a84bd
push ecx
push edx
call fcn.00575660
add esp, 8
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0xf
mov byte [ebp - 0x1d8], 0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1dc]
cmp ecx, 0x10
jb 0x4a8288
mov edx, dword [ebp - 0x1f0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a827e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a84bd
push ecx
push edx
call fcn.00575660
add esp, 8
mov eax, dword [ebp - 0x138]
mov edi, dword [ebp - 0x13c]
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1dc], 0xf
mov byte [ebp - 0x1f0], 0
mov dword [ebp - 0x194], eax
cmp edi, eax
je 0x4a82e9
nop dword [eax]
mov eax, dword [esi + 4]
push edi
cmp eax, dword [esi + 8]
je 0x4a82d6
mov ecx, eax
call fcn.004046f0
add dword [esi + 4], 0x18
jmp 0x4a82de
push eax
mov ecx, esi
call fcn.00409790
add edi, 0x18
cmp edi, dword [ebp - 0x194]
jne 0x4a82c0
lea ecx, [ebp - 0x13c]
call fcn.004094d0
jmp 0x4a843b
cmp eax, dword [0x5e2878]
jb 0x4a8517
cmp dword [edx + 0x14], 0x10
mov edi, edx
jb 0x4a830f
mov edi, dword [edx]
push dword [0x5e2878]
cmp dword [0x5e287c], 0x10
mov eax, 0x5e2868
cmovae eax, dword [0x5e2868]
push eax
push ecx
push edi
push ecx
push dword [ebp - 0x194]
lea ecx, [ebp - 0x154]
call fcn.00405fe0
mov edi, dword [ebp - 0x178]
or edi, 8
mov dword [ebp - 0x17c], edi
mov byte [ebp - 4], 8
lea eax, [ebp - 0x130]
cmp dword [ebp - 0x11c], 0x10
lea ecx, [ebp - 0x154]
push dword [ebp - 0x120]
cmovae eax, dword [ebp - 0x130]
push eax
call fcn.00404960
or edi, 0x10
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x20c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1fc], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x17c], edi
lea eax, [ebp - 0x20c]
mov byte [ebp - 4], 9
push eax
mov ecx, esi
call fcn.00409590
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1f8]
cmp ecx, 0x10
jb 0x4a83fd
mov edx, dword [ebp - 0x20c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a83f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a84bd
push ecx
push edx
call fcn.00575660
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x140]
cmp ecx, 0x10
jb 0x4a843b
mov edx, dword [ebp - 0x154]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a8431
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a84bd
push ecx
push edx
call fcn.00575660
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0x10
jb 0x4a8475
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a846b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a84bd
push ecx
push edx
call fcn.00575660
add esp, 8
mov edi, dword [ebp - 0x1b8]
cmp dword [edi], 0xffffffff
je 0x4a84c3
push dword [ebp - 0x1bc]
push dword [ebp - 0x184]
call dword [ebp - 0x180]
push dword [ebp - 0x1c0]
push dword [edi]
call dword [ebp - 0x19c]
test eax, eax
jne 0x4a84b2
push dword [edi]
call dword [ebp - 0x18c]
mov dword [edi], 0xffffffff
mov ecx, dword [ebp - 0x184]
jmp 0x4a7e50
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 9
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x4a84dd
push eax
call dword [ebp - 0x18c]
push dword [ebp - 0x174]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4a84fa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057516e
mov esp, ebp
pop ebp
ret
call fcn.004016d0
int3