Function at 0x4022e2
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x90
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x94], ecx
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 7
xor ecx, ecx
lea edx, [ebp - 0x5c]
mov dword [edx + 0x14], eax
mov dword [edx + 0x10], ecx
mov word [edx], cx
lea esi, [ebp - 0x74]
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov edx, eax
movzx eax, word [esi + 0xe]
mov dword [ebp - 0x90], eax
movzx eax, word [esi + 0xc]
mov dword [ebp - 0x9c], eax
movzx edi, word [esi]
mov ebx, edi
shr ebx, 2
imul ebx, ebx, 0x147b
shr ebx, 0x11
imul ebx, ebx, 0x64
sub edi, ebx
movzx ebx, word [esi + 0xa]
movzx edi, di
movzx ecx, word [esi + 8]
movzx eax, word [esi + 6]
movzx esi, word [esi + 2]
push edx
push dword [ebp - 0x90]
push dword [ebp - 0x9c]
push ebx
mov ebx, 7
push ecx
push eax
push esi
push edi
push str._02d_02d_02d_02d_02d_02d_03d_d
push 0x1a
lea eax, [ebp - 0x44]
push eax
call fcn.00402700
add esp, 0x2c
lea eax, [ebp - 0x44]
push eax
mov esi, eax
call fcn.004079d7
add esp, 4
lea ecx, [ebp - 0x5c]
push eax
push esi
call fcn.004020a6
lea edi, [ebp - 0x8c]
mov dword [edi + 0x14], ebx
xor eax, eax
mov dword [edi + 0x10], eax
mov word [edi], ax
mov esi, dword [ebp - 0x98]
mov ebx, dword [esi + 0x10]
mov eax, str.Opera_installer_
push eax
call fcn.004079d7
add esp, 4
add eax, ebx
mov ecx, edi
push eax
call fcn.00402760
mov edx, esi
mov eax, dword [esi + 0x10]
mov esi, 7
mov ecx, 7
cmp dword [edx + 0x14], ecx
jbe 0x4023f0
mov edx, dword [edx]
lea edi, [ebp - 0x8c]
mov ecx, edi
push eax
push edx
call fcn.00402a34
mov ebx, str.Opera_installer_
push ebx
call fcn.004079d7
add esp, 4
mov ecx, edi
push eax
push ebx
call fcn.00402a34
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x48], esi
lea edx, [ebp - 0x5c]
jbe 0x402424
mov edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x8c]
push eax
push edx
call fcn.00402a34
mov edi, eax
mov eax, 0x18
push eax
push edi
lea ebx, [ebp - 0x44]
push ebx
call fcn.00404290
add esp, 0xc
xor esi, esi
mov dword [edi + 0x10], esi
mov eax, 7
mov dword [edi + 0x14], eax
mov word [edi], si
mov ecx, ebx
push 4
push 0x4132ca
call fcn.00402a34
mov edi, eax
mov eax, 0x18
push eax
push edi
lea eax, [ebp - 0x74]
push eax
call fcn.00404290
add esp, 0xc
mov dword [edi + 0x10], esi
mov eax, 7
mov dword [edi + 0x14], eax
mov word [edi], si
mov ecx, ebx
call fcn.00402238
lea ecx, [ebp - 0x8c]
call fcn.00402238
lea ecx, [ebp - 0x74]
mov eax, 7
cmp dword [ebp - 0x60], eax
jbe 0x4024a9
mov ecx, dword [ebp - 0x74]
mov edi, dword [ebp + 0x10]
mov esi, 2
xor eax, eax
push eax
push 0x80
push esi
push eax
push eax
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x98], eax
mov ebx, eax
inc ebx
cmp ebx, esi
jae 0x402522
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [ebp - 0x3c]
mov dword [esi - 8], 0xc7
mov dword [esi - 4], eax
mov eax, 7
mov dword [esi + 0x14], eax
mov ecx, edi
xor edi, edi
mov dword [esi + 0x10], edi
mov word [esi], di
lea edx, [ebp - 0x44]
call fcn.004016a6
mov ecx, esi
call fcn.00402238
mov esi, dword [ebp - 0x94]
mov eax, 7
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edi
mov word [esi], di
jmp 0x402653
mov dword [ebp - 0x90], ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x40256c
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, esi
sub eax, ebx
push 0
lea ecx, [ebp - 0x8c]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x98]
call edi
test eax, eax
je 0x402609
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x402609
add ebx, eax
cmp ebx, esi
jne 0x402537
mov edi, esp
mov eax, 7
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 0x34], esi
mov word [ebp - 0x44], si
push eax
sub esp, 0x14
mov ecx, esp
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], esi
lea eax, [ebp - 0x74]
push eax
call fcn.00402984
lea ebx, [ebp - 0x44]
mov ecx, ebx
call fcn.004026ca
mov esp, edi
mov ecx, dword [ebp - 0x94]
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], esi
push ebx
call fcn.00402984
cmp dword [ebp - 0x30], 7
jbe 0x4025bb
mov ebx, dword [ebp - 0x44]
mov dword [ebp - 0x34], esi
mov word [ebx], si
cmp dword [ebp - 0x34], esi
mov ebx, dword [ebp - 0x90]
je 0x4025f9
mov edi, 7
lea esi, [ebp - 0x44]
cmp dword [esi + 0x14], edi
mov eax, esi
jbe 0x4025de
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [ebp - 0x30], edi
jbe 0x4025ed
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov word [esi], 0
lea ecx, [ebp - 0x44]
call fcn.00402238
mov esi, dword [ebp - 0x94]
jmp 0x402653
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [ebp - 0x3c]
mov dword [esi - 8], 0xd0
mov dword [esi - 4], eax
mov ebx, 7
mov dword [esi + 0x14], ebx
xor edi, edi
mov dword [esi + 0x10], edi
mov word [esi], di
lea edx, [ebp - 0x44]
mov ecx, dword [ebp + 0x10]
call fcn.004016a6
mov ecx, esi
call fcn.00402238
mov esi, dword [ebp - 0x94]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov word [esi], di
mov ebx, dword [ebp - 0x90]
cmp ebx, 2
jb 0x402664
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x74]
call fcn.00402238
lea ecx, [ebp - 0x5c]
call fcn.00402238
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402c61
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret