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

Disassembly:
push 0xffffffffffffffff
push 0x433be3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
mov eax, dword [0x4441e0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x248], eax
mov esi, ecx
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x254], 0
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x254], 1
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x144]
push eax
push 0x104
mov byte [esp + 0x25c], 2
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esi + 8]
mov edi, dword [esp + 0x25c]
mov edx, dword [ecx + 0x20]
shl edi, 5
lea eax, [edx + edi + 0x1c]
push eax
lea ecx, [esp + 0x14]
call fcn.004025d0
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x20]
lea eax, [ecx + edi]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x40b440
mov eax, dword [esp + 0x10]
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 0x40b438
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
jmp 0x40b682
mov eax, dword [eax + 0x10]
push 0
lea ecx, [esi + 0x14]
push eax
mov dword [esp + 0x28], ecx
call fcn.00425b0b
test eax, eax
je 0x40b4cc
mov eax, dword [esp + 0x10]
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 0x40b47c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x254], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b49e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x254], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b8aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40b8aa
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x20]
mov ebp, dword [ecx + edi + 0x10]
call fcn.0042feba
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push str.SETUPCAB
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
jne 0x40b58f
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + edi + 4]
push edx
lea eax, [esp + 0x44]
push 0x4374b0
push eax
call fcn.00418f95
add esp, 0xc
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.00409800
mov esi, dword [esi + 0x7c]
test esi, esi
je 0x40b53b
push 0x10
push 0x4370f4
lea edx, [esp + 0x48]
push edx
mov ecx, esi
call fcn.00427caf
mov eax, dword [esp + 0x10]
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 0x40b561
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x254], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b583
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x40b6a4
call fcn.0042feba
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
call fcn.0042feba
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x20]
mov ecx, dword [eax + edi + 0x10]
push ecx
lea edx, [esp + 0x148]
push edx
lea eax, [esp + 0x20]
push str._s_s.cab
push eax
call fcn.00409e30
mov ebp, dword [esp + 0x28]
add esp, 0x10
push 0x1001
push ebp
lea ecx, [esp + 0x38]
call fcn.0042b87a
mov eax, dword [esp + 0x34]
test eax, eax
mov byte [esp + 0x254], 3
jne 0x40b6cd
lea ecx, [esp + 0x40]
push 0x437490
push ecx
call fcn.00418f95
add esp, 8
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.00409800
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x40b644
push 0x10
push 0x4370f4
lea eax, [esp + 0x48]
push eax
call fcn.00427caf
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 2
call fcn.0042b48e
mov eax, dword [esp + 0x10]
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 0x40b67b
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 0x40b6a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x254], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40b8af
mov eax, dword [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x38]
call fcn.0042b1a2
lea ecx, [esp + 0x30]
call fcn.0042b3ed
push 0x40b1f0
mov ecx, esi
call fcn.0040d4d0
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx + edi + 4]
push eax
lea ecx, [esp + 0x44]
push 0x437480
push ecx
call fcn.00418f95
add esp, 0xc
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.00409800
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebp
mov ecx, esi
call fcn.0040df00
test eax, eax
jne 0x40b863
lea ecx, [esp + 0x14]
call fcn.00401060
mov edx, dword [esi + 8]
mov eax, dword [edx + 0x20]
lea ecx, [eax + edi + 4]
push ecx
push 0x437478
lea edx, [esp + 0x28]
mov bl, 4
push edx
mov byte [esp + 0x260], bl
call fcn.00405e80
push 0x437458
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x260], 5
call fcn.00405dc0
mov ecx, dword [esi + 8]
add ecx, 0xc
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x260], 6
call fcn.00409e50
push 0x437444
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x260], 7
call fcn.00405dc0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x258], 8
call fcn.004025d0
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 edi, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push edi
push ecx
call fcn.00418f95
add esp, 8
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.00409800
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x88]
push eax
call fcn.00405710
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x40b82a
push 0
push 0x43618c
push edi
call fcn.00427caf
lea ecx, [esp + 0x14]
call fcn.00401040
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 2
call fcn.0042b48e
lea ecx, [esp + 0x10]
call fcn.00401040
lea ecx, [esp + 0x1c]
call fcn.00401040
lea ecx, [esp + 0x18]
call fcn.00401040
xor eax, eax
jmp 0x40b8af
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x20]
lea eax, [edx + edi + 0x10]
push eax
call fcn.00425b9c
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 2
call fcn.0042b48e
lea ecx, [esp + 0x10]
call fcn.00401040
lea ecx, [esp + 0x1c]
call fcn.00401040
lea ecx, [esp + 0x18]
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.004185be
add esp, 0x248
ret 4