Function at 0x402740
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, esp
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
mov eax, dword [0x450014]
xor eax, ebp
mov dword [esi + 0x88], eax
xor eax, eax
lea ecx, [esi + 0x30]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
pcmpeqd xmm0, xmm0
lea edi, [esi + 0x40]
movdqa xmmword [edi], xmm0
push edi
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
xor eax, eax
dec eax
lea ecx, [esi + 0x50]
mov dword [ecx + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx], xmm0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [esi + 4], eax
movzx eax, word [edi + 0xe]
mov dword [esi + 0x10], eax
movzx eax, word [edi]
mov edx, eax
shr edx, 2
imul edx, edx, 0x147b
shr edx, 0x11
imul edx, edx, 0x64
sub eax, edx
movzx edx, word [edi + 0xc]
movzx eax, ax
mov dword [esi + 0x1c], eax
movzx eax, word [edi + 0xa]
movzx ecx, word [edi + 8]
movzx ebx, word [edi + 6]
mov dword [esi + 0x14], ebx
movzx ebx, word [edi + 2]
mov dword [esi + 0x18], ebx
push dword [esi + 4]
push dword [esi + 0x10]
push edx
push eax
push ecx
push dword [esi + 0x14]
push dword [esi + 0x18]
push dword [esi + 0x1c]
push str._02d_02d_02d_02d_02d_02d_03d_d
push 0x1a
lea ebx, [esi + 0x50]
push ebx
call fcn.00402c10
add esp, 0x2c
lea ecx, [esi + 0x30]
push ebx
call fcn.00409eb0
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov edi, dword [esi + 8]
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
movzx ebx, byte [edi + 0xb]
mov eax, ebx
test bl, bl
jns 0x402838
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
push str.Opera_installer_
call fcn.0041cdd8
add esp, 4
test bl, bl
jns 0x40284e
mov edi, dword [edi]
mov ecx, dword [esi + 4]
lea ebx, [ecx + eax]
cmp ebx, 0x7ffffff0
jae 0x402b64
mov dword [esi + 8], edi
cmp ebx, 4
mov dword [esi + 0x10], eax
ja 0x402873
lea edi, [esi + 0x20]
mov byte [edi + 0xb], cl
jmp 0x402899
add ebx, 8
and ebx, 0xfffffff8
lea eax, [ebx + ebx]
push eax
call fcn.0040bab0
add esp, 4
mov edi, eax
mov ecx, dword [esi + 4]
mov dword [esi + 0x20], eax
or ebx, 0x80000000
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ecx
lea ebx, [esi + 0x30]
test ecx, ecx
je 0x4028b5
mov eax, dword [esi + 4]
add eax, eax
push eax
push dword [esi + 8]
push edi
call fcn.0040ecf0
mov ecx, dword [esi + 4]
add esp, 0xc
mov word [edi + ecx*2], 0
lea edi, [esi + 0x20]
mov ecx, edi
push dword [esi + 0x10]
push str.Opera_installer_
call fcn.0040b600
movzx eax, byte [esi + 0x3b]
test al, al
cmovs eax, dword [esi + 0x34]
cmovs ebx, dword [esi + 0x30]
mov ecx, edi
push eax
push ebx
call fcn.0040b600
mov ecx, dword [eax + 8]
lea edi, [esi + 0x50]
mov dword [edi + 8], ecx
movsd xmm0, qword [eax]
movsd qword [edi], xmm0
xor ebx, ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov ecx, edi
push 0x44a492
call fcn.0040a150
mov ecx, dword [eax + 8]
mov dword [esi + 0x48], ecx
movsd xmm0, qword [eax]
movsd qword [esi + 0x40], xmm0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax], ebx
cmp byte [edi + 0xb], 0
jns 0x402933
push dword [esi + 0x50]
call fcn.0040bae0
add esp, 4
cmp byte [esi + 0x2b], 0
lea edi, [esi + 0x40]
jns 0x402947
push dword [esi + 0x20]
call fcn.0040bae0
add esp, 4
cmp byte [esi + 0x4b], 0
jns 0x402950
mov edi, dword [esi + 0x40]
mov ebx, dword [ebp + 0x10]
sub esp, 0x1c
movaps xmm0, xmmword [0x44a230]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi + 4], eax
inc eax
mov dword [esi + 8], eax
cmp eax, 2
jae 0x402a17
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [esi + 0x50]
mov dword [edi], 0xc7
mov dword [edi + 4], eax
mov ecx, ebx
xor ebx, ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x10], ebx
mov edx, edi
call fcn.00401f20
cmp byte [edi + 0x13], 0
jns 0x4029c2
push dword [esi + 0x58]
call fcn.0040bae0
add esp, 4
mov edi, dword [esi + 0xc]
mov dword [edi + 4], ebx
mov dword [edi], ebx
mov dword [edi + 8], ebx
mov ebx, dword [esi + 8]
cmp ebx, 2
jb 0x4029de
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esi + 0x4b], 0
jns 0x4029ef
push dword [esi + 0x40]
call fcn.0040bae0
add esp, 4
cmp byte [esi + 0x3b], 0
jns 0x402a00
push dword [esi + 0x30]
call fcn.0040bae0
add esp, 4
mov ecx, dword [esi + 0x88]
xor ecx, ebp
call fcn.0040c5fb
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp ebx, edi
je 0x402a4d
mov dword [esi + 0x20], 0xffffffff
mov eax, edi
sub eax, ebx
push 0
lea ecx, [esi + 0x20]
push ecx
push eax
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x402a77
mov eax, dword [esi + 0x20]
test eax, eax
je 0x402a77
add ebx, eax
jmp 0x402a1c
mov ebx, esp
xor eax, eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x58], eax
push eax
sub esp, 8
mov ecx, esp
cmp byte [esi + 0x4b], 0
js 0x402a9e
mov eax, dword [esi + 0x48]
mov dword [ecx + 8], eax
movsd xmm0, qword [esi + 0x40]
movsd qword [ecx], xmm0
jmp 0x402aa9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [esi + 0x50]
mov dword [edi], 0xd0
mov dword [edi + 4], eax
xor ebx, ebx
lea eax, [esi + 0x58]
mov dword [eax + 8], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov ecx, dword [ebp + 0x10]
jmp 0x4029aa
push dword [esi + 0x44]
push dword [esi + 0x40]
call fcn.0040b470
lea edi, [esi + 0x50]
mov ecx, edi
call fcn.00402b70
mov esp, ebx
cmp byte [edi + 0xb], 0
js 0x402ad2
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0xc]
mov dword [ecx + 8], eax
movsd xmm0, qword [esi + 0x50]
movsd qword [ecx], xmm0
mov ebx, dword [esi + 8]
jmp 0x402ae9
mov ecx, dword [esi + 0xc]
push dword [esi + 0x54]
push dword [esi + 0x50]
call fcn.0040b470
cmp byte [esi + 0x5b], 0
mov ebx, dword [esi + 8]
js 0x402b4e
mov word [esi + 0x50], 0
mov byte [esi + 0x5b], 0
mov ecx, dword [esi + 0x54]
xor eax, eax
test al, al
movzx edx, al
cmovs edx, ecx
test edx, edx
je 0x402b33
test al, al
jns 0x402b0b
mov edi, dword [esi + 0x50]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esi + 0x5b], 0
mov edi, dword [esi + 0xc]
jns 0x4029d0
mov eax, dword [esi + 0x50]
mov word [eax], 0
mov dword [esi + 0x54], 0
mov al, byte [esi + 0x5b]
jmp 0x402b36
mov edi, dword [esi + 0xc]
test al, al
jns 0x4029d0
push dword [esi + 0x50]
call fcn.0040bae0
add esp, 4
jmp 0x4029d0
mov eax, dword [esi + 0x50]
mov word [eax], 0
mov dword [esi + 0x54], 0
xor ecx, ecx
mov al, byte [esi + 0x5b]
jmp 0x402af8
lea ecx, [esi + 0x20]
call fcn.0043f9b0
int3