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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453fc1
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.00403aa0
mov esi, dword [ebp + 8]
lea eax, [esp + 0x438]
push eax
push str.ItemCab
mov ecx, esi
mov dword [esp + 0xc74], ebx
call fcn.0041dad0
cmp eax, ebx
je 0x41a671
lea eax, [esp + 0x230]
push eax
push str.ItemName
mov ecx, esi
call fcn.0041dad0
lea ecx, [esp + 0x640]
push ecx
push str.ItemSoftPath
mov ecx, esi
call fcn.0041dad0
cmp eax, ebx
jne 0x41a641
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 0x41a690
lea eax, [esp + 0x848]
push eax
push str.ItemInstallPath
mov ecx, esi
call fcn.0041dad0
cmp eax, ebx
je 0x41a671
lea eax, [esp + 0xa50]
push eax
push str.ItemTempInstallPath
mov ecx, esi
call fcn.0041dad0
cmp eax, ebx
jne 0x41a6a1
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 0x41a69a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x41a99b
call fcn.004504a9
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 0x41a71e
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x2c]
push 0x459d58
push ecx
call fcn.00431524
mov ecx, dword [0x46c488]
add esp, 0xc
push ebx
lea edx, [esp + 0x2c]
push edx
call fcn.0040cb90
mov eax, dword [0x46c488]
mov ecx, dword [eax + 0x2c]
cmp ecx, ebx
je 0x41a70e
push 0x10
push 0x457c10
lea edx, [esp + 0x30]
push edx
call fcn.004475b1
lea ecx, [esp + 0xc]
call fcn.004033b0
xor eax, eax
jmp 0x41a99b
call fcn.004504a9
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.004504a9
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 0x459d44
push eax
call fcn.00403980
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push 0x1001
push ecx
lea ecx, [esp + 0x20]
call fcn.0044bc90
cmp dword [esp + 0x1c], ebx
mov byte [esp + 0xc6c], 1
jne 0x41a7fa
lea edx, [esp + 0x28]
push 0x459d30
push edx
call fcn.00431524
mov ecx, dword [0x46c488]
add esp, 8
push ebx
lea eax, [esp + 0x2c]
push eax
call fcn.0040cb90
mov ecx, dword [0x46c488]
mov ecx, dword [ecx + 0x2c]
cmp ecx, ebx
je 0x41a7da
push 0x10
push 0x457c10
lea edx, [esp + 0x30]
push edx
call fcn.004475b1
lea ecx, [esp + 0x18]
mov byte [esp + 0xc6c], bl
call fcn.0044b8a0
lea ecx, [esp + 0xc]
call fcn.004033b0
xor eax, eax
jmp 0x41a99b
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.0044b5b4
lea ecx, [esp + 0x18]
call fcn.0044b7ff
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push 0x41a3b0
call fcn.0041f3a0
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x2c]
push 0x459d20
push ecx
call fcn.00431524
mov ecx, dword [0x46c488]
add esp, 0xc
push ebx
lea edx, [esp + 0x2c]
push edx
call fcn.0040cb90
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.0041fc70
test eax, eax
jne 0x41a962
lea ecx, [esp + 0x10]
call fcn.00403500
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 0x41a8c6
mov ecx, dword [esp + 0x14]
push ecx
push edx
push 0x459cf8
jmp 0x41a8d4
lea ecx, [esp + 0x848]
push ecx
push edx
push 0x459cb0
push eax
call fcn.00403980
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.00431524
mov ecx, dword [0x46c488]
add esp, 8
push ebx
lea eax, [esp + 0x2c]
push eax
call fcn.0040cb90
mov eax, dword [0x46c488]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x4c8]
mov ecx, dword [eax + 0x38]
push edx
call fcn.0040ca90
mov eax, dword [0x46c488]
mov ecx, dword [eax + 0x2c]
cmp ecx, ebx
je 0x41a93c
mov eax, dword [eax + 8]
push ebx
add eax, 4
push eax
push esi
call fcn.004475b1
lea ecx, [esp + 0x10]
call fcn.004033b0
lea ecx, [esp + 0x18]
mov byte [esp + 0xc6c], bl
call fcn.0044b8a0
lea ecx, [esp + 0xc]
call fcn.004033b0
xor eax, eax
jmp 0x41a99b
lea ecx, [esp + 0x438]
push ecx
lea ecx, [esi + 8]
call fcn.00445730
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.0044b8a0
lea ecx, [esp + 0xc]
call fcn.004033b0
mov eax, 1
mov ecx, dword [esp + 0xc64]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xc5c]
call fcn.00431018
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4