Function at 0x401e70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412978
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x418084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov ecx, 0x41543c
lea edx, [ebp - 0x48]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], ebx
call fcn.00401480
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x38], ebx
je 0x402025
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x401ecc
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402025
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 1
cmp dword [edi + 0x10], 0
jbe 0x401f7f
mov byte [ebp - 0x68], 0x3b
lea eax, [ebp - 0x68]
push eax
push edi
mov ecx, ebx
call fcn.00403f20
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
jne 0x401f16
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x1c], 0
jbe 0x401f2b
push 1
mov eax, 0x415440
lea ecx, [ebp - 0x2c]
call fcn.004042c0
push 0
lea edx, [ebp - 0x48]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.004041d0
mov eax, dword [ebp - 0x6c]
sub eax, ebx
push eax
push edi
lea esi, [ebp - 0x64]
call fcn.00403d40
push 0
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004041d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 0x10
jb 0x401f73
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0040554a
add esp, 4
mov ebx, dword [ebp - 0x6c]
inc ebx
cmp ebx, dword [edi + 0x10]
jb 0x401efc
mov esi, dword [ebp - 0x70]
lea edx, [ebp - 0x2c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp esi, edx
je 0x401ff5
mov edi, 0x10
cmp dword [esi + 0x14], edi
jb 0x401fac
mov eax, dword [esi]
push eax
call fcn.0040554a
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
cmp dword [ebp - 0x18], edi
jae 0x401fdf
mov ecx, dword [ebp - 0x1c]
inc ecx
push ecx
lea edx, [ebp - 0x2c]
push edx
push esi
call fcn.00405560
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
jmp 0x402007
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov dword [esi], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
jmp 0x402007
cmp dword [ebp - 0x18], 0x10
jb 0x402007
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040554a
add esp, 4
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x402050
mov edx, dword [ebp - 0x48]
push edx
jmp 0x402048
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
xor edi, edi
mov eax, 0x4152cc
mov byte [esi], 0
call fcn.00404ec0
cmp dword [ebp - 0x34], 0x10
jb 0x402050
mov eax, dword [ebp - 0x48]
push eax
call fcn.0040554a
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040553b
mov esp, ebp
pop ebp
ret