Function at 0x402d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x74], ecx
mov eax, dword [0x454010]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
lea ecx, [ebp - 0x60]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
pcmpeqd xmm0, xmm0
lea ebx, [ebp - 0x54]
movdqu xmmword [ebx], xmm0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
lea eax, [ebp - 0x44]
pcmpeqd xmm0, xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
mov dword [eax + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x80], eax
movzx eax, word [ebx + 0xe]
mov dword [ebp - 0x7c], eax
movzx eax, word [ebx + 0xc]
mov dword [ebp - 0x78], eax
movzx esi, word [ebx]
mov edi, esi
shr edi, 2
imul edi, edi, 0x147b
shr edi, 0x11
imul edi, edi, 0x64
sub esi, edi
movzx edi, word [ebx + 0xa]
movzx esi, si
movzx eax, word [ebx + 8]
movzx ecx, word [ebx + 6]
movzx edx, word [ebx + 2]
push dword [ebp - 0x80]
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push edi
push eax
push ecx
push edx
push esi
push str._02d_02d_02d_02d_02d_02d_03d_d
push 0x1a
lea edi, [ebp - 0x44]
push edi
call fcn.004031a0
add esp, 0x2c
lea esi, [ebp - 0x60]
mov ecx, esi
push edi
call fcn.00409940
lea eax, [ebp - 0x6c]
push str.Opera_installer_
push dword [ebp - 0x70]
push eax
call fcn.00402fd0
add esp, 0xc
movzx eax, byte [esi + 0xb]
test al, al
js 0x402df1
and eax, 0x7f
jmp 0x402df7
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x60]
lea ecx, [ebp - 0x6c]
push eax
push esi
call fcn.00409970
movsd xmm0, qword [eax]
lea esi, [ebp - 0x44]
movsd qword [esi], xmm0
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
xor edi, edi
mov dword [eax], edi
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov ecx, esi
push 4
push 0x44e470
call fcn.00409970
movsd xmm0, qword [eax]
movsd qword [ebp - 0x54], xmm0
mov ecx, dword [eax + 8]
mov dword [ebp - 0x4c], ecx
mov dword [eax], edi
mov dword [eax + 8], edi
mov dword [eax + 4], edi
cmp byte [esi + 0xb], 0
jns 0x402e52
push dword [ebp - 0x44]
call fcn.0040b480
add esp, 4
cmp byte [ebp - 0x61], 0
jns 0x402e63
push dword [ebp - 0x6c]
call fcn.0040b480
add esp, 4
cmp byte [ebp - 0x49], 0
jns 0x402e6c
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp + 0x10]
sub esp, 0x1c
movaps xmm0, xmmword [0x44dfa0]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
inc eax
mov dword [ebp - 0x70], eax
cmp eax, 2
jae 0x402f2f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, esi
lea esi, [ebp - 0x44]
mov dword [esi], 0xbe
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov edx, esi
call fcn.00402460
cmp byte [esi + 0x13], 0
jns 0x402edd
push dword [ebp - 0x3c]
call fcn.0040b480
add esp, 4
mov eax, dword [ebp - 0x74]
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov ebx, eax
mov eax, dword [ebp - 0x70]
cmp eax, 2
jb 0x402ef9
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [ebp - 0x49], 0
jns 0x402f0a
push dword [ebp - 0x54]
call fcn.0040b480
add esp, 4
cmp byte [ebp - 0x55], 0
jns 0x402f1b
push dword [ebp - 0x60]
call fcn.0040b480
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040bdb9
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 8]
test esi, esi
je 0x402f65
xor ebx, ebx
mov dword [ebp - 0x6c], 0xffffffff
mov eax, esi
sub eax, ebx
push 0
lea ecx, [ebp - 0x6c]
push ecx
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x402faa
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x402faa
add ebx, eax
cmp ebx, esi
jne 0x402f38
mov esi, esp
xor eax, eax
mov ebx, dword [ebp - 0x74]
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
push eax
sub esp, 8
mov ecx, esp
cmp byte [ebp - 0x49], 0
js 0x402f9d
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 8], eax
movsd xmm0, qword [ebp - 0x54]
movsd qword [ecx], xmm0
mov ecx, ebx
call fcn.004030f0
mov esp, esi
jmp 0x402eea
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.004097c0
jmp 0x402f8f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [ebp - 0x44]
mov dword [esi], 0xc7
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov ecx, dword [ebp + 0x10]
jmp 0x402ec5