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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x188
mov eax, dword [0x455010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x120]
push 0x110
push 0
push esi
call fcn.00411c80
add esp, 0xc
mov dword [esi - 0xc], 0x11c
sub esp, 0x10
movdqa xmm0, xmmword [0x44f170]
movdqu xmmword [esp], xmm0
mov ebx, dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
call ebx
mov edi, 3
xor ecx, ecx
inc ecx
push edi
push ecx
push edx
push eax
call ebx
push edi
push 0x20
push edx
push eax
call ebx
mov dword [esi - 8], 6
xor ecx, ecx
inc ecx
mov dword [esi - 4], ecx
mov word [esi + 0x108], 0
lea esi, [ebp - 0x12c]
push edx
push eax
push 0x23
push esi
call dword [sym.imp.KERNEL32.DLL_VerifyVersionInfoW]
test eax, eax
je 0x401993
xor esi, esi
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x158], esi
lea eax, [ebp - 0x16c]
pcmpeqd xmm0, xmm0
movdqu xmmword [eax - 4], xmm0
push 0xa
push 0x7d1
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x40186b
mov ebx, eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x401828
mov edi, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
test eax, eax
je 0x401814
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
pxor xmm0, xmm0
movdqu xmmword [ebp - 0x144], xmm0
lea esi, [ebp - 0x160]
lea ecx, [ebp - 0x12c]
xor edx, edx
push esi
mov dword [ebp - 0x18c], eax
push eax
push ebx
call fcn.00402540
add esp, 0xc
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x401643
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea ecx, [ebp - 0x140]
lea esi, [ebp - 0x128]
mov eax, dword [esi - 4]
mov dword [ecx - 4], eax
mov dword [esi - 4], 0
mov dword [ebp - 0x190], ecx
cmp byte [ecx + 0xb], 0
movzx eax, byte [esi + 0xb]
lea edi, [ebp - 0x16c]
js 0x402027
test al, al
jns 0x4017e7
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call fcn.0040b8f0
cmp byte [ebp - 0x11d], 0
js 0x4017fa
mov word [ebp - 0x128], 0
mov byte [ebp - 0x11d], 0
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x4016bd
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [ebp - 0x12c], 0
cmp byte [ebp - 0x11d], 0
js 0x4017b8
je 0x401712
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x11d], 0
jns 0x401712
mov eax, dword [ebp - 0x128]
mov word [eax], 0
mov dword [ebp - 0x124], 0
cmp byte [ebp - 0x11d], 0
jns 0x401712
push dword [ebp - 0x128]
call fcn.0040e1d0
add esp, 4
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x401e28
mov dword [ebp - 0x170], eax
cmp byte [ebp - 0x135], 0
js 0x401fed
lea ecx, [ebp - 0x140]
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
movq xmm0, qword [ecx]
movq qword [edi], xmm0
mov word [ebp - 0x140], 0
mov byte [ebp - 0x135], 0
mov dword [ebp - 0x144], 0
cmp byte [ebp - 0x135], 0
js 0x4017d0
je 0x4017ad
push dword [ebp - 0x190]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x135], 0
jns 0x4017ad
mov eax, dword [ebp - 0x140]
mov word [eax], 0
mov dword [ebp - 0x13c], 0
cmp byte [ebp - 0x135], 0
jns 0x4017ad
push dword [ebp - 0x140]
call fcn.0040e1d0
add esp, 4
mov esi, dword [ebp - 0x170]
jmp 0x4018c0
cmp dword [ebp - 0x124], 0
je 0x401704
mov esi, dword [ebp - 0x128]
jmp 0x4016d6
cmp dword [ebp - 0x13c], 0
je 0x40179f
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x190], eax
jmp 0x40176c
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
movq xmm0, qword [esi]
movq qword [ecx], xmm0
jmp 0x40169c
mov eax, dword [ebp - 0x128]
mov word [eax], 0
mov dword [ebp - 0x124], 0
jmp 0x4016ac
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x12c]
mov dword [edi], 0x11c
jmp 0x40183a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x12c]
mov dword [edi], 0x116
mov dword [edi + 4], eax
xor esi, esi
mov dword [edi + 0xc], esi
mov dword [edi + 8], esi
mov dword [edi + 0x10], esi
lea ecx, [ebp - 0x160]
mov edx, edi
call fcn.00402360
cmp byte [edi + 0x13], 0
jns 0x4018ac
push dword [ebp - 0x124]
call fcn.0040e1d0
add esp, 4
jmp 0x4018ac
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [ebp - 0x12c]
mov dword [edi], 0x110
mov dword [edi + 4], eax
mov dword [edi + 0xc], esi
mov dword [edi + 8], esi
mov dword [edi + 0x10], esi
lea ecx, [ebp - 0x160]
mov edx, edi
call fcn.00402360
cmp byte [edi + 0x13], 0
jns 0x4018aa
push dword [ebp - 0x124]
call fcn.0040e1d0
add esp, 4
xor esi, esi
mov dword [ebp - 0x170], esi
lea edi, [ebp - 0x16c]
mov dword [edi + 4], esi
mov dword [edi], esi
mov dword [edi + 8], esi
push 0x44f78f
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4019eb
mov ecx, eax
call dword [section..00cfg]
call ecx
mov ebx, eax
mov eax, dword [ebp - 0x170]
test eax, eax
je 0x4018f1
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [ebp - 0x170], 0
cmp byte [ebp - 0x161], 0
js 0x401960
je 0x401942
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x161], 0
jns 0x401942
mov eax, dword [ebp - 0x16c]
mov word [eax], 0
mov dword [ebp - 0x168], 0
cmp byte [ebp - 0x161], 0
jns 0x401942
push dword [ebp - 0x16c]
call fcn.0040e1d0
add esp, 4
mov esi, dword [ebp - 0x160]
test esi, esi
je 0x4019d4
mov edi, ebx
mov eax, dword [ebp - 0x15c]
cmp eax, esi
je 0x4019c9
mov ebx, eax
jmp 0x401982
cmp dword [ebp - 0x168], 0
je 0x401934
mov edi, dword [ebp - 0x16c]
jmp 0x401906
push dword [eax - 0xc]
call fcn.0040e1d0
add esp, 4
mov eax, ebx
cmp ebx, esi
je 0x4019c9
add ebx, 0xffffffec
je 0x401ac5
cmp byte [eax - 1], 0
jns 0x40197c
jmp 0x401971
mov dword [ebp - 0x12c], 8
mov dword [ebp - 0x128], 0x4000
push esi
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xor eax, eax
push eax
push 0x44f108
push str.This_Opera_installer_works_only_on_Windows_7_or_higher._r_nVisit_____www.opera.com_____to_download_compatible_version.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, 3
jmp 0x4019d4
push esi
call fcn.0040e1d0
add esp, 4
mov ebx, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040eb09
mov eax, ebx
add esp, 0x188
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [ebp - 0x12c]
mov dword [esi], 0xa9
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
lea ecx, [ebp - 0x160]
mov edx, esi
call fcn.00402360
cmp byte [esi + 0x13], 0
jns 0x401a2c
push dword [ebp - 0x124]
call fcn.0040e1d0
add esp, 4
xor eax, eax
dec eax
lea ecx, [ebp - 0x17c]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push str.Fatal_error_upon_loading_installer_executable:_r_n
call fcn.00433700
mov edi, dword [ebp - 0x160]
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x194], eax
cmp edi, eax
je 0x401a6b
add edi, 8
lea ebx, [ebp - 0x154]
jmp 0x401c14
lea esi, [ebp - 0x17c]
mov ecx, esi
push 0x4e
push 0x44f338
call fcn.0040b570
cmp byte [ebp - 0x171], 0
jns 0x401a8e
mov esi, dword [ebp - 0x17c]
xor eax, eax
push eax
push 0x44f108
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [ebp - 0x171], 0
lea edi, [ebp - 0x16c]
jns 0x401abb
push dword [ebp - 0x17c]
call fcn.0040e1d0
add esp, 4
mov ebx, 2
jmp 0x4018e0
push 0x44f4f9
push 0x44f51a
push 0x41
push 0x44f40f
push 0x44f459
call fcn.00446050
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs edx, eax
add edx, 0xfffffffe
lea ecx, [ebp - 0x188]
lea eax, [ebp - 0x145]
push eax
push edx
push 0
push ebx
call fcn.0040aea0
mov edi, dword [ebp - 0x18c]
cmp byte [ebp - 0x149], 0
jns 0x401b3e
push dword [ebp - 0x154]
call fcn.0040e1d0
add esp, 4
jmp 0x401b3e
lea ecx, [ebp - 0x188]
push str._Error_cannot_be_retrieved_
call fcn.00433830
mov edi, dword [ebp - 0x18c]
lea ebx, [ebp - 0x154]
movzx eax, byte [ebp - 0x17d]
test al, al
js 0x401b54
and eax, 0x7f
lea edx, [ebp - 0x188]
jmp 0x401b60
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x184]
add eax, edx
lea ecx, [ebp - 0x17c]
push eax
push edx
call fcn.00402050
mov eax, dword [ebp - 0x190]
movzx eax, byte [eax + 0x13]
test al, al
jns 0x401b80
mov eax, dword [edi + 4]
test eax, eax
je 0x401bd3
push edi
push 0x44f32e
push esi
call fcn.00402240
add esp, 0xc
movzx eax, byte [ebp - 0x121]
test al, al
js 0x401ba3
and eax, 0x7f
jmp 0x401baf
mov eax, dword [ebp - 0x128]
mov esi, dword [ebp - 0x12c]
lea ecx, [ebp - 0x17c]
push eax
push esi
call fcn.0040b570
cmp byte [ebp - 0x121], 0
jns 0x401bd3
push dword [ebp - 0x12c]
call fcn.0040e1d0
add esp, 4
lea ecx, [ebp - 0x17c]
push 2
push 0x44f332
call fcn.0040b570
cmp byte [ebp - 0x17d], 0
jns 0x401bfc
push dword [ebp - 0x188]
call fcn.0040e1d0
add esp, 4
add edi, 0x14
mov eax, dword [ebp - 0x190]
add eax, 0x14
cmp eax, dword [ebp - 0x194]
je 0x401a6b
xor eax, eax
dec eax
mov dword [ebp - 0x132], eax
mov dword [ebp - 0x136], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x144], xmm0
push 0xa
push 0xb
lea esi, [ebp - 0x144]
push esi
push dword [edi - 8]
call fcn.0041e188
add esp, 0x10
lea ecx, [ebp - 0x17c]
push 8
push str.In_line
call fcn.0040b570
mov ecx, ebx
push esi
call fcn.00433700
mov ecx, ebx
push 1
push 0x44f32e
call fcn.0040b570
mov ecx, dword [eax + 8]
mov dword [ebp - 0x124], ecx
movq xmm0, qword [eax]
movq qword [ebp - 0x12c], xmm0
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
movzx eax, byte [ebp - 0x121]
mov edx, eax
and edx, 0x7f
test al, al
cmovs edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x12c]
lea esi, [ebp - 0x12c]
cmovns eax, esi
lea ecx, [ebp - 0x17c]
push edx
push eax
call fcn.0040b570
cmp byte [ebp - 0x121], 0
jns 0x401cd4
push dword [ebp - 0x12c]
call fcn.0040e1d0
add esp, 4
cmp byte [ebp - 0x149], 0
jns 0x401ceb
push dword [ebp - 0x154]
call fcn.0040e1d0
add esp, 4
mov dword [ebp - 0x18c], edi
lea ecx, [edi - 8]
xor edi, edi
dec edi
mov dword [ebp - 0x188], edi
mov dword [ebp - 0x184], edi
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x190], ecx
mov ebx, dword [ecx + 4]
mov eax, 0x100
push eax
push 0xff
push esi
call fcn.00411c80
add esp, 0xc
xor eax, eax
push eax
mov ecx, 0x100
push ecx
push esi
push 0x409
push ebx
push eax
push 0x1200
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
test eax, eax
je 0x401b22
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x14c], edi
lea ebx, [ebp - 0x154]
mov ecx, ebx
push esi
call fcn.00433830
movzx ecx, byte [ebp - 0x149]
mov edx, ecx
and edx, 0x7e
test cl, cl
mov eax, dword [ebp - 0x150]
cmovs edx, eax
cmp edx, 2
jae 0x401ae0
test cl, cl
mov edi, dword [ebp - 0x18c]
js 0x401db5
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x180], eax
movq xmm0, qword [ebp - 0x154]
movq qword [ebp - 0x188], xmm0
jmp 0x401b09
lea ecx, [ebp - 0x188]
push eax
push dword [ebp - 0x154]
call fcn.0040d710
jmp 0x401b09
and eax, 0x7f
mov edx, esi
jmp 0x401de3
test al, al
jns 0x401dcc
mov eax, dword [ebp - 0x124]
mov edx, dword [ebp - 0x128]
lea ecx, [ebp - 0x140]
push eax
push edx
call fcn.0040b820
jmp 0x401eda
mov eax, dword [ebp - 0x128]
mov word [eax], 0
mov dword [ebp - 0x124], 0
jmp 0x401ef7
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x140]
mov dword [ecx + 8], eax
movq xmm0, qword [esi]
movq qword [ecx], xmm0
jmp 0x401ee7
movdqa xmm0, xmmword [0x44f180]
lea edi, [ebp - 0x12c]
movdqu xmmword [edi], xmm0
mov dword [edi + 0x10], 0
lea esi, [ebp - 0x160]
mov ecx, esi
mov edx, edi
call fcn.00402360
cmp byte [edi + 0x13], 0
jns 0x401e64
push dword [ebp - 0x124]
call fcn.0040e1d0
add esp, 4
lea ecx, [ebp - 0x12c]
xor edx, edx
inc edx
push esi
push dword [ebp - 0x18c]
push ebx
call fcn.00402540
add esp, 0xc
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x401e8e
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea esi, [ebp - 0x128]
mov eax, dword [esi - 4]
mov dword [ebp - 0x144], eax
mov dword [esi - 4], 0
cmp byte [ebp - 0x135], 0
movzx eax, byte [esi + 0xb]
lea edi, [ebp - 0x16c]
js 0x401dd3
test al, al
jns 0x401e0f
lea ecx, [ebp - 0x140]
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call fcn.0040b8f0
cmp byte [ebp - 0x11d], 0
js 0x401df5
mov word [ebp - 0x128], 0
mov byte [ebp - 0x11d], 0
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x401f08
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [ebp - 0x12c], 0
cmp byte [ebp - 0x11d], 0
js 0x401fd5
je 0x401f5d
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x11d], 0
jns 0x401f5d
mov eax, dword [ebp - 0x128]
mov word [eax], 0
mov dword [ebp - 0x124], 0
cmp byte [ebp - 0x11d], 0
jns 0x401f5d
push dword [ebp - 0x128]
call fcn.0040e1d0
add esp, 4
mov eax, dword [ebp - 0x144]
test eax, eax
jne 0x401720
movdqa xmm0, xmmword [0x44f190]
lea edi, [ebp - 0x12c]
movdqu xmmword [edi], xmm0
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x160]
mov edx, edi
call fcn.00402360
cmp byte [edi + 0x13], 0
jns 0x401fa5
push dword [ebp - 0x124]
call fcn.0040e1d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x170], eax
lea edi, [ebp - 0x16c]
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x401757
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x401757
cmp dword [ebp - 0x124], 0
je 0x401f4f
mov esi, dword [ebp - 0x128]
jmp 0x401f21
mov ecx, edi
push dword [ebp - 0x13c]
push dword [ebp - 0x140]
call fcn.0040b390
cmp byte [ebp - 0x135], 0
jns 0x401747
mov eax, dword [ebp - 0x140]
mov word [eax], 0
mov dword [ebp - 0x13c], 0
jmp 0x401757
test al, al
js 0x402032
and eax, 0x7f
mov edx, esi
jmp 0x40203e
mov eax, dword [ebp - 0x124]
mov edx, dword [ebp - 0x128]
push eax
push edx
call fcn.0040b820
jmp 0x40168f