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

Disassembly:
mov eax, 0x473859
call fcn.00465b54
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 0x41f1a1
cmp dword [ebp - 0x14c], 2
jne 0x41f1a1
cmp dword [ebp - 0x158], 5
jb 0x41f1a1
cmp dword [ebp + 0xc], 1
jne 0x41f124
push 0x2b
push dword [ebp + 8]
call fcn.0041f313
pop ecx
pop ecx
jmp 0x41f135
cmp dword [ebp + 0xc], esi
jne 0x41f13d
push 0x26
push dword [ebp + 8]
call fcn.0041f313
pop ecx
pop ecx
mov eax, dword [ebp + 8]
jmp 0x41f304
lea eax, [ebp + 0xf]
push esi
push eax
lea eax, [ebp - 0x260]
mov ebx, 0x47b4b8
mov edi, 0x47b4b0
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], edi
call fcn.004059b3
push 0x491d34
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 5
call fcn.004073da
mov esi, dword [ebp + 8]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.00405884
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], 1
call fcn.00407f77
mov eax, esi
jmp 0x41f304
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
call fcn.00420769
pop ecx
pop ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 1
call fcn.00420336
lea ecx, [ebp - 0x38]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
test al, al
je 0x41f1f9
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x38]
push eax
call fcn.004072b6
cmp dword [eax + 0xc], esi
lea ecx, [ebp - 0x6c]
sete bl
call fcn.00407f77
test bl, bl
je 0x41f2d3
mov eax, dword [ebp + 0xc]
sub eax, esi
je 0x41f252
dec eax
jne 0x41f2d3
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.0041f0a8
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0041a934
push dword [0x47b518]
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
push esi
and ecx, eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00406639
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00407f77
push 0x49272c
jmp 0x41f2cb
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.0041f776
pop ecx
pop ecx
push dword [0x47b518]
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.00406639
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00407f77
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x38]
push eax
call fcn.004072b6
push dword [0x47b518]
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.00406639
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.00407f77
push 0x492710
lea ecx, [ebp - 0x38]
call fcn.004073da
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x38]
push esi
push eax
mov ecx, edi
mov dword [edi], 0x47b4b8
mov dword [edi + 0x20], 0x47b4b0
call fcn.00405884
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], 1
call fcn.00407f77
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret