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

Disassembly:
push 0x164
mov eax, 0x506e28
call fcn.004da01f
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x728], edi
jne 0x41956d
mov al, 1
jmp 0x4197a6
sub esp, 0x1c
lea eax, [ebx + 0x718]
mov esi, esp
mov dword [ebp - 0x164], esp
push eax
call fcn.004047f4
call fcn.0042b53a
add esp, 0x1c
push 0x5343f8
lea ecx, [ebx + 0x718]
mov byte [ebp - 0x15d], al
call fcn.0041264a
test eax, eax
jne 0x4197a0
mov esi, 0x114
push esi
lea eax, [ebp - 0x15c]
push edi
push eax
call fcn.004d92e0
add esp, 0xc
lea eax, [ebp - 0x15c]
push eax
mov dword [ebp - 0x15c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x534400
push 0x69
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x4197a0
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 0x534408
push eax
mov dword [ebp - 0x164], ebx
call fcn.00412446
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x419632
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 0x419679
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 0x534420
push 0x6d
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x419795
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.00412446
pop ecx
pop ecx
push 8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
pop ebx
cmp dword [ebp - 0x34], ebx
jae 0x4196d5
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 0x419716
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 0x419741
cmp dword [ebp - 0x18], ebx
jae 0x41972a
lea eax, [ebp - 0x2c]
push ecx
mov ecx, esp
mov dword [ebp - 0x164], esp
push eax
push ecx
call fcn.00404371
call fcn.0042b42a
jmp 0x41975e
cmp dword [ebp - 0x18], ebx
jae 0x419749
lea eax, [ebp - 0x2c]
push ecx
mov ecx, esp
mov dword [ebp - 0x164], esp
push eax
push ecx
call fcn.00404371
call fcn.0042b206
cmp al, 1
mov eax, dword [ebp - 0x2c]
sete byte [ebp - 0x15d]
pop ecx
cmp dword [ebp - 0x18], ebx
jae 0x419773
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 0x419787
lea eax, [ebp - 0x48]
push eax
call esi
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040482f
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040482f
mov al, byte [ebp - 0x15d]
call fcn.004da0a2
ret