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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb3f6
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x6385e0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], ecx
mov byte [ebp - 0x15], 0
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._bootdelete.exe
push 0x104
lea ecx, [ebp - 0x224]
push ecx
call fcn.0054eb7c
add esp, 0xc
call fcn.0042e1f0
movzx edx, al
neg edx
sbb edx, edx
neg edx
add edx, 0x12f
mov dword [ebp - 0x10], edx
push 0xa
movzx eax, word [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x479a74
jmp 0x479c92
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x228], eax
mov edx, dword [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x22c], 0
je 0x479c92
mov dword [ebp - 0x234], 0xffffffff
push 0
push 0x80
push 2
push 0
push 0
push 0x1f01ff
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x479af5
jmp 0x479c6f
push 0
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x479b22
jmp 0x479c6f
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x228]
jne 0x479c6f
push str.HKLMSYSTEMCurrentControlSetControlSession_Manager
lea ecx, [ebp - 0x254]
call fcn.004b3550
mov dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0x254]
push ecx
call fcn.00414b70
add esp, 8
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.004b3860
cmp dword [ebp - 0x23c], 0
je 0x479c6f
push 0
lea ecx, [ebp - 0x248]
call fcn.00430200
mov dword [ebp - 4], 1
lea edx, [ebp - 0x248]
push edx
push 0x604cd4
mov ecx, dword [ebp - 0x23c]
call fcn.004144b0
lea ecx, [ebp - 0x248]
call fcn.004b9730
add eax, 1
push eax
lea ecx, [ebp - 0x248]
call fcn.004303b0
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x258], esp
push 0x604cec
call fcn.004b3550
mov dword [ebp - 0x268], eax
lea ecx, [ebp - 0x248]
call fcn.004b9730
sub eax, 1
push eax
lea ecx, [ebp - 0x248]
call fcn.00430300
lea eax, [ebp - 0x248]
push eax
push 0x604cd4
mov ecx, dword [ebp - 0x23c]
call fcn.00478ab0
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x260], ecx
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x25c], edx
cmp dword [ebp - 0x25c], 0
je 0x479c4f
push 1
mov eax, dword [ebp - 0x25c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x25c]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x26c], eax
jmp 0x479c59
mov dword [ebp - 0x26c], 0
mov byte [ebp - 0x15], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00430250
cmp dword [ebp - 0x234], 0xffffffff
je 0x479c85
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0054d4f5
mov esp, ebp
pop ebp
ret