Function at 0x401db6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x7c], ecx
mov eax, dword [0x46510c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
lea ecx, [ebp - 0x60]
mov dword [ecx + 8], eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
lea ebx, [ebp - 0x54]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x70], eax
movzx eax, word [ebx + 0xe]
mov dword [ebp - 0x78], eax
movzx eax, word [ebx + 0xc]
mov dword [ebp - 0x80], eax
movzx edi, word [ebx]
mov esi, edi
shr esi, 2
imul esi, esi, 0x147b
shr esi, 0x11
imul esi, esi, 0x64
sub edi, esi
movzx esi, word [ebx + 0xa]
movzx edi, di
movzx eax, word [ebx + 8]
movzx ecx, word [ebx + 6]
movzx edx, word [ebx + 2]
mov ebx, dword [ebp - 0x74]
push dword [ebp - 0x70]
push dword [ebp - 0x78]
push dword [ebp - 0x80]
push esi
push eax
push ecx
push edx
push edi
lea edi, [ebp - 0x60]
push str._02d_02d_02d_02d_02d_02d_03d_d
push 0x1a
lea esi, [ebp - 0x44]
push esi
call fcn.00402183
add esp, 0x2c
mov ecx, edi
push esi
call fcn.004185ba
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], eax
movzx eax, byte [ebx + 0xb]
test al, al
js 0x401e7f
push str.Opera_installer_
mov esi, eax
call fcn.004440a1
add esp, 4
mov ecx, esi
mov esi, eax
add esi, ecx
jmp 0x401e97
mov esi, dword [ebx + 4]
push str.Opera_installer_
call fcn.004440a1
add esp, 4
mov ecx, esi
mov esi, eax
add esi, ecx
mov ebx, dword [ebx]
cmp esi, 0x7ffffff0
jae 0x40212a
cmp esi, 4
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], eax
ja 0x401eb6
lea ebx, [ebp - 0x6c]
mov byte [ebx + 0xb], cl
jmp 0x401ee5
mov dword [ebp - 0x78], ecx
add esi, 8
and esi, 0xfffffff8
js 0x402132
lea eax, [esi + esi]
push eax
call fcn.0042fcd4
add esp, 4
mov ebx, eax
mov dword [ebp - 0x6c], eax
or esi, 0x80000000
mov dword [ebp - 0x64], esi
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x68], ecx
test ecx, ecx
je 0x401efd
mov esi, ecx
lea eax, [ecx + ecx]
push eax
push dword [ebp - 0x74]
push ebx
call fcn.00433350
mov ecx, esi
add esp, 0xc
mov word [ebx + ecx*2], 0
lea esi, [ebp - 0x6c]
mov ecx, esi
push dword [ebp - 0x70]
push str.Opera_installer_
call fcn.0041827e
movzx eax, byte [ebp - 0x55]
test al, al
cmovs eax, dword [ebp - 0x5c]
cmovs edi, dword [ebp - 0x60]
mov ecx, esi
push eax
push edi
call fcn.0041827e
mov ecx, dword [eax + 8]
lea esi, [ebp - 0x44]
mov dword [esi + 8], ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov dword [esi], ecx
xor ebx, ebx
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov ecx, esi
push 0x4552b0
call fcn.0041843e
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x4c], ecx
mov dword [eax + 8], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
cmp byte [esi + 0xb], bl
jns 0x401f7e
push dword [ebp - 0x44]
call fcn.0042fd04
add esp, 4
cmp byte [ebp - 0x61], 0
jns 0x401f8f
push dword [ebp - 0x6c]
call fcn.0042fd04
add esp, 4
cmp byte [ebp - 0x49], 0
lea eax, [ebp - 0x54]
jns 0x401f9b
mov eax, dword [ebp - 0x54]
xor edi, edi
mov esi, 2
push edi
push 0x80
push esi
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x74], eax
mov ebx, eax
inc ebx
cmp ebx, esi
jae 0x402009
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [ebp - 0x44]
mov dword [esi], 0xc9
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov ecx, dword [ebp + 0x10]
mov edx, esi
call fcn.004016b2
cmp byte [esi + 0x13], 0
jns 0x401ff7
push dword [ebp - 0x3c]
call fcn.0042fd04
add esp, 4
xor eax, eax
mov esi, dword [ebp - 0x7c]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi], eax
jmp 0x4020e6
mov dword [ebp - 0x70], ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x40203f
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, esi
sub eax, ebx
push 0
lea ecx, [ebp - 0x6c]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x74]
call edi
test eax, eax
je 0x402084
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x402084
add ebx, eax
cmp ebx, esi
jne 0x40201b
mov esi, esp
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
push eax
sub esp, 8
mov ecx, esp
lea eax, [ebp - 0x54]
push eax
call fcn.00417fa2
lea edi, [ebp - 0x44]
mov ecx, edi
call fcn.00402156
mov esp, esi
mov esi, dword [ebp - 0x7c]
mov ecx, esi
push edi
call fcn.00417fa2
cmp byte [ebp - 0x39], 0
js 0x4020cc
mov word [ebp - 0x44], 0
mov byte [ebp - 0x39], 0
jmp 0x4020db
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [ebp - 0x44]
mov dword [esi], 0xd2
mov dword [esi + 4], eax
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov ecx, dword [ebp + 0x10]
mov edx, esi
call fcn.004016b2
cmp byte [esi + 0x13], 0
mov ebx, dword [ebp - 0x70]
jns 0x4020bf
push dword [ebp - 0x3c]
call fcn.0042fd04
add esp, 4
mov esi, dword [ebp - 0x7c]
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esi], edi
jmp 0x4020e6
mov eax, dword [ebp - 0x44]
mov word [eax], 0
mov dword [ebp - 0x40], 0
mov ebx, dword [ebp - 0x70]
lea ecx, [ebp - 0x44]
call fcn.00402138
cmp ebx, 2
jb 0x4020f4
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [ebp - 0x49], 0
jns 0x402105
push dword [ebp - 0x54]
call fcn.0042fd04
add esp, 4
cmp byte [ebp - 0x55], 0
jns 0x402116
push dword [ebp - 0x60]
call fcn.0042fd04
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fd3a
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x6c]
call fcn.00417a30
call fcn.0043f854
int3