Function at 0x402b40
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 [0x455010]
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 esi, [ebp - 0x44]
push esi
call fcn.00402fd0
add esp, 0x2c
push esi
mov edi, esi
call fcn.004217d9
add esp, 4
lea esi, [ebp - 0x60]
mov ecx, esi
push eax
push edi
call fcn.0040b480
lea eax, [ebp - 0x6c]
push str.Opera_installer_
push dword [ebp - 0x70]
push eax
call fcn.00402e10
add esp, 0xc
movzx eax, byte [esi + 0xb]
test al, al
js 0x402c2d
and eax, 0x7f
jmp 0x402c33
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x60]
xor edi, edi
lea ecx, [ebp - 0x6c]
push eax
push esi
call fcn.0040b570
mov ecx, dword [eax + 8]
lea esi, [ebp - 0x44]
mov dword [esi + 8], ecx
movsd xmm0, qword [eax]
movsd qword [esi], xmm0
mov dword [eax], edi
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov ecx, esi
push 4
push 0x44f738
call fcn.0040b570
mov ecx, dword [eax + 8]
mov dword [ebp - 0x4c], ecx
movsd xmm0, qword [eax]
movsd qword [ebp - 0x54], xmm0
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax], edi
cmp byte [esi + 0xb], 0
jns 0x402c8e
push dword [ebp - 0x44]
call fcn.0040e1d0
add esp, 4
cmp byte [ebp - 0x61], 0
jns 0x402c9f
push dword [ebp - 0x6c]
call fcn.0040e1d0
add esp, 4
cmp byte [ebp - 0x49], 0
jns 0x402ca8
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp + 0x10]
sub esp, 0x1c
movaps xmm0, xmmword [0x44f1c0]
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 0x402d69
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.00402360
cmp byte [esi + 0x13], 0
jns 0x402d19
push dword [ebp - 0x3c]
call fcn.0040e1d0
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
cmp dword [ebp - 0x70], 2
jb 0x402d33
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [ebp - 0x49], 0
jns 0x402d44
push dword [ebp - 0x54]
call fcn.0040e1d0
add esp, 4
cmp byte [ebp - 0x55], 0
jns 0x402d55
push dword [ebp - 0x60]
call fcn.0040e1d0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040eb09
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 0x402d9f
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 0x402dd7
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x402dd7
add ebx, eax
cmp ebx, esi
jne 0x402d72
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 0x402dfc
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 8], eax
movsd xmm0, qword [ebp - 0x54]
movsd qword [ecx], xmm0
mov ecx, ebx
call fcn.00402f20
mov esp, esi
jmp 0x402d26
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 0x402d01
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.0040b390
jmp 0x402dc9