Function at 0x42a775
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push 0x258
mov eax, 0x4bc771
call fcn.00431cf2
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00476e20
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call fcn.00474a17
mov dword [esp], str.REGRES
push str.REGDATA
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42aa38
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x1869f
push 0x2710
mov edi, eax
call fcn.00475170
cdq
push edx
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.004747b9
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x220], 0
mov esi, 0x4c1c18
push esi
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.0047a984
add esp, 0x18
lea ecx, [ebp - 0x230]
push eax
push esi
call fcn.0040244a
mov esi, 0x4c3e84
mov byte [ebp - 4], 1
push esi
call fcn.0047a984
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.004272fc
cmp dword [ebp - 0x24c], 8
lea esi, [ebp - 0x260]
cmovae esi, dword [ebp - 0x260]
xor eax, eax
cmp word [esi], ax
je 0x42a88a
push esi
call fcn.0047a984
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.004272fc
mov esi, 0x4c3e88
push esi
call fcn.0047a984
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.004272fc
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0047e43b
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a8f1
lea eax, [ebp - 0x218]
push eax
call fcn.00474e4e
pop ecx
xor eax, eax
push eax
push 0x80
push 1
push eax
push 1
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42a937
xor eax, eax
push eax
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x264]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x234], 7
mov esi, str.regedit__s
mov word [ebp - 0x248], ax
xor ebx, ebx
push esi
mov dword [ebp - 0x238], ebx
call fcn.0047a984
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.0040244a
mov byte [ebp - 4], 2
cmp word [ebp - 0x218], bx
jne 0x42a97c
mov eax, ebx
jmp 0x42a989
lea eax, [ebp - 0x218]
push eax
call fcn.0047a984
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004272fc
mov esi, 0x4c0778
push esi
call fcn.0047a984
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.004272fc
cmp dword [ebp - 0x21c], 8
lea esi, [ebp - 0x230]
cmovae esi, dword [ebp - 0x230]
cmp word [esi], bx
jne 0x42a9d2
mov eax, ebx
jmp 0x42a9d9
push esi
call fcn.0047a984
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.004272fc
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.004749f2
lea eax, [ebp - 0x218]
push eax
call fcn.00475151
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.004022f7
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.004022f7
push ebx
push 1
lea ecx, [ebp - 0x260]
call fcn.004022f7
call fcn.00431c9c
ret 4