Function at 0x40c460
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4369b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
mov eax, dword [0x4481e0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x248], eax
mov ebx, ecx
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x254], 0
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x254], 1
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x144]
push eax
push 0x104
mov byte [esp + 0x25c], 2
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x25c]
lea ecx, [esi + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402780
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x40c55f
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x254], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c535
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x254], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c557
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
jmp 0x40c77a
mov eax, dword [esi + 0x1c]
lea ebp, [esi + 0x1c]
push 0
lea ecx, [ebx + 0x1c]
push eax
mov dword [esp + 0x28], ecx
call fcn.004287db
test eax, eax
je 0x40c5f2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x254], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c59e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x254], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x254], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c98a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40c98a
mov edi, dword [ebp]
call fcn.00432b8a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push str.SETUPCAB
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40c65f
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x44]
push 0x43a688
push edx
call fcn.0041bc2e
mov ecx, dword [0x44914c]
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00404eb0
mov ecx, dword [0x44914c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x40c727
push 0x10
push 0x438e5c
lea edx, [esp + 0x48]
push edx
call fcn.0042a97f
jmp 0x40c727
call fcn.00432b8a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x18], eax
call fcn.00432b8a
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp]
push edx
mov edi, eax
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x18]
push str._s_s.cab
push ecx
call fcn.00402830
mov edx, dword [esp + 0x20]
add esp, 0x10
push 0x1001
push edx
lea ecx, [esp + 0x38]
call fcn.0042e54a
mov eax, dword [esp + 0x34]
test eax, eax
mov byte [esp + 0x254], 3
jne 0x40c7a3
lea eax, [esp + 0x40]
push 0x43a668
push eax
call fcn.0041bc2e
add esp, 8
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [0x44914c]
call fcn.00404eb0
mov edx, dword [0x44914c]
mov ecx, dword [edx]
test ecx, ecx
je 0x40c716
push 0x10
push 0x438e5c
lea eax, [esp + 0x48]
push eax
call fcn.0042a97f
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 2
call fcn.0042e15e
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x254], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c74d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x254], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c773
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x254], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c79c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40c98f
mov eax, dword [esp + 0x18]
push edi
push eax
lea ecx, [esp + 0x38]
call fcn.0042de72
lea ecx, [esp + 0x30]
call fcn.0042e0bd
push 0x40c300
mov ecx, ebx
call fcn.0040fc70
mov ecx, dword [esi + 4]
add esi, 4
push ecx
lea edx, [esp + 0x44]
push 0x43a658
push edx
call fcn.0041bc2e
mov ecx, dword [0x44914c]
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00404eb0
mov ecx, dword [0x44914c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 8]
mov edi, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push edi
mov ecx, ebx
call fcn.004106d0
test eax, eax
jne 0x40c94d
lea ecx, [esp + 0x18]
call fcn.00401040
push esi
push 0x43a650
lea ecx, [esp + 0x28]
mov ebx, 4
push ecx
mov byte [esp + 0x260], bl
call fcn.00405700
push 0x43a630
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x260], 5
call fcn.004047c0
mov ecx, dword [0x44914c]
mov edx, dword [ecx + 0x14]
add edx, ebx
push edx
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x260], 6
call fcn.0040b200
push 0x43a61c
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x260], 7
call fcn.004047c0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x258], 8
call fcn.00402780
lea ecx, [esp + 0x2c]
call fcn.00401060
lea ecx, [esp + 0x24]
call fcn.00401060
lea ecx, [esp + 0x28]
call fcn.00401060
lea ecx, [esp + 0x20]
mov byte [esp + 0x254], bl
call fcn.00401060
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x40]
push esi
push edx
call fcn.0041bc2e
mov ecx, dword [0x44914c]
add esp, 8
lea eax, [esp + 0x40]
push eax
call fcn.00404eb0
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx]
mov ecx, dword [eax + 0xc]
push edx
call fcn.00404e90
mov eax, dword [0x44914c]
mov ecx, dword [eax]
test ecx, ecx
je 0x40c914
push 0
push 0x4394d4
push esi
call fcn.0042a97f
lea ecx, [esp + 0x18]
call fcn.00401060
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 2
call fcn.0042e15e
lea ecx, [esp + 0x14]
call fcn.00401060
lea ecx, [esp + 0x1c]
call fcn.00401060
lea ecx, [esp + 0x10]
call fcn.00401060
xor eax, eax
jmp 0x40c98f
mov ecx, dword [esp + 0x20]
push ebp
call fcn.0042886c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 2
call fcn.0042e15e
lea ecx, [esp + 0x14]
call fcn.00401060
lea ecx, [esp + 0x1c]
call fcn.00401060
lea ecx, [esp + 0x10]
call fcn.00401060
mov eax, 1
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x23c]
pop ebx
call fcn.0041b28e
add esp, 0x248
ret 4