Function at 0x4082b0
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46180d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x488480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 1
push eax
call fcn.00405bf0
mov ebx, eax
add esp, 4
lea esi, [ebx + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
call fcn.00404210
mov ecx, eax
test ecx, ecx
je 0x4084c9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push 0x4667ec
push eax
call fcn.004063c0
add esp, 0xc
push esi
mov esi, dword [ebp - 0x10]
push esi
push dword [0x4ac028]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x408362
push edi
push dword [0x4ac028]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408362
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x40839f
or edi, 0xffffffff
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408380
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x408398
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x408478
push edi
push dword [0x4ac028]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
or edi, 0xffffffff
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov ecx, edi
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4083cd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4083e5
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40840f
lea eax, [ebp + 0x10]
push eax
call fcn.004081f0
add esp, 4
test al, 1
je 0x40840f
and eax, 0xfffffffe
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x30]
call fcn.0040cf10
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
push eax
push eax
push dword [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0040d040
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x18], esi
call fcn.00405bf0
add esp, 4
lea ecx, [ebp - 0x30]
add eax, 0x10
mov dword [esi], eax
call fcn.0040d150
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov esi, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
call fcn.0040cf50
test esi, esi
setne bl
mov edx, dword [ebp + 0xc]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408496
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4084b5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404100
int3