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

Disassembly:
push 0x184
mov eax, 0x4187d4
call fcn.0040bad6
mov eax, dword [ebp + 8]
and dword [ebp - 0xa4], 0
mov edi, ecx
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0xc]
push edi
lea esi, [ebp - 0x68]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xa8], edi
call fcn.00401776
push 0x41b990
push dword [ebp - 0xb8]
xor ebx, ebx
lea eax, [ebp - 0x4c]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004062af
mov ecx, esi
push ecx
push eax
lea eax, [ebp - 0xdc]
push eax
mov byte [ebp - 4], 2
call fcn.004062fd
add esp, 0x18
cmp dword [eax + 0x18], 8
jb 0x404ee9
mov eax, dword [eax + 4]
jmp 0x404eec
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
cmp eax, 0xffffffff
push ebx
lea esi, [ebp - 0xdc]
sete byte [ebp - 0xa9]
call fcn.004019da
push 0
push ebx
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.004019da
cmp byte [ebp - 0xa9], 0
je 0x404f3e
mov esi, dword [ebp - 0xb4]
lea eax, [ebp - 0x68]
push eax
call fcn.00401776
mov dword [ebp - 0xa4], ebx
push 0
jmp 0x40525a
lea eax, [ebp - 0xb0]
push eax
mov eax, edi
mov dword [ebp - 0xb0], 0x2e
call fcn.00405d1b
mov dword [ebp - 0xb0], eax
cmp eax, 0xffffffff
jne 0x404f65
mov eax, edi
jmp 0x404fc2
lea eax, [ebp - 0x110]
mov ecx, edi
call fcn.00405955
mov edi, dword [ebp - 0xb0]
lea ebx, [ebp - 0x108]
call fcn.00405a21
mov ecx, dword [ebp - 0xa8]
mov esi, eax
lea eax, [ebp - 0x120]
call fcn.00405955
push dword [esi + 4]
lea ebx, [ebp - 0x158]
push dword [esi]
push dword [eax + 4]
push dword [eax]
call fcn.004058be
mov edi, dword [ebp - 0xa8]
xor ebx, ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0xa4], 2
inc ebx
push eax
lea esi, [ebp - 0xa0]
call fcn.00401776
mov dword [ebp - 4], 5
test byte [ebp - 0xa4], 2
je 0x404ff3
and dword [ebp - 0xa4], 0xfffffffd
push 0
push ebx
lea esi, [ebp - 0x158]
call fcn.004019da
cmp dword [ebp - 0xb0], 0xffffffff
jne 0x405029
and dword [ebp - 0xc8], 0
xor eax, eax
mov dword [ebp - 0xc4], 7
mov word [ebp - 0xd8], ax
mov byte [ebp - 4], 6
or dword [ebp - 0xa4], 4
lea eax, [ebp - 0xdc]
jmp 0x405099
cmp dword [edi + 0x18], 8
jb 0x405034
mov eax, dword [edi + 4]
jmp 0x405037
lea eax, [edi + 4]
mov ecx, dword [edi + 0x14]
mov esi, edi
lea ebx, [eax + ecx*2]
lea edi, [ebp - 0xc0]
call fcn.00405d94
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x118]
call fcn.00405955
mov edi, dword [ebp - 0xb0]
lea ebx, [ebp - 0x100]
call fcn.00405a21
push dword [ebp - 0xbc]
lea ebx, [ebp - 0x13c]
push dword [ebp - 0xc0]
push dword [eax + 4]
push dword [eax]
call fcn.004058be
mov dword [ebp - 4], 7
or dword [ebp - 0xa4], 8
xor ebx, ebx
inc ebx
push eax
lea esi, [ebp - 0x84]
call fcn.00401776
mov dword [ebp - 4], 9
test byte [ebp - 0xa4], 8
je 0x4050ca
and dword [ebp - 0xa4], 0xfffffff7
push 0
push ebx
lea esi, [ebp - 0x13c]
call fcn.004019da
mov byte [ebp - 4], 0xa
test byte [ebp - 0xa4], 4
je 0x4050ec
and dword [ebp - 0xa4], 0xfffffffb
push 0
push ebx
lea esi, [ebp - 0xdc]
call fcn.004019da
mov dword [ebp - 0xa8], ebx
push 7
xor eax, eax
pop ecx
mov word [ebp - 0x30], ax
lea edi, [ebp - 0x2e]
rep stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
push 0x10
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xa8]
call fcn.0040ad32
push 0x41b994
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.004062af
lea ecx, [ebp - 0x30]
push ecx
push eax
lea eax, [ebp - 0x174]
push eax
mov byte [ebp - 4], 0xb
call fcn.004062af
lea ecx, [ebp - 0x84]
push ecx
push eax
lea eax, [ebp - 0x190]
push eax
mov byte [ebp - 4], 0xc
call fcn.004062fd
add esp, 0x34
push 0xffffffffffffffff
xor edi, edi
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xd
call fcn.004017d3
push edi
push ebx
lea esi, [ebp - 0x190]
mov byte [ebp - 4], 0xc
call fcn.004019da
push edi
push ebx
lea esi, [ebp - 0x174]
mov byte [ebp - 4], 0xb
call fcn.004019da
push edi
push ebx
lea esi, [ebp - 0xf8]
mov byte [ebp - 4], 0xa
call fcn.004019da
push 0x41b990
push dword [ebp - 0xb8]
lea eax, [ebp - 0xf8]
push eax
call fcn.004062af
lea ecx, [ebp - 0x68]
push ecx
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 0xe
call fcn.004062fd
add esp, 0x18
push edi
push ebx
lea esi, [ebp - 0xf8]
mov byte [ebp - 4], 0x10
call fcn.004019da
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4051ea
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov byte [ebp - 4], 0xa
lea esi, [ebp - 0x4c]
push ebx
cmp eax, 0xffffffff
je 0x40521e
call fcn.004019da
inc dword [ebp - 0xa8]
cmp dword [ebp - 0xa8], 0x3e8
jl 0x4050f2
xor edi, edi
jmp 0x405223
call fcn.004019da
mov esi, dword [ebp - 0xb4]
lea eax, [ebp - 0x68]
push eax
call fcn.00401776
or dword [ebp - 0xa4], ebx
push edi
push ebx
lea esi, [ebp - 0x84]
mov byte [ebp - 4], 5
call fcn.004019da
push edi
push ebx
lea esi, [ebp - 0xa0]
mov byte [ebp - 4], bl
call fcn.004019da
push edi
push ebx
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.004019da
mov eax, dword [ebp - 0xb4]
call fcn.0040bb20
ret