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

Disassembly:
push 0xffffffffffffffff
push 0x4412f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
mov eax, dword [0x4551e4]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x248], eax
mov ebx, ecx
call fcn.004335c2
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.004335c2
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 0x4118ce
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 0x4118c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
jmp 0x411aa1
mov eax, dword [esi + 0x3c]
lea ebp, [esi + 0x3c]
push 0
lea ecx, [ebx + 0xc]
push eax
mov dword [esp + 0x28], ecx
call fcn.00432dba
test eax, eax
je 0x41193b
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 0x411909
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 0x411d1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x411d1c
mov edi, dword [ebp]
call fcn.0043d155
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 0x4119a8
mov ecx, dword [esi + 8]
push ecx
lea edx, [esp + 0x44]
push 0x446a1c
push edx
call fcn.0042396a
mov ecx, dword [0x45616c]
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00408490
mov ecx, dword [0x45616c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x411a74
push 0x10
push 0x444df0
lea edx, [esp + 0x48]
push edx
call fcn.00434f27
jmp 0x411a74
call fcn.0043d155
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.0043d155
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 [0x45616c]
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [ecx + 0x14]
push edx
lea eax, [esp + 0x18]
push 0x446a08
push eax
call fcn.00403000
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0x1001
push ecx
lea ecx, [esp + 0x38]
call fcn.00438b88
mov eax, dword [esp + 0x34]
test eax, eax
mov byte [esp + 0x254], 2
jne 0x411aca
lea edx, [esp + 0x40]
push 0x4469f4
push edx
call fcn.0042396a
mov ecx, dword [0x45616c]
add esp, 8
lea eax, [esp + 0x40]
push eax
call fcn.00408490
mov ecx, dword [0x45616c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x411a63
push 0x10
push 0x444df0
lea edx, [esp + 0x48]
push edx
call fcn.00434f27
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 1
call fcn.00438798
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 0x411a9a
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 0x411ac3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x411d21
mov eax, dword [esp + 0x18]
push edi
push eax
lea ecx, [esp + 0x38]
call fcn.004384ac
lea ecx, [esp + 0x30]
call fcn.004386f7
mov eax, dword [esi + 0x24]
push 0x443d70
push eax
call fcn.00423d1d
add esp, 8
test eax, eax
je 0x411b0e
push 0
push 0
push 0
push 0x4117f0
push 0
push 0
call fcn.00424671
add esp, 0x18
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x411660
mov ecx, ebx
call fcn.00417c20
mov ecx, dword [esi + 8]
lea edi, [esi + 8]
push ecx
lea edx, [esp + 0x44]
push 0x4469e4
push edx
call fcn.0042396a
mov ecx, dword [0x45616c]
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00408490
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.004187d0
test eax, eax
jne 0x411ce8
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 0x411bc1
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x4469bc
push ecx
call fcn.00403000
add esp, 0x10
jmp 0x411c5e
push edi
push 0x4469b4
lea edx, [esp + 0x28]
push edx
call fcn.00406a70
push 0x44698c
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x260], 4
call fcn.00403020
mov ecx, dword [0x45616c]
mov edx, dword [ecx + 0x14]
add edx, 0x1c
push edx
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x260], 5
call fcn.00407fd0
push 0x446974
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x260], 6
call fcn.00403020
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x258], 7
call fcn.00402f50
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.0042396a
add esp, 8
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [0x45616c]
call fcn.00408490
mov eax, dword [0x45616c]
mov edx, dword [eax + 0x14]
mov ecx, dword [edx + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
call fcn.00408390
mov edx, dword [0x45616c]
mov ecx, dword [edx]
test ecx, ecx
je 0x411cb8
push 0
push 0x44530c
push esi
call fcn.00434f27
lea ecx, [esp + 0x1c]
call fcn.00401060
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 1
call fcn.00438798
lea ecx, [esp + 0x14]
call fcn.00401060
lea ecx, [esp + 0x10]
call fcn.00401060
xor eax, eax
jmp 0x411d21
mov ecx, dword [esp + 0x20]
push ebp
call fcn.00432e4b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x30]
mov byte [esp + 0x254], 1
call fcn.00438798
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.00423492
add esp, 0x248
ret 4