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

Disassembly:
push 0xffffffffffffffff
push 0x438543
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
mov eax, dword [0x44a1e0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x248], eax
mov ebx, ecx
call fcn.0042aa9b
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.0042aa9b
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.0042aa9b
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 + 0x3c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402880
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x40cbbf
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 0x40cb95
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 0x40cbb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
jmp 0x40cdda
mov eax, dword [esi + 0x30]
lea ebp, [esi + 0x30]
push 0
lea ecx, [ebx + 0xc]
push eax
mov dword [esp + 0x28], ecx
call fcn.0042a293
test eax, eax
je 0x40cc52
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 0x40cbfe
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 0x40cc20
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 0x40cfea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40cfea
mov edi, dword [ebp]
call fcn.00434642
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 0x40ccbf
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x44]
push 0x43c6f4
push edx
call fcn.0041c813
mov ecx, dword [0x44b18c]
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00405510
mov ecx, dword [0x44b18c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x40cd87
push 0x10
push 0x43b184
lea edx, [esp + 0x48]
push edx
call fcn.0042c437
jmp 0x40cd87
call fcn.00434642
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.00434642
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.00402930
mov edx, dword [esp + 0x20]
add esp, 0x10
push 0x1001
push edx
lea ecx, [esp + 0x38]
call fcn.00430002
mov eax, dword [esp + 0x34]
test eax, eax
mov byte [esp + 0x254], 3
jne 0x40ce03
lea eax, [esp + 0x40]
push 0x43c6d4
push eax
call fcn.0041c813
add esp, 8
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [0x44b18c]
call fcn.00405510
mov edx, dword [0x44b18c]
mov ecx, dword [edx]
test ecx, ecx
je 0x40cd76
push 0x10
push 0x43b184
lea eax, [esp + 0x48]
push eax
call fcn.0042c437
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 2
call fcn.0042fc16
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 0x40cdad
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 0x40cdd3
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 0x40cdfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40cfef
mov eax, dword [esp + 0x18]
push edi
push eax
lea ecx, [esp + 0x38]
call fcn.0042f92a
lea ecx, [esp + 0x30]
call fcn.0042fb75
push 0x40c960
mov ecx, ebx
call fcn.00410a70
mov ecx, dword [esi + 4]
add esi, 4
push ecx
lea edx, [esp + 0x44]
push 0x43c6c4
push edx
call fcn.0041c813
mov ecx, dword [0x44b18c]
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00405510
mov ecx, dword [0x44b18c]
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.004114d0
test eax, eax
jne 0x40cfad
lea ecx, [esp + 0x18]
call fcn.00401060
push esi
push 0x43c6bc
lea ecx, [esp + 0x28]
mov ebx, 4
push ecx
mov byte [esp + 0x260], bl
call fcn.00406420
push 0x43c69c
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x260], 5
call fcn.00404b60
mov ecx, dword [0x44b18c]
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.00406370
push 0x43c688
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x260], 7
call fcn.00404b60
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x258], 8
call fcn.00402880
lea ecx, [esp + 0x2c]
call fcn.00401040
lea ecx, [esp + 0x24]
call fcn.00401040
lea ecx, [esp + 0x28]
call fcn.00401040
lea ecx, [esp + 0x20]
mov byte [esp + 0x254], bl
call fcn.00401040
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x40]
push esi
push edx
call fcn.0041c813
mov ecx, dword [0x44b18c]
add esp, 8
lea eax, [esp + 0x40]
push eax
call fcn.00405510
mov eax, dword [0x44b18c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx]
mov ecx, dword [eax + 0xc]
push edx
call fcn.004054f0
mov eax, dword [0x44b18c]
mov ecx, dword [eax]
test ecx, ecx
je 0x40cf74
push 0
push 0x43b5f4
push esi
call fcn.0042c437
lea ecx, [esp + 0x18]
call fcn.00401040
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 2
call fcn.0042fc16
lea ecx, [esp + 0x14]
call fcn.00401040
lea ecx, [esp + 0x1c]
call fcn.00401040
lea ecx, [esp + 0x10]
call fcn.00401040
xor eax, eax
jmp 0x40cfef
mov ecx, dword [esp + 0x20]
push ebp
call fcn.0042a324
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 2
call fcn.0042fc16
lea ecx, [esp + 0x14]
call fcn.00401040
lea ecx, [esp + 0x1c]
call fcn.00401040
lea ecx, [esp + 0x10]
call fcn.00401040
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.0041c40e
add esp, 0x248
ret 4