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

Disassembly:
push 0x3e0
mov eax, 0x6946e2
call fcn.0056e23b
mov esi, ecx
and dword [ebp - 0x3c0], 0
lea ecx, [ebp - 0x3ec]
mov edi, 0x100
push edi
push str._I.
call fcn.00442d94
and dword [ebp - 4], 0
lea ecx, [ebp - 0x3d8]
push edi
push 0x6cf0c0
call fcn.00442d94
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.004d2654
mov byte [ebp - 4], 2
or dword [ebp - 0x3b8], 0xffffffff
push 2
pop ebx
mov dword [ebp - 0x3bc], ebx
lea ecx, [ebp - 0x48]
call fcn.004173bc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004173bc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
call fcn.004173bc
mov byte [ebp - 4], 5
lea edi, [ebx + 0x41]
push edi
lea ecx, [ebp - 0x164]
call fcn.004d2843
test eax, eax
jne 0x4aa1ef
lea ecx, [ebp - 0x164]
call fcn.004d281a
cmp eax, 5
movzx eax, di
push eax
lea eax, [ebp - 0x48]
jne 0x4a9d63
push 0x6cf0cc
push eax
call fcn.0041ccda
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
push 0
call fcn.004552fa
add esp, 0x18
jmp 0x4a9d71
push 0x6cf108
push eax
call fcn.0041ccda
add esp, 0xc
lea ecx, [ebp - 0x164]
call fcn.004d2741
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push 0x6cf12c
push eax
call fcn.0041ccda
add esp, 0xc
lea ecx, [ebp - 0x3b4]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x3b8], eax
cmp eax, 0xffffffff
je 0x4aa1ef
lea ebx, [esi + 0x818]
mov ecx, ebx
call fcn.004c2c9d
mov ecx, ebx
call fcn.00451480
test eax, eax
jne 0x4aa277
lea eax, [ebp - 0x388]
push 0x6cf138
push eax
call fcn.0064806f
pop ecx
pop ecx
test eax, eax
je 0x4aa1ce
lea eax, [ebp - 0x388]
push 0x6cf13c
push eax
call fcn.0064806f
pop ecx
pop ecx
test eax, eax
je 0x4aa1ce
lea eax, [ebp - 0x388]
push eax
push 0x6cf144
call fcn.0064806f
pop ecx
pop ecx
test eax, eax
je 0x4aa1ce
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x388]
push ecx
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push 0x6cf15c
push eax
call fcn.0041ccda
add esp, 0x10
test byte [ebp - 0x3b4], 0x10
je 0x4a9ee2
lea ebx, [esi + 0x808]
inc dword [ebx]
inc dword [esi + 0x810]
push 0x10
call fcn.0056def4
mov edi, eax
pop ecx
mov dword [ebp - 0x3c4], edi
mov byte [ebp - 4], 6
test edi, edi
je 0x4a9ea4
lea eax, [esi + 0x7e8]
mov dword [edi + 4], ebx
mov dword [edi], eax
lea ebx, [esi + 0x818]
lea eax, [esi + 0x810]
mov dword [edi + 0xc], ebx
mov dword [edi + 8], eax
jmp 0x4a9eac
xor edi, edi
lea ebx, [esi + 0x818]
mov byte [ebp - 4], 5
test edi, edi
je 0x4aa1ce
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004a84a1
push 0x10
push edi
test eax, eax
je 0x4aa270
call fcn.0056df27
pop ecx
pop ecx
jmp 0x4aa1ce
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x60], ax
cmp word [ebp - 0x388], ax
je 0x4a9f10
lea eax, [ebp - 0x388]
push eax
call fcn.00647fd1
pop ecx
push eax
lea eax, [ebp - 0x388]
push eax
lea ecx, [ebp - 0x60]
call fcn.004044d0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x3ec]
push ebx
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00442616
add esp, 0xc
mov bl, al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x60]
push 0
push 1
call fcn.00401d60
test bl, bl
je 0x4aa037
lea eax, [ebp - 0x388]
push eax
lea ecx, [ebp - 0x94]
call fcn.0041d41a
push 8
pop ebx
mov byte [ebp - 4], bl
mov edi, 0x6cf168
push edi
call fcn.00647fd1
pop ecx
push eax
push edi
push 1
push 1
lea ecx, [ebp - 0x90]
call fcn.00450e23
cmp dword [ebp - 0x7c], ebx
lea ecx, [ebp - 0x90]
lea eax, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x90]
cmp dword [ebp - 0x30], ebx
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push 0x6cf16c
push eax
call fcn.0041ccda
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4aa023
cmp dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x388]
push ecx
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push 0x6cf178
push eax
call fcn.0041ccda
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00429506
add esp, 0x14
test eax, eax
jne 0x4aa023
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005655b9
add dword [esi + 0x7e8], eax
pop ecx
adc dword [esi + 0x7ec], edx
inc dword [esi + 0x808]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
call fcn.0041786a
jmp 0x4aa1c8
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], ebx
mov word [ebp - 0x78], ax
cmp word [ebp - 0x388], ax
je 0x4aa065
lea eax, [ebp - 0x388]
push eax
call fcn.00647fd1
pop ecx
push eax
lea eax, [ebp - 0x388]
push eax
lea ecx, [ebp - 0x78]
call fcn.004044d0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x3d8]
push ebx
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00442616
add esp, 0xc
mov bl, al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x78]
push 0
push 1
call fcn.00401d60
test bl, bl
je 0x4aa18e
lea eax, [ebp - 0x388]
push eax
lea ecx, [ebp - 0xb0]
call fcn.0041d41a
mov byte [ebp - 4], 0xa
mov ebx, 0x6cf184
push ebx
call fcn.00647fd1
pop ecx
push eax
push ebx
push 1
push 1
lea ecx, [ebp - 0xac]
call fcn.00450e23
cmp dword [ebp - 0x98], 8
lea ecx, [ebp - 0xac]
lea eax, [ebp - 0x44]
cmovae ecx, dword [ebp - 0xac]
cmp dword [ebp - 0x30], 8
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push 0x6cf188
push eax
call fcn.0041ccda
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4aa17f
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x388]
push ecx
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push 0x6cf194
push eax
call fcn.0041ccda
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00429506
add esp, 0x14
test eax, eax
jne 0x4aa17f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005655b9
add dword [esi + 0x7e8], eax
pop ecx
adc dword [esi + 0x7ec], edx
inc dword [esi + 0x808]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb0]
jmp 0x4aa02d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00429506
pop ecx
test eax, eax
jne 0x4aa1c8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005655b9
add dword [esi + 0x7e8], eax
pop ecx
adc dword [esi + 0x7ec], edx
inc dword [esi + 0x808]
lea ebx, [esi + 0x818]
lea eax, [ebp - 0x3b4]
push eax
push dword [ebp - 0x3b8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4a9dc7
mov ebx, dword [ebp - 0x3bc]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
call fcn.0041786a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041786a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.0041786a
inc ebx
mov dword [ebp - 0x3bc], ebx
cmp ebx, 0x19
jle 0x4a9ce7
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x3b8]
cmp eax, 0xffffffff
je 0x4aa23b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.004d26ba
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3d8]
call fcn.00443c16
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3ec]
call fcn.00443c16
mov eax, ebx
call fcn.0056e1e5
ret
call fcn.0056df27
pop ecx
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
call fcn.0041786a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041786a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.0041786a
mov ebx, dword [ebp - 0x3c0]
jmp 0x4aa229