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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ae60
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add eax, 0x448
push eax
lea ecx, [ebp + 8]
call fcn.00402c30
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x41c475
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.004034e0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0042f9ba
add esp, 8
cmp eax, edi
jl 0x41c4ae
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x41c4ae
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, dword [ebp + 8]
mov esi, dword [edx - 0xc]
cmp esi, edi
jge 0x41c4b8
push 0x80070057
call fcn.00403700
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x41c4d5
push esi
lea ecx, [ebp + 8]
call fcn.004035c0
mov edx, dword [ebp + 8]
lea eax, [esi + 1]
push eax
push edx
call fcn.00430b93
mov eax, dword [ebp + 8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x41c4ae
mov dword [eax - 0xc], esi
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [edx + esi*2], cx
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x41c604
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x41c604
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41c604
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41c604
mov esi, ebx
call fcn.0041c250
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push edi
push edx
xor ecx, ecx
mov edi, ebx
call fcn.0041c2a0
mov esi, eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x41c584
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [ebp - 0x10], edi
test esi, esi
je 0x41c5c6
mov ecx, dword [ebx + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebx + 0x18]
mov eax, ebx
call fcn.0041c690
mov esi, eax
test edi, edi
je 0x41c5a9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.00403740
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x10], 0
je 0x41c5dc
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
push 0
call edx
test edi, edi
je 0x41c5e7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.00403740
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push eax
push str.Failed_to_load_resource:__s.
push 3
push 3
push 0x179
push str.CDownloader::PerformOffline
push str.Downloader.cpp
lea ecx, [ebp - 0x24]
call fcn.0042d6f0
push eax
call fcn.0042d910
mov eax, dword [ebx + 0x18]
add esp, 0x14
cmp dword [ebx + 0x10], 0
je 0x41c647
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
push 6
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c66d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4