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

Disassembly:
push 0xffffffffffffffff
push 0x412037
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x41a050]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41a050]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
push 4
mov dword [esp + 0x1c], esi
mov edi, edx
mov dword [esp + 0x38], ebp
call fcn.0040ad88
add esp, 4
cmp eax, ebp
je 0x401a4f
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
jmp 0x401a51
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2e8], 1
cmp dword [edi + 0x18], 8
jb 0x401a77
mov eax, dword [edi + 4]
jmp 0x401a7a
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a8a
test al, 0x10
jne 0x401a99
push esi
lea ecx, [esp + 0x20]
call fcn.00408a20
jmp 0x401c70
xor edx, edx
mov ebx, 7
push 1
mov eax, 0x415b70
lea esi, [esp + 0x3c]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebp
mov word [esp + 0x40], dx
call fcn.00409220
mov eax, esi
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
mov byte [esp + 0x2f0], 2
call fcn.00401850
add esp, 8
mov edi, 8
mov byte [esp + 0x2e8], 4
cmp dword [esp + 0x50], edi
jb 0x401af7
mov edx, dword [esp + 0x3c]
push edx
call fcn.0040a81b
add esp, 4
push 0x24c
lea ecx, [esp + 0x94]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], ax
mov dword [esp + 0x98], ebp
call fcn.0040d0d0
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp dword [esp + 0x6c], edi
jae 0x401b31
lea eax, [esp + 0x58]
lea edx, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x34], eax
cmp eax, 0xffffffff
jne 0x401b60
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x20]
call fcn.00408a20
cmp dword [esp + 0x6c], edi
jmp 0x401c52
xor edx, edx
lea eax, [esp + 0xb8]
mov word [esp + 0x74], dx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401b80
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xbc]
lea esi, [esp + 0x74]
call fcn.00409220
mov byte [esp + 0x2e8], 5
mov eax, dword [esp + 0x84]
push 0x415b74
mov edi, 1
mov ecx, esi
call fcn.00409ce0
test eax, eax
je 0x401cd9
mov eax, dword [esp + 0x84]
push 0x415b78
mov edi, 2
mov ecx, esi
call fcn.00409ce0
test eax, eax
je 0x401cd9
mov eax, esi
push eax
lea ebx, [esp + 0x20]
call fcn.00408b80
mov byte [esp + 0x2e8], 4
cmp dword [esp + 0x88], 8
jb 0x401c13
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0040a81b
add esp, 4
mov ebx, 7
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x8c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x401b60
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x20]
call fcn.00408a20
cmp dword [esp + 0x6c], 8
jb 0x401c61
mov eax, dword [esp + 0x58]
push eax
call fcn.0040a81b
add esp, 4
xor ecx, ecx
mov word [esp + 0x58], cx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebx
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x401c96
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
push edx
call fcn.00409f90
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
call fcn.0040a81b
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call fcn.0040a81b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.0040a354
add esp, 0x2d8
ret
mov byte [esp + 0x2e8], 4
cmp dword [esp + 0x88], 8
jb 0x401c18
mov edx, dword [esp + 0x74]
push edx
call fcn.0040a81b
add esp, 4
jmp 0x401c18