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

Disassembly:
push 0x164
mov eax, 0x505e3f
call fcn.004d998f
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x728], edi
jne 0x418d19
mov al, 1
jmp 0x418f52
sub esp, 0x1c
lea eax, [ebx + 0x718]
mov esi, esp
mov dword [ebp - 0x164], esp
push eax
call fcn.004125a9
call fcn.0042aec7
add esp, 0x1c
push 0x5344c0
lea ecx, [ebx + 0x718]
mov byte [ebp - 0x15d], al
call fcn.00411c9c
test eax, eax
jne 0x418f4c
mov esi, 0x114
push esi
lea eax, [ebp - 0x15c]
push edi
push eax
call fcn.004d8c50
add esp, 0xc
lea eax, [ebp - 0x15c]
push eax
mov dword [ebp - 0x15c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x5344c8
push 0x69
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x418f4c
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 0x5344d0
push eax
mov dword [ebp - 0x164], ebx
call fcn.00411a98
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x418dde
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 0x418e25
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 0x5344e8
push 0x6d
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x418f41
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.00411a98
pop ecx
pop ecx
push 8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
pop ebx
cmp dword [ebp - 0x34], ebx
jae 0x418e81
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 0x418ec2
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 0x418eed
cmp dword [ebp - 0x18], ebx
jae 0x418ed6
lea eax, [ebp - 0x2c]
push ecx
mov ecx, esp
mov dword [ebp - 0x164], esp
push eax
push ecx
call fcn.00403b0d
call fcn.0042adb7
jmp 0x418f0a
cmp dword [ebp - 0x18], ebx
jae 0x418ef5
lea eax, [ebp - 0x2c]
push ecx
mov ecx, esp
mov dword [ebp - 0x164], esp
push eax
push ecx
call fcn.00403b0d
call fcn.0042ab93
cmp al, 1
mov eax, dword [ebp - 0x2c]
sete byte [ebp - 0x15d]
pop ecx
cmp dword [ebp - 0x18], ebx
jae 0x418f1f
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 0x418f33
lea eax, [ebp - 0x48]
push eax
call esi
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00403da4
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403da4
mov al, byte [ebp - 0x15d]
call fcn.004d9a12
ret