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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ede8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4d404c]
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 dword [ebp - 0x78], edx
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov edi, dword [ebp + 0xc]
cdq
push edx
push eax
call fcn.00408480
add esp, 8
mov ecx, esi
call fcn.004073c0
cmp edi, eax
je 0x41c559
call fcn.004073c0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x41c54e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.00407470
push 0x4bd63c
call fcn.004075d0
add esp, 4
mov ecx, edi
mov ebx, eax
call fcn.004073c0
mov esi, eax
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
sub ecx, edx
cmp ebx, ecx
ja 0x41c5c7
cmp dword [esi + 0x14], 8
lea eax, [edx + ebx]
mov dword [ebp - 0x6c], eax
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [ebp - 0x74], esi
jb 0x41c596
mov eax, dword [esi]
mov dword [ebp - 0x74], eax
push ebx
lea eax, [eax + edx*2]
push 0x4bd63c
push eax
call fcn.004077e0
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x70]
add esp, 0xc
mov dword [ebp - 0x70], 0
push eax
mov eax, dword [ebp - 0x74]
lea eax, [eax + ecx*2]
push eax
call fcn.004077d0
add esp, 8
jmp 0x41c5dc
push ebx
push 0x4bd63c
mov byte [ebp - 0x6c], 0
mov ecx, edi
push dword [ebp - 0x6c]
push ebx
call fcn.00407c00
lea eax, [ebp - 0x50]
push eax
call fcn.004075d0
mov ecx, dword [esi + 0x14]
add esp, 4
mov edx, dword [esi + 0x10]
sub ecx, edx
cmp eax, ecx
ja 0x41c634
cmp dword [esi + 0x14], 8
lea ecx, [edx + eax]
mov dword [ebp - 0x70], ecx
mov ebx, esi
mov dword [esi + 0x10], ecx
jb 0x41c607
mov ebx, dword [esi]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebx + edx*2]
push eax
call fcn.004077e0
add esp, 0xc
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x70]
lea eax, [ebx + eax*2]
push eax
call fcn.004077d0
add esp, 8
jmp 0x41c648
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x6c], 0
push ecx
push dword [ebp - 0x6c]
mov ecx, edi
push eax
call fcn.00407c00
push 0x4bd640
call fcn.004075d0
mov ecx, dword [esi + 0x14]
add esp, 4
mov edx, dword [esi + 0x10]
sub ecx, edx
cmp eax, ecx
ja 0x41c69a
cmp dword [esi + 0x14], 8
lea ebx, [edx + eax]
mov dword [esi + 0x10], ebx
jb 0x41c66f
mov esi, dword [esi]
push eax
lea eax, [esi + edx*2]
push 0x4bd640
push eax
call fcn.004077e0
add esp, 0xc
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.004077d0
add esp, 8
jmp 0x41c6af
push eax
push 0x4bd640
mov byte [ebp - 0x6c], 0
mov ecx, edi
push dword [ebp - 0x6c]
push eax
call fcn.00407c00
mov ecx, dword [ebp - 0x78]
call fcn.004073c0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x41c6c1
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.00407700
mov ecx, edi
call fcn.004070c0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c71f
lea ecx, [ebp - 0x68]
call fcn.00407260
mov dword [ebp - 4], 0
lea edx, [ebp - 0x68]
mov ecx, edi
call fcn.0041c740
test al, al
je 0x41c70d
lea ecx, [ebp - 0x68]
call fcn.004070c0
push eax
call ebx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00407180
cmp esi, 0xffffffff
sete al
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.00477737
mov esp, ebp
pop ebp
ret