Function at 0x4074f6
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Read .ini file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 1
mov dword [ebp - 0xc], eax
push dword [0x45ffcc]
call dword [sym.imp.USER32.dll_LoadIconA]
xor esi, esi
push esi
push eax
push 0x170
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x45a9c8
push 0x65
push dword [0x45ffcc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, esi
je 0x40775b
push edi
push dword [0x45ffcc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x40775b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x40775b
push ebx
push edi
push dword [0x45ffcc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x434]
mov ebx, 0x105
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x224]
push eax
push esi
lea eax, [ebp - 0x434]
push 0x45aa3c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x407751
push esi
push 0x80
push 4
push esi
push 1
lea eax, [ebp - 0x224]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407751
push esi
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], esi
jne 0x407744
push dword [ebp - 0xc]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, str._04x
lea eax, [ebp - 0x32c]
push edi
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x434]
push ebx
push eax
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
jne 0x407651
push 0x409
lea eax, [ebp - 0x32c]
push edi
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea eax, [ebp - 0x11c]
push 0x104
mov ebx, 0x4601f4
push eax
push ebx
lea eax, [ebp - 0x32c]
push str.Title
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call edi
push 4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x11c]
push 0x104
push eax
push ebx
lea eax, [ebp - 0x32c]
push str.Description
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 4]
call edi
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x11c]
push 0x104
push eax
push ebx
lea eax, [ebp - 0x32c]
push 0x45aa1c
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 4]
call edi
push 2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x11c]
push 0x104
push eax
push ebx
lea eax, [ebp - 0x32c]
push 0x45aa14
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
leave
ret