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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x454ca1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc58
mov eax, dword [0x46c3ac]
push ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc54], eax
push esi
push edi
xor eax, eax
xor ebx, ebx
mov word [esp + 0x438], bx
mov ecx, 0x81
lea edi, [esp + 0x43a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x230], bx
mov ecx, 0x81
lea edi, [esp + 0x232]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x640], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x642]
rep stosd dword es:[edi], eax
push 0x457084
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
call fcn.00403a80
mov esi, dword [ebp + 8]
lea eax, [esp + 0x438]
push eax
push str.ItemCab
mov ecx, esi
mov dword [esp + 0xc74], ebx
call fcn.0041e490
cmp eax, ebx
je 0x41ab41
lea eax, [esp + 0x230]
push eax
push str.ItemName
mov ecx, esi
call fcn.0041e490
lea ecx, [esp + 0x640]
push ecx
push str.ItemSoftPath
mov ecx, esi
call fcn.0041e490
cmp eax, ebx
jne 0x41ab11
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0xc6c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41ab60
lea eax, [esp + 0x848]
push eax
push str.ItemInstallPath
mov ecx, esi
call fcn.0041e490
cmp eax, ebx
je 0x41ab41
lea eax, [esp + 0xa50]
push eax
push str.ItemTempInstallPath
mov ecx, esi
call fcn.0041e490
cmp eax, ebx
jne 0x41ab71
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0xc6c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ab6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x41ae6b
call fcn.004511f3
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push str.SETUPCAB
lea ecx, [esp + 0x43c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x41abee
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x2c]
push 0x45a718
push ecx
call fcn.004322a4
mov ecx, dword [0x46d488]
add esp, 0xc
push ebx
lea edx, [esp + 0x2c]
push edx
call fcn.0040c860
mov eax, dword [0x46d488]
mov ecx, dword [eax + 0x2c]
cmp ecx, ebx
je 0x41abde
push 0x10
push 0x457dbc
lea edx, [esp + 0x30]
push edx
call fcn.00448337
lea ecx, [esp + 0xc]
call fcn.004034e0
xor eax, eax
jmp 0x41ae6b
call fcn.004511f3
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call fcn.004511f3
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [0x46d488]
mov ecx, dword [eax + 8]
lea edx, [esp + 0x438]
push edx
mov edx, dword [ecx + 0x278]
push edx
lea eax, [esp + 0x14]
push 0x45a704
push eax
call fcn.00403960
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push 0x1001
push ecx
lea ecx, [esp + 0x20]
call fcn.0044ca16
cmp dword [esp + 0x1c], ebx
mov byte [esp + 0xc6c], 1
jne 0x41acca
lea edx, [esp + 0x28]
push 0x45a6f0
push edx
call fcn.004322a4
mov ecx, dword [0x46d488]
add esp, 8
push ebx
lea eax, [esp + 0x2c]
push eax
call fcn.0040c860
mov ecx, dword [0x46d488]
mov ecx, dword [ecx + 0x2c]
cmp ecx, ebx
je 0x41acaa
push 0x10
push 0x457dbc
lea edx, [esp + 0x30]
push edx
call fcn.00448337
lea ecx, [esp + 0x18]
mov byte [esp + 0xc6c], bl
call fcn.0044c626
lea ecx, [esp + 0xc]
call fcn.004034e0
xor eax, eax
jmp 0x41ae6b
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.0044c33a
lea ecx, [esp + 0x18]
call fcn.0044c585
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push 0x41a880
call fcn.00420160
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x2c]
push 0x45a6e0
push ecx
call fcn.004322a4
mov ecx, dword [0x46d488]
add esp, 0xc
push ebx
lea edx, [esp + 0x2c]
push edx
call fcn.0040c860
mov edx, dword [esp + 0xc]
lea eax, [esp + 0xa50]
push eax
lea ecx, [esp + 0x84c]
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.004209f0
test eax, eax
jne 0x41ae32
lea ecx, [esp + 0x10]
call fcn.004034c0
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x400
mov byte [esp + 0xc7c], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
lea edx, [esp + 0x230]
lea eax, [esp + 0x10]
je 0x41ad96
mov ecx, dword [esp + 0x14]
push ecx
push edx
push 0x45a6b8
jmp 0x41ada4
lea ecx, [esp + 0x848]
push ecx
push edx
push 0x45a670
push eax
call fcn.00403960
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x28]
push esi
push edx
call fcn.004322a4
mov ecx, dword [0x46d488]
add esp, 8
push ebx
lea eax, [esp + 0x2c]
push eax
call fcn.0040c860
mov eax, dword [0x46d488]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x4c8]
mov ecx, dword [eax + 0x38]
push edx
call fcn.0040c760
mov eax, dword [0x46d488]
mov ecx, dword [eax + 0x2c]
cmp ecx, ebx
je 0x41ae0c
mov eax, dword [eax + 8]
push ebx
add eax, 4
push eax
push esi
call fcn.00448337
lea ecx, [esp + 0x10]
call fcn.004034e0
lea ecx, [esp + 0x18]
mov byte [esp + 0xc6c], bl
call fcn.0044c626
lea ecx, [esp + 0xc]
call fcn.004034e0
xor eax, eax
jmp 0x41ae6b
lea ecx, [esp + 0x438]
push ecx
lea ecx, [esi + 8]
call fcn.004464b6
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x18]
mov byte [esp + 0xc6c], bl
call fcn.0044c626
lea ecx, [esp + 0xc]
call fcn.004034e0
mov eax, 1
mov ecx, dword [esp + 0xc64]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xc5c]
call fcn.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4