Function at 0x41f6db
Capabilities:
Check if file exists
Check os version
Get file attributes

Disassembly:
mov eax, 0x4760d1
call fcn.00467ed8
sub esp, 0x254
and byte [ebp - 0x260], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x25f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x15c]
xor esi, esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x15c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41f7d4
cmp dword [ebp - 0x14c], 2
jne 0x41f7d4
cmp dword [ebp - 0x158], 5
jb 0x41f7d4
cmp dword [ebp + 0xc], 1
jne 0x41f757
push 0x2b
push dword [ebp + 8]
call fcn.0041f946
pop ecx
pop ecx
jmp 0x41f768
cmp dword [ebp + 0xc], esi
jne 0x41f770
push 0x26
push dword [ebp + 8]
call fcn.0041f946
pop ecx
pop ecx
mov eax, dword [ebp + 8]
jmp 0x41f937
lea eax, [ebp + 0xf]
push esi
push eax
lea eax, [ebp - 0x260]
mov ebx, 0x47e4b8
mov edi, 0x47e4b0
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], edi
call fcn.00405ab2
push 0x495d74
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 5
call fcn.00407248
mov esi, dword [ebp + 8]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.00405983
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], 1
call fcn.00407d51
mov eax, esi
jmp 0x41f937
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
call fcn.004211da
pop ecx
pop ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 1
call fcn.00420d1e
lea ecx, [ebp - 0x38]
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
test al, al
je 0x41f82c
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x38]
push eax
call fcn.00406f52
cmp dword [eax + 0xc], esi
lea ecx, [ebp - 0x6c]
sete bl
call fcn.00407d51
test bl, bl
je 0x41f906
mov eax, dword [ebp + 0xc]
sub eax, esi
je 0x41f885
dec eax
jne 0x41f906
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.0041f6db
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0041b9be
push dword [0x47e51c]
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
push esi
and ecx, eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00406741
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00407d51
push 0x49677c
jmp 0x41f8fe
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00420055
pop ecx
pop ecx
push dword [0x47e51c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 3
neg ecx
sbb ecx, ecx
push esi
and ecx, eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00406741
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00407d51
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x38]
push eax
call fcn.00406f52
push dword [0x47e51c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 4
neg ecx
sbb ecx, ecx
push esi
and ecx, eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00406741
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.00407d51
push 0x496760
lea ecx, [ebp - 0x38]
call fcn.00407248
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x38]
push esi
push eax
mov ecx, edi
mov dword [edi], 0x47e4b8
mov dword [edi + 0x20], 0x47e4b0
call fcn.00405983
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], 1
call fcn.00407d51
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret