Function at 0x402c70
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
pxor xmm0, xmm0
lea eax, [ebp - 0x60]
movq qword [eax], xmm0
mov dword [eax + 8], 0
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x54]
movdqu xmmword [esi], xmm0
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
xor eax, eax
dec eax
lea ecx, [ebp - 0x44]
mov dword [ecx + 0x30], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [ecx + 0x20], xmm0
movdqu xmmword [ecx + 0x10], xmm0
movdqu xmmword [ecx], xmm0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x7c], eax
movzx eax, word [esi + 0xe]
mov dword [ebp - 0x78], eax
movzx eax, word [esi + 0xc]
mov dword [ebp - 0x80], 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 eax, word [esi + 8]
movzx ecx, word [esi + 6]
movzx edx, word [esi + 2]
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push dword [ebp - 0x80]
push ebx
push eax
push ecx
push edx
push edi
push str._02d_02d_02d_02d_02d_02d_03d_d
push 0x1a
lea edi, [ebp - 0x44]
push edi
call fcn.00403100
add esp, 0x2c
lea ecx, [ebp - 0x60]
push edi
call fcn.00410000
mov eax, dword [ebp - 0x70]
xor ecx, ecx
dec ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov esi, ecx
movzx ecx, byte [eax + 0xb]
mov edi, ecx
mov dword [ebp - 0x7c], ecx
test cl, cl
jns 0x402d4f
mov edi, dword [eax + 4]
push str.Opera_installer_
call fcn.004257b3
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
lea ebx, [edi + eax]
cmp ebx, 0x7ffffff8
jae 0x40304a
cmp ebx, 4
mov dword [ebp - 0x78], eax
jbe 0x402f5a
mov esi, ebx
or esi, 3
inc esi
js 0x403045
lea eax, [esi + esi]
push eax
call fcn.00411510
add esp, 4
or esi, 0x80000000
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ebx
cmp byte [ebp - 0x7c], 0
mov ecx, dword [ebp - 0x70]
jns 0x402db2
mov ecx, dword [ecx]
lea esi, [eax + edi*2]
cmp ecx, eax
jb 0x402dc1
cmp esi, ecx
ja 0x403036
test edi, edi
je 0x402dd2
add edi, edi
push edi
push ecx
push eax
call fcn.00414b20
add esp, 0xc
mov eax, dword [ebp - 0x78]
lea edi, [esi + eax*2]
cmp esi, str.Opera_installer_
ja 0x402dec
cmp edi, str.Opera_installer_
ja 0x403036
test eax, eax
je 0x402e01
add eax, eax
push eax
push str.Opera_installer_
push esi
call fcn.00414b20
add esp, 0xc
movzx eax, byte [ebp - 0x55]
test al, al
cmovs eax, dword [ebp - 0x5c]
mov word [edi], 0
lea edx, [ebp - 0x60]
cmovs edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x6c]
push eax
push edx
call fcn.00410030
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 + 8], edi
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov ecx, esi
push 4
push 0x44f4aa
call fcn.00410030
movsd xmm0, qword [eax]
movsd qword [ebp - 0x54], xmm0
mov ecx, dword [eax + 8]
mov dword [ebp - 0x4c], ecx
mov dword [eax + 8], edi
xorps xmm0, xmm0
movsd qword [eax], xmm0
cmp byte [esi + 0xb], 0
jns 0x402e76
push dword [ebp - 0x44]
call fcn.00411540
add esp, 4
cmp byte [ebp - 0x61], 0
lea esi, [ebp - 0x54]
jns 0x402e8a
push dword [ebp - 0x6c]
call fcn.00411540
add esp, 4
cmp byte [ebp - 0x49], 0
jns 0x402e93
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp + 0x10]
sub esp, 0x1c
movaps xmm0, xmmword [0x44efa0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
mov esi, eax
inc esi
cmp esi, 2
jae 0x402f74
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, ebx
lea ebx, [ebp - 0x44]
mov dword [ebx], 0xbe
mov dword [ebx + 4], eax
xorps xmm0, xmm0
movsd qword [ebx + 8], xmm0
mov dword [ebx + 0x10], 0
mov edx, ebx
call fcn.004023f0
cmp byte [ebx + 0x13], 0
jns 0x402f07
push dword [ebp - 0x3c]
call fcn.00411540
add esp, 4
mov ebx, dword [ebp - 0x74]
xorps xmm0, xmm0
movsd qword [ebx], xmm0
mov dword [ebx + 8], 0
cmp esi, 2
jb 0x402f24
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [ebp - 0x49], 0
jns 0x402f35
push dword [ebp - 0x54]
call fcn.00411540
add esp, 4
cmp byte [ebp - 0x55], 0
jns 0x402f46
push dword [ebp - 0x60]
call fcn.00411540
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411e79
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
pxor xmm0, xmm0
lea eax, [ebp - 0x6c]
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov byte [eax + 0xb], bl
jmp 0x402da7
mov dword [ebp - 0x70], esi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x402fad
xor esi, esi
mov dword [ebp - 0x6c], 0xffffffff
mov eax, ebx
sub eax, esi
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 0x402ff9
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x402ff9
add esi, eax
cmp esi, ebx
jne 0x402f80
mov esi, esp
xorps xmm0, xmm0
mov ebx, dword [ebp - 0x74]
movsd qword [ebx], xmm0
mov dword [ebx + 8], 0
push eax
sub esp, 8
mov ecx, esp
cmp byte [ebp - 0x49], 0
js 0x402fec
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 8], eax
movsd xmm0, qword [ebp - 0x54]
movsd qword [ecx], xmm0
mov ecx, ebx
call fcn.00403060
mov esp, esi
mov esi, dword [ebp - 0x70]
jmp 0x402f18
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.0040fea0
jmp 0x402fdb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ebx, [ebp - 0x44]
mov dword [ebx], 0xc7
mov dword [ebx + 4], eax
xorps xmm0, xmm0
movsd qword [ebx + 8], xmm0
mov dword [ebx + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov edx, ebx
call fcn.004023f0
cmp byte [ebx + 0x13], 0
mov esi, dword [ebp - 0x70]
jns 0x402f07
jmp 0x402efc
push 0x44f35a
push 0x44f243
call fcn.00445df0
call fcn.00437530
lea ecx, [ebp - 0x6c]
call fcn.00437540
int3