Function at 0x402db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
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
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x54]
movdqu xmmword [esi], xmm0
push esi
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 - 0x7c], eax
movzx eax, word [esi + 0xe]
mov dword [ebp - 0x78], eax
movzx edx, word [esi + 0xc]
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 ecx, word [esi + 8]
movzx eax, word [esi + 6]
movzx esi, word [esi + 2]
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push edx
push ebx
push ecx
push eax
push esi
push edi
push str._02d_02d_02d_02d_02d_02d_03d_d
push 0x1a
lea esi, [ebp - 0x44]
push esi
call fcn.004032d0
add esp, 0x2c
push esi
call fcn.0041f8a3
add esp, 4
mov ebx, eax
mov al, byte [ebp - 0x55]
test al, al
js 0x402ffc
cmp ebx, 4
jbe 0x403014
movzx eax, al
mov edx, 4
mov esi, ebx
sub esi, edx
lea ecx, [ebp - 0x60]
lea edi, [ebp - 0x44]
push edi
push ebx
push eax
push 0
push eax
push esi
push edx
call fcn.00409750
lea esi, [ebp - 0x54]
mov ecx, dword [ebp - 0x70]
lea ebx, [ebp - 0x6c]
push str.Opera_installer_
push ecx
push ebx
call fcn.00403100
add esp, 0xc
lea eax, [ebp - 0x60]
movzx ecx, byte [eax + 0xb]
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs edx, dword [eax + 4]
cmovs eax, dword [eax]
mov ecx, ebx
push edx
push eax
call fcn.00409b00
movsd xmm0, qword [eax]
lea edi, [ebp - 0x44]
movsd qword [edi], xmm0
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
xor ebx, ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov ecx, edi
push 4
push 0x44e538
call fcn.00409b00
movsd xmm0, qword [eax]
movsd qword [ebp - 0x54], xmm0
mov ecx, dword [eax + 8]
mov dword [ebp - 0x4c], ecx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
cmp byte [edi + 0xb], 0
jns 0x402f23
push dword [ebp - 0x44]
call fcn.0040b630
add esp, 4
cmp byte [ebp - 0x61], 0
jns 0x402f34
push dword [ebp - 0x6c]
call fcn.0040b630
add esp, 4
cmp byte [ebp - 0x49], 0
jns 0x402f3d
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp + 0x10]
sub esp, 0x1c
movaps xmm0, xmmword [0x44e090]
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
inc eax
mov dword [ebp - 0x70], eax
cmp eax, 2
jae 0x403059
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
lea ebx, [ebp - 0x44]
mov dword [ebx], 0xbe
mov dword [ebx + 4], eax
xor esi, esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0x10], esi
mov edx, ebx
call fcn.004024a0
cmp byte [ebx + 0x13], 0
jns 0x402fae
push dword [ebp - 0x3c]
call fcn.0040b630
add esp, 4
mov ebx, dword [ebp - 0x74]
mov dword [ebx + 4], esi
mov dword [ebx], esi
mov dword [ebx + 8], esi
cmp dword [ebp - 0x70], 2
jb 0x402fc6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x49], 0
jns 0x402fd7
push dword [ebp - 0x54]
call fcn.0040b630
add esp, 4
cmp byte [ebp - 0x55], 0
jns 0x402fe8
push dword [ebp - 0x60]
call fcn.0040b630
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040bf69
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x58]
mov edx, eax
and edx, 0x7fffffff
dec edx
cmp edx, ebx
jae 0x403051
mov eax, dword [ebp - 0x5c]
jmp 0x402e85
lea edi, [ebp - 0x60]
lea esi, [ebp - 0x54]
test ebx, ebx
je 0x403033
mov eax, ebx
add eax, ebx
push eax
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.0040ec10
add esp, 0xc
mov al, byte [ebp - 0x55]
test al, al
mov ecx, dword [ebp - 0x70]
js 0x40304c
mov eax, ebx
and al, 0x7f
mov byte [ebp - 0x55], al
mov word [edi + ebx*2], 0
jmp 0x402ea2
mov dword [ebp - 0x5c], ebx
jmp 0x403041
shr eax, 0x18
mov edi, dword [ebp - 0x60]
jmp 0x403017
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40308f
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 0x4030c7
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4030c7
add esi, eax
cmp esi, ebx
jne 0x403062
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 0x4030ec
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 8], eax
movsd xmm0, qword [ebp - 0x54]
movsd qword [ecx], xmm0
mov ecx, ebx
call fcn.00403220
mov esp, esi
jmp 0x402fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [ebp - 0x44]
mov dword [ebx], 0xc7
mov dword [ebx + 4], eax
xor esi, esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0x10], esi
mov ecx, dword [ebp + 0x10]
jmp 0x402f96
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.00409980
jmp 0x4030b9