Function at 0x41954f
Capabilities:
Check os version
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0x164
mov eax, 0x506e5f
call fcn.004da051
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x728], edi
jne 0x419571
mov al, 1
jmp 0x4197aa
sub esp, 0x1c
lea eax, [ebx + 0x718]
mov esi, esp
mov dword [ebp - 0x164], esp
push eax
call fcn.00404734
call fcn.0042b583
add esp, 0x1c
push 0x5343c8
lea ecx, [ebx + 0x718]
mov byte [ebp - 0x15d], al
call fcn.0041257e
test eax, eax
jne 0x4197a4
mov esi, 0x114
push esi
lea eax, [ebp - 0x15c]
push edi
push eax
call fcn.004d9310
add esp, 0xc
lea eax, [ebp - 0x15c]
push eax
mov dword [ebp - 0x15c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x5343d0
push 0x69
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x4197a4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push edi
mov dword [ebp - 0x168], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x2c]
add ebx, 0x650
push 0x5343d8
push eax
mov dword [ebp - 0x164], ebx
call fcn.0041237a
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x419636
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0x80
push 4
push edi
push edi
push 0xc0000000
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41967d
push edi
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x16c]
mov dword [ebp - 0x170], edi
push dword [ebp - 0x168]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5343f0
push 0x6d
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x419799
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push edi
mov dword [ebp - 0x16c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, dword [ebp - 0x164]
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x48]
push str.NFWCHK.exe.config
push eax
call fcn.0041237a
pop ecx
pop ecx
push 8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
pop ebx
cmp dword [ebp - 0x34], ebx
jae 0x4196d9
lea eax, [ebp - 0x48]
push edi
push 0x80
push 4
push edi
push edi
push 0xc0000000
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x41971a
push edi
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x168]
mov dword [ebp - 0x170], edi
push dword [ebp - 0x16c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x158], 6
mov eax, dword [ebp - 0x2c]
jae 0x419745
cmp dword [ebp - 0x18], ebx
jae 0x41972e
lea eax, [ebp - 0x2c]
push ecx
mov ecx, esp
mov dword [ebp - 0x164], esp
push eax
push ecx
call fcn.004042b1
call fcn.0042b473
jmp 0x419762
cmp dword [ebp - 0x18], ebx
jae 0x41974d
lea eax, [ebp - 0x2c]
push ecx
mov ecx, esp
mov dword [ebp - 0x164], esp
push eax
push ecx
call fcn.004042b1
call fcn.0042b24f
cmp al, 1
mov eax, dword [ebp - 0x2c]
sete byte [ebp - 0x15d]
pop ecx
cmp dword [ebp - 0x18], ebx
jae 0x419777
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x41978b
lea eax, [ebp - 0x48]
push eax
call esi
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040476f
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040476f
mov al, byte [ebp - 0x15d]
call fcn.004da0d4
ret