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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44e4a9
push eax
mov eax, 0x1110
mov dword fs:[0], esp
call fcn.00439ff0
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 0x422fc0
xor al, al
jmp 0x42327e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
jne 0x422fd6
xor al, al
jmp 0x42327e
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 0x422ff7
xor al, al
jmp 0x42327e
push ebp
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x423018
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x42327e
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x423038
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x42327e
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.00423370
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.0043a78e
add esp, 8
lea eax, [esp + 0x120]
push eax
call ebx
test eax, eax
je 0x4230fa
inc esi
cmp esi, 0xa
jl 0x4230a2
mov ebx, dword [esp + 0x14]
jmp 0x423170
lea ecx, [esp + 0x120]
test ecx, ecx
jne 0x423109
xor eax, eax
jmp 0x423117
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.00403d70
mov esi, dword [esi]
push 0x4578ac
push esi
call fcn.0043a0f6
mov esi, eax
add esp, 8
test esi, esi
je 0x423170
mov edx, dword [esp + 0x1c]
push esi
push ebp
push 1
push edx
call fcn.0043a655
add esp, 0x10
cmp eax, ebp
jne 0x423170
push esi
call fcn.0043a4b3
push esi
call fcn.0043a048
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 0x4231b2
mov esi, dword [ebx + 0x18]
push 0x10
call fcn.0042b550
mov dword [esp + 0x1c], eax
cmp eax, edi
mov dword [esp + 0x1128], edi
je 0x4231a3
push edi
push esi
mov ecx, eax
call fcn.004232c0
jmp 0x4231a5
xor eax, eax
cmp eax, edi
mov dword [esp + 0x1128], ebp
mov esi, eax
jne 0x42321a
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 0x423203
mov edi, dword [esp + 0x14]
push 0x10
call fcn.0042b550
mov esi, eax
test esi, esi
je 0x423201
lea edx, [esp + 0x18]
mov dword [esi], 0x44f938
push edx
push edi
mov dword [esp + 0x20], 0
call fcn.0042b850
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
jmp 0x423203
xor esi, esi
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1128], ebp
je 0x42321a
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 0x423276
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.0042b6a0
cmp eax, edi
je 0x42324c
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.0042b6d0
cmp eax, edi
je 0x42326f
mov dword [esi + 8], eax
mov edx, dword [esp + 0x10]
mov dword [ebx + 0xc], edx
mov ecx, ebx
call fcn.00422960
pop edi
mov ecx, dword [esp + 0x111c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x111c
ret 8