Function at 0x402290
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40e054]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x104
lea eax, [ebp - 0x108]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x20c], edi
call fcn.004067e0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, 0x104
jb 0x4022ec
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004025cb
mov esp, ebp
pop ebp
ret
push esi
push str.driversIpFltDrv.sys
lea edx, [ebp - 0x108]
push 0x104
push edx
call fcn.004027ed
push 0x50
call fcn.004028fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x402326
lea eax, [ebp - 0x108]
push eax
mov eax, str.IpFltDrv
call fcn.00401330
jmp 0x402328
xor eax, eax
mov edx, dword [eax]
mov dword [0x40fd6c], eax
mov ecx, eax
mov eax, dword [edx + 8]
call eax
test eax, eax
jne 0x40234c
push 0x10
push 0x40c4f0
push 0x40c4fc
push edi
jmp 0x402505
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.IpFilter.sys
lea edx, [ebp - 0x108]
push 0x104
push edx
call fcn.004027ed
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4023af
push 0x10
push 0x40c4f0
push 0x40c520
push edi
jmp 0x402505
push ebx
push str.PROGRAM
push 0x69
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 0x210]
push ecx
push eax
push ebx
push esi
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x50
call fcn.004028fa
add esp, 4
mov esi, eax
pop ebx
test esi, esi
je 0x402423
lea edx, [ebp - 0x108]
push edx
mov eax, str.CWIpFilter
call fcn.00401330
jmp 0x402425
xor eax, eax
mov edx, dword [eax]
mov dword [0x40fd70], eax
mov ecx, eax
mov eax, dword [edx + 8]
call eax
test eax, eax
je 0x4024c9
mov ecx, dword [0x40fd70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x4024c9
mov ecx, dword [0x40fd70]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push 0
push 0
push 0
push 0
push 0x830
call eax
cmp eax, 0xffffffff
jne 0x4024a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40c55c
lea ecx, [ebp - 0x208]
push 0x100
push ecx
call fcn.00402770
mov eax, dword [ebp - 0x20c]
add esp, 0x10
push 0x10
push 0x40c4f0
lea edx, [ebp - 0x208]
push edx
push eax
jmp 0x402505
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop esi
mov dword [0x40fd74], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004025cb
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40c544
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.00402770
mov edx, dword [ebp - 0x20c]
add esp, 0x14
push 0x10
push 0x40c4f0
lea ecx, [ebp - 0x208]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop edi
call fcn.004025cb
mov esp, ebp
pop ebp
ret