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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x454231
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc58
mov eax, dword [0x46b3ac]
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 0x45700c
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
call fcn.00403a40
mov esi, dword [ebp + 8]
lea eax, [esp + 0x438]
push eax
push str.ItemCab
mov ecx, esi
mov dword [esp + 0xc74], ebx
call fcn.0041de50
cmp eax, ebx
je 0x41aac1
lea eax, [esp + 0x230]
push eax
push str.ItemName
mov ecx, esi
call fcn.0041de50
lea ecx, [esp + 0x640]
push ecx
push str.ItemSoftPath
mov ecx, esi
call fcn.0041de50
cmp eax, ebx
jne 0x41aa91
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 0x41aae0
lea eax, [esp + 0x848]
push eax
push str.ItemInstallPath
mov ecx, esi
call fcn.0041de50
cmp eax, ebx
je 0x41aac1
lea eax, [esp + 0xa50]
push eax
push str.ItemTempInstallPath
mov ecx, esi
call fcn.0041de50
cmp eax, ebx
jne 0x41aaf1
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 0x41aaea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x41adeb
call fcn.00450719
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 0x41ab6e
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x2c]
push 0x45a118
push ecx
call fcn.00431794
mov ecx, dword [0x46c488]
add esp, 0xc
push ebx
lea edx, [esp + 0x2c]
push edx
call fcn.0040cc00
mov eax, dword [0x46c488]
mov ecx, dword [eax + 0x2c]
cmp ecx, ebx
je 0x41ab5e
push 0x10
push 0x457c18
lea edx, [esp + 0x30]
push edx
call fcn.00447821
lea ecx, [esp + 0xc]
call fcn.00403350
xor eax, eax
jmp 0x41adeb
call fcn.00450719
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.00450719
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 [0x46c488]
mov ecx, dword [eax + 8]
lea edx, [esp + 0x438]
push edx
mov edx, dword [ecx + 0x278]
push edx
lea eax, [esp + 0x14]
push 0x45a104
push eax
call fcn.00403920
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push 0x1001
push ecx
lea ecx, [esp + 0x20]
call fcn.0044bf00
cmp dword [esp + 0x1c], ebx
mov byte [esp + 0xc6c], 1
jne 0x41ac4a
lea edx, [esp + 0x28]
push 0x45a0f0
push edx
call fcn.00431794
mov ecx, dword [0x46c488]
add esp, 8
push ebx
lea eax, [esp + 0x2c]
push eax
call fcn.0040cc00
mov ecx, dword [0x46c488]
mov ecx, dword [ecx + 0x2c]
cmp ecx, ebx
je 0x41ac2a
push 0x10
push 0x457c18
lea edx, [esp + 0x30]
push edx
call fcn.00447821
lea ecx, [esp + 0x18]
mov byte [esp + 0xc6c], bl
call fcn.0044bb10
lea ecx, [esp + 0xc]
call fcn.00403350
xor eax, eax
jmp 0x41adeb
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.0044b824
lea ecx, [esp + 0x18]
call fcn.0044ba6f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push 0x41a800
call fcn.0041f600
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x2c]
push 0x45a0e0
push ecx
call fcn.00431794
mov ecx, dword [0x46c488]
add esp, 0xc
push ebx
lea edx, [esp + 0x2c]
push edx
call fcn.0040cc00
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.0041fed0
test eax, eax
jne 0x41adb2
lea ecx, [esp + 0x10]
call fcn.004034a0
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 0x41ad16
mov ecx, dword [esp + 0x14]
push ecx
push edx
push 0x45a0b8
jmp 0x41ad24
lea ecx, [esp + 0x848]
push ecx
push edx
push 0x45a070
push eax
call fcn.00403920
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.00431794
mov ecx, dword [0x46c488]
add esp, 8
push ebx
lea eax, [esp + 0x2c]
push eax
call fcn.0040cc00
mov eax, dword [0x46c488]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x4c8]
mov ecx, dword [eax + 0x38]
push edx
call fcn.0040cb00
mov eax, dword [0x46c488]
mov ecx, dword [eax + 0x2c]
cmp ecx, ebx
je 0x41ad8c
mov eax, dword [eax + 8]
push ebx
add eax, 4
push eax
push esi
call fcn.00447821
lea ecx, [esp + 0x10]
call fcn.00403350
lea ecx, [esp + 0x18]
mov byte [esp + 0xc6c], bl
call fcn.0044bb10
lea ecx, [esp + 0xc]
call fcn.00403350
xor eax, eax
jmp 0x41adeb
lea ecx, [esp + 0x438]
push ecx
lea ecx, [esi + 8]
call fcn.004459a0
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.0044bb10
lea ecx, [esp + 0xc]
call fcn.00403350
mov eax, 1
mov ecx, dword [esp + 0xc64]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xc5c]
call fcn.00431288
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4