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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2e2e
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x52d474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x170], ecx
mov byte [ebp - 0x114], 0
push 0x103
push 0
lea eax, [ebp - 0x113]
push eax
call fcn.00493270
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
lea edx, [ebp - 0x114]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push 0x4f9618
push 0x4f9620
call fcn.00425290
mov ecx, eax
call fcn.00435ed0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0
jne 0x427cd3
jmp 0x427ef5
mov eax, dword [ebp - 0x168]
push eax
call fcn.00425290
mov ecx, eax
call fcn.00435ed0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x184], eax
mov edx, dword [ebp - 0x168]
push edx
call fcn.00425290
mov ecx, eax
call fcn.00435ed0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x114]
add eax, 0xffffffff
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x15d], dl
add dword [ebp - 0x164], 1
cmp byte [ebp - 0x15d], 0
jne 0x427d35
mov edi, dword [ebp - 0x164]
mov eax, dword [0x4f9628]
mov dword [edi], eax
mov ecx, dword [0x4f962c]
mov dword [edi + 4], ecx
mov dx, word [0x4f9630]
mov word [edi + 8], dx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x427dd1
lea ecx, [ebp - 0x114]
push ecx
call fcn.004279c0
add esp, 4
push eax
lea ecx, [ebp - 0x12c]
call fcn.00402dd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.004043f0
push eax
mov ecx, dword [ebp - 0x170]
call fcn.00428220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00404860
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0xffffffff
je 0x427e3a
mov dword [ebp - 0x17c], 0
push 0
lea eax, [ebp - 0x17c]
push eax
mov ecx, dword [ebp - 0x180]
push ecx
mov edx, dword [ebp - 0x184]
push edx
mov eax, dword [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x15c]
push edx
call fcn.00425290
mov ecx, eax
call fcn.00436320
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18c]
call fcn.00402fb0
push eax
lea ecx, [ebp - 0x144]
push ecx
call fcn.00402070
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x15c]
call fcn.00404c10
cmp dword [ebp - 0x170], 0
je 0x427eaa
mov edx, dword [ebp - 0x170]
add edx, 8
mov dword [ebp - 0x174], edx
jmp 0x427eb4
mov dword [ebp - 0x174], 0
mov eax, dword [ebp - 0x174]
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x144]
call fcn.004043f0
push eax
call fcn.0040ea20
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.00404860
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491511
mov esp, ebp
pop ebp
ret