Function at 0x42d060
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x458869
push eax
mov eax, 0x1110
mov dword fs:[0], esp
call fcn.00443b20
mov eax, dword [esp + 0x1120]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1124]
push ebx
push ebp
push esi
and eax, 0xffff
push ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x42d0b0
xor al, al
jmp 0x42d36e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
jne 0x42d0c6
xor al, al
jmp 0x42d36e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
jne 0x42d0e7
xor al, al
jmp 0x42d36e
push ebp
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x42d108
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x42d36e
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x42d128
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x42d36e
mov ecx, ebp
push edi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x920]
xor esi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x200
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x920]
mov dword [esp + 0x18], esi
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x20]
push 0x80
push ecx
call fcn.0042d450
add esp, 8
lea edx, [esp + 0x20]
lea eax, [esp + 0x920]
lea ecx, [esp + 0x120]
push edx
push eax
push ecx
call edi
lea edx, [esp + 0x120]
push str..tmp
push edx
call fcn.0044460b
add esp, 8
lea eax, [esp + 0x120]
push eax
call ebx
test eax, eax
je 0x42d1ea
inc esi
cmp esi, 0xa
jl 0x42d192
mov ebx, dword [esp + 0x14]
jmp 0x42d260
lea ecx, [esp + 0x120]
test ecx, ecx
jne 0x42d1f9
xor eax, eax
jmp 0x42d207
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x120]
push ecx
push eax
lea esi, [ebx + 0x18]
mov ecx, esi
call fcn.00403e10
mov esi, dword [esi]
push 0x463c04
push esi
call fcn.00443ac3
mov esi, eax
add esp, 8
test esi, esi
je 0x42d260
mov edx, dword [esp + 0x1c]
push esi
push ebp
push 1
push edx
call fcn.004444d2
add esp, 0x10
cmp eax, ebp
jne 0x42d260
push esi
call fcn.00444330
push esi
call fcn.00443a15
add esp, 8
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
xor edi, edi
xor esi, esi
or ebp, 0xffffffff
cmp eax, edi
je 0x42d2a2
mov esi, dword [ebx + 0x18]
push 0x10
call fcn.004354c0
mov dword [esp + 0x1c], eax
cmp eax, edi
mov dword [esp + 0x1128], edi
je 0x42d293
push edi
push esi
mov ecx, eax
call fcn.0042d3a0
jmp 0x42d295
xor eax, eax
cmp eax, edi
mov dword [esp + 0x1128], ebp
mov esi, eax
jne 0x42d30a
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push edi
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x42d2f3
mov edi, dword [esp + 0x14]
push 0x10
call fcn.004354c0
mov esi, eax
test esi, esi
je 0x42d2f1
lea edx, [esp + 0x18]
mov dword [esi], 0x45a5ec
push edx
push edi
mov dword [esp + 0x20], 0
call fcn.004357c0
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
jmp 0x42d2f3
xor esi, esi
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1128], ebp
je 0x42d30a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, edi
mov dword [ebx + 0x14], esi
je 0x42d366
mov dword [ebx + 0x10], 1
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
push ecx
call fcn.00435610
cmp eax, edi
je 0x42d33c
mov dword [esi + 8], eax
mov edx, dword [esp + 0x10]
mov esi, dword [ebx + 0x14]
mov dword [ebx + 8], edx
lea eax, [esp + 0x10]
mov ecx, dword [esi + 4]
push eax
push ecx
mov dword [esp + 0x18], edi
call fcn.00435640
cmp eax, edi
je 0x42d35f
mov dword [esi + 8], eax
mov edx, dword [esp + 0x10]
mov dword [ebx + 0xc], edx
mov ecx, ebx
call fcn.0042ca50
pop edi
mov ecx, dword [esp + 0x111c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x111c
ret 8