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

Disassembly:
push 0x164
mov eax, 0x4a0672
call fcn.00481105
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x664], edi
jne 0x41f09e
mov al, 1
jmp 0x41f2d8
sub esp, 0x1c
lea eax, [ebx + 0x654]
mov esi, esp
mov dword [ebp - 0x164], esp
push eax
call fcn.00402109
call fcn.004225ff
add esp, 0x1c
push 0x4beb94
lea ecx, [ebx + 0x654]
mov byte [ebp - 0x15d], al
call fcn.00404839
test eax, eax
jne 0x41f2d2
mov esi, 0x114
push esi
lea eax, [ebp - 0x15c]
push edi
push eax
call fcn.004805d0
add esp, 0xc
lea eax, [ebp - 0x15c]
push eax
mov dword [ebp - 0x15c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x4beb9c
push 0x69
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x41f2d2
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, 0x58c
push 0x4beba4
push eax
mov dword [ebp - 0x164], ebx
call fcn.0040475c
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x41f163
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 0x41f1aa
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 0x4bcbf8
push 0x6d
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x41f2c7
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.0040475c
pop ecx
pop ecx
push 8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
pop ebx
cmp dword [ebp - 0x34], ebx
jae 0x41f206
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 0x41f247
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 0x41f272
cmp dword [ebp - 0x18], ebx
jae 0x41f25b
lea eax, [ebp - 0x2c]
push ecx
mov ecx, esp
mov dword [ebp - 0x164], esp
push eax
push ecx
call fcn.004025df
call fcn.004224ef
jmp 0x41f28f
cmp dword [ebp - 0x18], ebx
jae 0x41f27a
lea eax, [ebp - 0x2c]
push ecx
mov ecx, esp
mov dword [ebp - 0x164], esp
push eax
push ecx
call fcn.004025df
call fcn.00422268
cmp eax, 1
mov eax, dword [ebp - 0x2c]
sete byte [ebp - 0x15d]
pop ecx
cmp dword [ebp - 0x18], ebx
jae 0x41f2a5
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 0x41f2b9
lea eax, [ebp - 0x48]
push eax
call esi
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00402a5a
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a5a
mov al, byte [ebp - 0x15d]
call fcn.00481188
ret