Function at 0x40fe80
Capabilities:
Delete file
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432c00
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
add eax, 0x448
push eax
lea ecx, [ebp + 8]
call fcn.00403130
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x40fed9
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.004025f0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov eax, dword [ebp + 8]
push dword [eax - 8]
push eax
call fcn.00420547
mov edx, eax
add esp, 8
test edx, edx
js 0x40ff13
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 8]
jg 0x40ff13
mov dword [ecx - 0xc], edx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax + edx*2], cx
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x40ff1d
push 0x80070057
call fcn.00402950
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x40ff3a
push esi
lea ecx, [ebp + 8]
call fcn.004026b0
mov eax, dword [ebp + 8]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0042100e
mov eax, dword [ebp + 8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x40ff13
mov dword [eax - 0xc], esi
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax + esi*2], cx
xor esi, esi
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
push dword [ebp + 8]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x410016
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410016
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x410016
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x410016
mov esi, dword [ebp - 0x14]
push esi
mov ecx, edi
call fcn.0040fc90
push 0
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 0x18]
mov ecx, edi
call fcn.0040fcf0
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x40ffe2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x410001
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi + 0x20]
mov ecx, edi
push ebx
call fcn.004100a0
mov edi, eax
jmp 0x410058
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x410012
push dword [edi + 0x20]
mov eax, dword [ecx]
push 0
call dword [eax + 0xc]
xor edi, edi
jmp 0x410058
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
push str.Failed_to_load_resource:__s.
push 3
push 3
push 0x147
push str.CDownloader::PerformOffline
push str.Downloader.cpp
call fcn.0041e2e0
push eax
call fcn.0041e500
mov ecx, dword [edi + 0x18]
add esp, 0x14
test ecx, ecx
je 0x410053
push dword [edi + 0x20]
mov eax, dword [ecx]
push 6
call dword [eax + 0xc]
mov edi, 6
test esi, esi
je 0x410063
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410087
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4