Function at 0x402a70
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 [0x454040]
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
mov ebx, dword [ebp - 0x70]
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.00402f00
add esp, 0x2c
lea ecx, [ebp - 0x60]
push edi
call fcn.00407860
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov esi, eax
movsx eax, byte [ebx + 0xb]
mov edi, eax
mov dword [ebp - 0x7c], eax
test eax, eax
jns 0x402b4f
mov edi, dword [ebx + 4]
push str.Opera_installer_
call fcn.0041ebc3
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x78], eax
lea ebx, [edi + eax]
cmp ebx, 0x7ffffff8
jae 0x402e53
cmp ebx, 4
jbe 0x402d63
mov esi, ebx
or esi, 3
inc esi
js 0x402e4e
lea eax, [esi + esi]
push eax
call fcn.0040aa50
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 ebx, dword [ebp - 0x70]
jns 0x402bb2
mov ebx, dword [ebx]
lea esi, [eax + edi*2]
cmp ebx, eax
setb cl
cmp esi, ebx
setbe dl
or dl, cl
je 0x402e3f
test edi, edi
je 0x402bd8
add edi, edi
push edi
push ebx
push eax
call fcn.0040df30
add esp, 0xc
mov edx, dword [ebp - 0x78]
lea edi, [esi + edx*2]
mov eax, str.Opera_installer_
cmp esi, eax
seta cl
cmp edi, eax
setbe al
or al, cl
je 0x402e3f
test edx, edx
je 0x402c0a
add edx, edx
push edx
push str.Opera_installer_
push esi
call fcn.0040df30
add esp, 0xc
movsx eax, byte [ebp - 0x55]
test eax, eax
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.0040a5a0
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 0x44e40a
call fcn.0040a5a0
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 0x402c7f
push dword [ebp - 0x44]
call fcn.0040aa80
add esp, 4
cmp byte [ebp - 0x61], 0
lea esi, [ebp - 0x54]
jns 0x402c93
push dword [ebp - 0x6c]
call fcn.0040aa80
add esp, 4
cmp byte [ebp - 0x49], 0
jns 0x402c9c
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp + 0x10]
sub esp, 0x1c
movaps xmm0, xmmword [0x44df00]
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 0x402d7d
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.00402120
cmp byte [ebx + 0x13], 0
jns 0x402d10
push dword [ebp - 0x3c]
call fcn.0040aa80
add esp, 4
mov ebx, dword [ebp - 0x74]
xorps xmm0, xmm0
movsd qword [ebx], xmm0
mov dword [ebx + 8], 0
cmp esi, 2
jb 0x402d2d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x49], 0
jns 0x402d3e
push dword [ebp - 0x54]
call fcn.0040aa80
add esp, 4
cmp byte [ebp - 0x55], 0
jns 0x402d4f
push dword [ebp - 0x60]
call fcn.0040aa80
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b285
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 0x402ba7
mov dword [ebp - 0x70], esi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x402db6
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 0x402e02
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x402e02
add esi, eax
cmp esi, ebx
jne 0x402d89
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 0x402df5
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 8], eax
movsd xmm0, qword [ebp - 0x54]
movsd qword [ecx], xmm0
mov ecx, ebx
call fcn.00402e60
mov esp, esi
mov esi, dword [ebp - 0x70]
jmp 0x402d21
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.0040a4c0
jmp 0x402de4
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.00402120
cmp byte [ebx + 0x13], 0
mov esi, dword [ebp - 0x70]
jns 0x402d10
jmp 0x402d05
push 0x44e2ba
push 0x44e1a3
call fcn.00445400
call fcn.00430d70
lea ecx, [ebp - 0x6c]
call fcn.00430d80
int3