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

Disassembly:
push 0xffffffffffffffff
push 0x4e5461
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov eax, dword [0x518a4c]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x13c], 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x34]
mov byte [esp + 0x13c], 2
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x14]
call fcn.004d8460
lea edx, [esp + 0x20]
push 1
push edx
lea ecx, [esp + 0x18]
call fcn.004d1670
mov eax, dword [eax]
push 0x51c2d8
push eax
call fcn.00416e8d
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
setne bl
call fcn.004d82d7
test bl, bl
je 0x426126
push 0x51c2d8
lea ecx, [esp + 0x14]
call fcn.004d86b3
mov eax, dword [0x518a4c]
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x148]
lea ecx, [esp + 0xc]
push esi
mov bl, 3
push 0x51c324
push ecx
mov byte [esp + 0x148], bl
call fcn.004d1aea
add esp, 0xc
lea ecx, [esp + 0xc]
push str..tmp
call fcn.004d86b3
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
push 0
call fcn.004d1311
mov eax, dword [0x518a4c]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x13c], 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x426258
test al, 0x10
jne 0x426258
mov edx, dword [esp + 0x14c]
push esi
push edx
lea eax, [esp + 0x20]
push str._s_d
push eax
call fcn.004d1aea
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
add esp, 0x10
push ecx
push edx
mov ecx, edi
call fcn.004d35f5
mov ecx, eax
call fcn.004d8460
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
call fcn.004d8410
mov esi, dword [esp + 0x144]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004d804c
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], bl
call fcn.004d82d7
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], 2
call fcn.004d82d7
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], 1
call fcn.004d82d7
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0
call fcn.004d82d7
mov ecx, dword [esp + 0x134]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret 0x10
mov al, byte [esp + 0x150]
test al, al
je 0x4261de
mov ecx, dword [esp + 0x14c]
and esi, 0xffff
push ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x426313
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x426313
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x426313
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.004d884c
test esi, esi
mov byte [esp + 0x13c], 5
je 0x4262fd
mov edx, dword [esp + 0xc]
push 0
push 0x1001
push edx
lea ecx, [esp + 0x30]
call fcn.004d895e
test eax, eax
je 0x4262fd
push esi
push edi
lea ecx, [esp + 0x2c]
call fcn.004d8ab5
lea ecx, [esp + 0x24]
call fcn.004d8b79
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
call fcn.004d8410
lea ecx, [esp + 0x24]
mov byte [esp + 0x13c], 4
call fcn.004d88a1
jmp 0x4261de
mov esi, dword [esp + 0x144]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004d804c
mov dword [esp + 0x1c], 1
jmp 0x4261f9