Function at 0x4197c6
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
mov eax, 0x472f2a
call fcn.00465b54
sub esp, 0x380
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
cmp byte [esi + 0x71], 0
push 1
pop ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
je 0x419b49
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0041c2fc
add esp, 0xc
lea ecx, [ebp - 0x38c]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], edi
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 4
call fcn.00407f77
cmp edi, 0xffffffff
je 0x419e4b
mov ebx, 0x47b4b8
mov edi, 0x47b4b0
cmp dword [ebp - 0x1c], 0
je 0x419b3b
test byte [ebp - 0x38c], 0x10
jne 0x419b23
lea ecx, [ebp - 0x100]
call fcn.00419e7a
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0xf6]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
lea eax, [ebp - 0x17]
push 0
push eax
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x1d4]
mov dword [ebp - 0x1d4], ebx
mov dword [ebp - 0x1b4], edi
call fcn.004059b3
lea eax, [ebp - 0x15c]
lea ecx, [esi + 0x44]
push eax
mov byte [ebp - 4], 6
call fcn.004071be
mov ecx, dword [0x47b518]
mov eax, dword [eax + 0xc]
lea edx, [ebp - 0x16]
push 0
push edx
push ecx
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 7
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x204], edi
call fcn.00405b83
lea eax, [ebp - 0x1d4]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00407579
add esp, 0xc
push dword [0x47b518]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 9
neg ecx
sbb ecx, ecx
push 0
and ecx, eax
push ecx
lea ecx, [ebp - 0xf0]
call fcn.00406639
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 8
call fcn.00407f77
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 7
call fcn.00407f77
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 6
call fcn.00407f77
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 5
call fcn.00407f77
mov eax, dword [esi + 0x6c]
mov ecx, eax
and ecx, 0x20000
neg ecx
sbb ecx, ecx
and dword [ebp - 0xc4], 0
not ecx
and ecx, dword [ebp - 0x38c]
test ah, 3
mov dword [ebp - 0xc0], ecx
mov ecx, dword [ebp - 0x378]
mov dword [ebp - 0xbc], ecx
mov ecx, dword [ebp - 0x374]
mov dword [ebp - 0xb8], ecx
mov ecx, dword [ebp - 0x36c]
mov dword [ebp - 0xc8], ecx
mov ecx, dword [ebp - 0x370]
mov dword [ebp - 0xc4], ecx
je 0x419a92
lea ecx, [ebp - 0x1ac]
call fcn.0041c47b
lea eax, [ebp - 0x15]
push 0
push eax
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x1dc], edi
call fcn.004059b3
lea eax, [ebp - 0x1fc]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00407579
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0040650f
push eax
lea ecx, [ebp - 0x1ac]
call fcn.004638f3
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0xb
call fcn.00407f77
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 0xa
call fcn.00407f77
mov eax, dword [ebp - 0x19c]
lea ecx, [ebp - 0x1ac]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x100], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x1ac], 0x47bd94
call fcn.0041c4e3
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc4]
push 0
add dword [eax + 0x28], edx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0x90], edi
adc dword [eax + 0x2c], ecx
lea eax, [esi + 0x84]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00405884
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0xb0]
push eax
add ecx, 0x18
mov byte [ebp - 4], 0xd
call fcn.00412b61
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xc4]
add dword [eax], ecx
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 5
adc dword [eax + 4], edx
call fcn.00407f77
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x10]
lea edx, [ebp - 0x100]
push edx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041a496
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 4
call fcn.00407f77
lea eax, [ebp - 0x38c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x1c], eax
jmp 0x41984e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x419e4b
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xe
call fcn.00419e7a
push dword [0x47b518]
lea eax, [ebp + 0x30]
xor edi, edi
lea ecx, [ebp + 0x34]
neg eax
sbb eax, eax
push edi
and eax, ecx
lea ecx, [ebp - 0x78]
push eax
mov byte [ebp - 4], 0xf
call fcn.00406639
lea ecx, [ebp - 0x164]
call fcn.0041b348
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0041c2fc
add esp, 0xc
push edi
push edi
push 3
push 0x80
push ebx
push SysReAllocString
push eax
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0x11
call fcn.0041b441
cmp eax, edi
lea ecx, [ebp - 0x128]
setne bl
mov byte [ebp - 4], 0x10
call fcn.00407f77
test bl, bl
je 0x419c28
lea ecx, [ebp + 0x30]
call fcn.0040650f
push 0x4922dc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x419c5d
mov dword [ebp - 0x164], 0x47bd60
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0x12
call fcn.0041b6aa
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xf
call fcn.00407f77
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xe
call fcn.00407f77
jmp 0x419e4b
push edi
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0x13
call fcn.0041b718
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edi
jmp 0x419c56
mov dword [ebp - 4], 0x10
push edi
lea eax, [ebp - 0x44]
push edi
push eax
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0x15
call fcn.0041c011
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
jmp 0x419cb1
lea eax, [ebp - 0x7e]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
test byte [esi + 0x6d], 3
je 0x419d4d
lea ecx, [ebp - 0x1ac]
call fcn.0041c47b
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0041c2fc
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0x18
call fcn.0040650f
push eax
lea ecx, [ebp - 0x1ac]
call fcn.004638f3
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0x17
call fcn.00407f77
mov eax, dword [ebp - 0x19c]
lea ecx, [ebp - 0x1ac]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x1ac], 0x47bd94
call fcn.0041c4e3
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
push edi
add dword [eax + 0x28], ecx
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x47b4b8
mov dword [ebp - 0x90], 0x47b4b0
adc dword [eax + 0x2c], edx
lea eax, [esi + 0x84]
push eax
call fcn.00405884
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0xb0]
push eax
add ecx, 0x18
mov byte [ebp - 4], 0x19
call fcn.00412b61
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
add dword [eax], ecx
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x10
adc dword [eax + 4], edx
call fcn.00407f77
test byte [esi + 0x6e], 2
jne 0x419df6
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0041c2fc
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0x1a
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0x10
call fcn.00407f77
jmp 0x419df9
mov dword [ebp - 0x48], edi
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x10]
lea edx, [ebp - 0x88]
push edx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041a496
mov dword [ebp - 0x164], 0x47bd60
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0x1b
call fcn.0041b6aa
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xf
call fcn.00407f77
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xe
call fcn.00407f77
mov dword [ebp - 4], 1
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407f77
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.00407f77
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x50