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

Disassembly:
push 0x164
mov eax, 0x505ed6
call fcn.004d9a2f
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x728], edi
jne 0x418cb4
mov al, 1
jmp 0x418eed
sub esp, 0x1c
lea eax, [ebx + 0x718]
mov esi, esp
mov dword [ebp - 0x164], esp
push eax
call fcn.00412537
call fcn.0042adfc
add esp, 0x1c
push 0x534490
lea ecx, [ebx + 0x718]
mov byte [ebp - 0x15d], al
call fcn.00411c2a
test eax, eax
jne 0x418ee7
mov esi, 0x114
push esi
lea eax, [ebp - 0x15c]
push edi
push eax
call fcn.004d8ce0
add esp, 0xc
lea eax, [ebp - 0x15c]
push eax
mov dword [ebp - 0x15c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x534498
push 0x69
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x418ee7
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 0x5344a0
push eax
mov dword [ebp - 0x164], ebx
call fcn.00411a26
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x418d79
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 0x418dc0
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 0x5344b8
push 0x6d
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x418edc
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.00411a26
pop ecx
pop ecx
push 8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
pop ebx
cmp dword [ebp - 0x34], ebx
jae 0x418e1c
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 0x418e5d
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 0x418e88
cmp dword [ebp - 0x18], ebx
jae 0x418e71
lea eax, [ebp - 0x2c]
push ecx
mov ecx, esp
mov dword [ebp - 0x164], esp
push eax
push ecx
call fcn.00403b4c
call fcn.0042acec
jmp 0x418ea5
cmp dword [ebp - 0x18], ebx
jae 0x418e90
lea eax, [ebp - 0x2c]
push ecx
mov ecx, esp
mov dword [ebp - 0x164], esp
push eax
push ecx
call fcn.00403b4c
call fcn.0042aac8
cmp al, 1
mov eax, dword [ebp - 0x2c]
sete byte [ebp - 0x15d]
pop ecx
cmp dword [ebp - 0x18], ebx
jae 0x418eba
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 0x418ece
lea eax, [ebp - 0x48]
push eax
call esi
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00403de3
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403de3
mov al, byte [ebp - 0x15d]
call fcn.004d9ab2
ret