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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44a669
push eax
mov eax, 0x1110
mov dword fs:[0], esp
call fcn.004364f0
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 0x40fb00
xor al, al
jmp 0x40fdbe
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
jne 0x40fb16
xor al, al
jmp 0x40fdbe
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 0x40fb37
xor al, al
jmp 0x40fdbe
push ebp
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x40fb58
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x40fdbe
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x40fb78
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x40fdbe
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.0040ff60
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.00437f3a
add esp, 8
lea eax, [esp + 0x120]
push eax
call ebx
test eax, eax
je 0x40fc3a
inc esi
cmp esi, 0xa
jl 0x40fbe2
mov ebx, dword [esp + 0x14]
jmp 0x40fcb0
lea ecx, [esp + 0x120]
test ecx, ecx
jne 0x40fc49
xor eax, eax
jmp 0x40fc57
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.00404a30
mov esi, dword [esi]
push 0x455e60
push esi
call fcn.00437b59
mov esi, eax
add esp, 8
test esi, esi
je 0x40fcb0
mov edx, dword [esp + 0x1c]
push esi
push ebp
push 1
push edx
call fcn.00437e01
add esp, 0x10
cmp eax, ebp
jne 0x40fcb0
push esi
call fcn.00437bff
push esi
call fcn.00437aab
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 0x40fcf2
mov esi, dword [ebx + 0x18]
push 0x10
call fcn.0040ec60
mov dword [esp + 0x1c], eax
cmp eax, edi
mov dword [esp + 0x1128], edi
je 0x40fce3
push edi
push esi
mov ecx, eax
call fcn.0040fe80
jmp 0x40fce5
xor eax, eax
cmp eax, edi
mov dword [esp + 0x1128], ebp
mov esi, eax
jne 0x40fd5a
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 0x40fd43
mov edi, dword [esp + 0x14]
push 0x10
call fcn.0040ec60
mov esi, eax
test esi, esi
je 0x40fd41
lea edx, [esp + 0x18]
mov dword [esi], 0x44d6a4
push edx
push edi
mov dword [esp + 0x20], 0
call fcn.0040ef60
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
jmp 0x40fd43
xor esi, esi
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1128], ebp
je 0x40fd5a
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 0x40fdb6
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.0040edb0
cmp eax, edi
je 0x40fd8c
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.0040ede0
cmp eax, edi
je 0x40fdaf
mov dword [esi + 8], eax
mov edx, dword [esp + 0x10]
mov dword [ebx + 0xc], edx
mov ecx, ebx
call fcn.0040f4a0
pop edi
mov ecx, dword [esp + 0x111c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x111c
ret 8