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

Disassembly:
push 0xffffffffffffffff
push 0x44d348
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
mov eax, dword [0x46420c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x248], eax
mov ebx, ecx
call fcn.0043f04a
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.0043f04a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x25c]
mov eax, dword [esi + 0x2c]
test eax, eax
mov byte [esp + 0x254], 1
jne 0x4176ae
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 0x4176a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
jmp 0x417887
mov eax, dword [esi + 0x3c]
lea ebp, [esi + 0x3c]
push 0
lea ecx, [ebx + 0xc]
push eax
mov dword [esp + 0x28], ecx
call fcn.0043e842
test eax, eax
je 0x41771b
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 0x4176e9
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 0x417b0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x417b0c
mov edi, dword [ebp]
call fcn.00448bdd
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push str.SETUPCAB
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x417789
mov ecx, dword [esi + 8]
push ecx
lea edx, [esp + 0x44]
push 0x4530c4
push edx
call fcn.0042b87a
mov ecx, dword [0x46532c]
add esp, 0xc
push edi
lea eax, [esp + 0x44]
push eax
call fcn.0040a230
mov ecx, dword [0x46532c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x41785a
push 0x10
push 0x4511b0
lea edx, [esp + 0x48]
push edx
call fcn.004409af
jmp 0x41785a
call fcn.00448bdd
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.00448bdd
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]
mov edi, eax
mov eax, dword [0x46532c]
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [ecx + 0x224]
push edx
lea eax, [esp + 0x18]
push 0x4530b0
push eax
call fcn.00402810
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0x1001
push ecx
lea ecx, [esp + 0x38]
call fcn.00444610
mov eax, dword [esp + 0x34]
test eax, eax
mov byte [esp + 0x254], 2
jne 0x4178b0
lea edx, [esp + 0x40]
push 0x45309c
push edx
call fcn.0042b87a
mov ecx, dword [0x46532c]
add esp, 8
push 0
lea eax, [esp + 0x44]
push eax
call fcn.0040a230
mov ecx, dword [0x46532c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x417849
push 0x10
push 0x4511b0
lea edx, [esp + 0x48]
push edx
call fcn.004409af
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 1
call fcn.00444220
mov eax, dword [esp + 0x14]
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 0x417880
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 0x4178a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x417b11
mov eax, dword [esp + 0x18]
push edi
push eax
lea ecx, [esp + 0x38]
call fcn.00443f34
lea ecx, [esp + 0x30]
call fcn.0044417f
mov eax, dword [esi + 0x24]
push 0x44fd64
push eax
call fcn.0042bea1
add esp, 8
test eax, eax
je 0x4178f4
push 0
push 0
push 0
push 0x4175d0
push 0
push 0
call fcn.0042cf8c
add esp, 0x18
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x417440
mov ecx, ebx
call fcn.0041fae0
mov ecx, dword [esi + 8]
lea edi, [esi + 8]
push ecx
lea edx, [esp + 0x44]
push 0x45308c
push edx
call fcn.0042b87a
mov ecx, dword [0x46532c]
add esp, 0xc
push 0
lea eax, [esp + 0x44]
push eax
call fcn.0040a230
mov eax, dword [esi + 0x4c]
mov esi, dword [esi + 0x48]
push eax
push esi
mov esi, dword [esp + 0x18]
push esi
mov ecx, ebx
call fcn.004206b0
test eax, eax
jne 0x417ad8
lea ecx, [esp + 0x1c]
call fcn.00401040
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
mov bl, 3
push 0x400
mov byte [esp + 0x264], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x4179a9
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x453064
push ecx
call fcn.00402810
add esp, 0x10
jmp 0x417a49
push edi
push 0x45305c
lea edx, [esp + 0x28]
push edx
call fcn.00402830
push 0x453034
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x260], 4
call fcn.00403e70
mov ecx, dword [0x46532c]
mov edx, dword [ecx + 0x14]
add edx, 0x224
push edx
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x260], 5
call fcn.00408560
push 0x45301c
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x260], 6
call fcn.00403e70
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x258], 7
call fcn.00402760
lea ecx, [esp + 0x24]
call fcn.00401060
lea ecx, [esp + 0x28]
call fcn.00401060
lea ecx, [esp + 0x2c]
call fcn.00401060
lea ecx, [esp + 0x20]
mov byte [esp + 0x254], bl
call fcn.00401060
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push esi
push eax
call fcn.0042b87a
add esp, 8
push 0
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [0x46532c]
call fcn.0040a230
mov eax, dword [0x46532c]
mov edx, dword [eax + 0x14]
mov ecx, dword [edx + 0x214]
push ecx
mov ecx, dword [eax + 0xc]
call fcn.0040a110
mov edx, dword [0x46532c]
mov ecx, dword [edx]
test ecx, ecx
je 0x417aa8
push 0
push 0x4516cc
push esi
call fcn.004409af
lea ecx, [esp + 0x1c]
call fcn.00401060
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 1
call fcn.00444220
lea ecx, [esp + 0x14]
call fcn.00401060
lea ecx, [esp + 0x10]
call fcn.00401060
xor eax, eax
jmp 0x417b11
mov ecx, dword [esp + 0x20]
push ebp
call fcn.0043e8d3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 1
call fcn.00444220
lea ecx, [esp + 0x14]
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.0042b3a1
add esp, 0x248
ret 4